diff --git a/README.md b/README.md index 4c23d95..6b0447d 100644 --- a/README.md +++ b/README.md @@ -30,7 +30,7 @@ ch {query} 1. Open workflow `Brave History` in Alfred Workflows tab. 2. Open Workflow Configuration dialog by upper right side button. -3. Set `CHROME_PROFILE` variable with your Brave profile directory name or path such as `Profile 1`. +3. Set `BRAVE_PROFILE` variable with your Brave profile directory name or path such as `Profile 1`. ## License diff --git a/_workflow/50B0CD10-4D52-4898-9C05-DD3A34A829C3.png b/_workflow/80B0CD10-4D52-4898-9C05-DD3A34A829C3.png similarity index 100% rename from _workflow/50B0CD10-4D52-4898-9C05-DD3A34A829C3.png rename to _workflow/80B0CD10-4D52-4898-9C05-DD3A34A829C3.png diff --git a/_workflow/info.plist b/_workflow/info.plist index 60f79b3..4631c8f 100644 --- a/_workflow/info.plist +++ b/_workflow/info.plist @@ -3,12 +3,12 @@ bundleid - com.github.pasela.alfred-brave-history + com.github.arbal.alfred-brave-history category Internet connections - 50B0CD10-4D52-4898-9C05-DD3A34A829C3 + 80B0CD10-4D52-4898-9C05-DD3A34A829C3 destinationuid @@ -33,7 +33,7 @@ createdby - pasela + pasela and arbal description Search Brave history disabled @@ -85,7 +85,7 @@ type alfred.workflow.input.scriptfilter uid - 50B0CD10-4D52-4898-9C05-DD3A34A829C3 + 80B0CD10-4D52-4898-9C05-DD3A34A829C3 version 2 @@ -135,7 +135,7 @@ Search Brave history and open/copy URLs. You can specify the profile and result limits. -`CHROME_PROFILE` variable is the profile directory name (or path) such as `Default`, `Profile 1`, and so on. +`BRAVE_PROFILE` variable is the profile directory name (or path) such as `Default`, `Profile 1`, and so on. `LIMIT` variable is the result limit counts. uidata @@ -147,7 +147,7 @@ You can specify the profile and result limits. ypos 50 - 50B0CD10-4D52-4898-9C05-DD3A34A829C3 + 80B0CD10-4D52-4898-9C05-DD3A34A829C3 note Alfred 3 now supports JSON as the Script Filter output. This is the recommended output. @@ -165,8 +165,8 @@ You can specify the profile and result limits. version - 1.0 + 2.0 webaddress - https://github.com/pasela/alfred-brave-history + https://github.com/arbal/alfred-brave-history diff --git a/go.mod b/go.mod index ce6fed8..eebf5ce 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module github.com/pasela/alfred-brave-history +module github.com/arbal/alfred-brave-history go 1.13 diff --git a/history/history.go b/history/history.go index 1af07cc..1ba6823 100644 --- a/history/history.go +++ b/history/history.go @@ -7,9 +7,9 @@ import ( "strings" "time" + "github.com/arbal/alfred-brave-history/profile" + "github.com/arbal/alfred-brave-history/utils" _ "github.com/mattn/go-sqlite3" - "github.com/pasela/alfred-brave-history/profile" - "github.com/pasela/alfred-brave-history/utils" "golang.org/x/text/unicode/norm" ) diff --git a/profile/profile.go b/profile/profile.go index 5ec6108..d4b8c20 100644 --- a/profile/profile.go +++ b/profile/profile.go @@ -4,7 +4,7 @@ import ( "path/filepath" "strings" - "github.com/pasela/alfred-brave-history/utils" + "github.com/arbal/alfred-brave-history/utils" ) const ( diff --git a/query.go b/query.go index 0f264aa..cb79582 100644 --- a/query.go +++ b/query.go @@ -5,8 +5,8 @@ import ( "os" "path/filepath" - "github.com/pasela/alfred-brave-history/history" - "github.com/pasela/alfred-brave-history/utils" + "github.com/arbal/alfred-brave-history/history" + "github.com/arbal/alfred-brave-history/utils" ) func queryHistory(profile, url, title string, limit int) ([]history.Entry, error) { diff --git a/standalone.go b/standalone.go index 824d814..d2bf087 100644 --- a/standalone.go +++ b/standalone.go @@ -3,12 +3,13 @@ package main import ( "flag" "fmt" + "os" "strings" ) func run() error { var limit int - profile := "Default" + profile := os.Getenv("BRAVE_PROFILE") flag.StringVar(&profile, "profile", profile, "Brave profile directory") flag.IntVar(&limit, "limit", 0, "Limit n results") flag.Parse()