Skip to content

Commit

Permalink
v1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
deafmute1 committed Nov 2, 2024
1 parent 933bd96 commit cb4f1db
Show file tree
Hide file tree
Showing 3 changed files with 82 additions and 6 deletions.
Binary file modified Linkwarden Search.alfredworkflow
Binary file not shown.
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
Search linkwarden from alfred.

Usage: lw {query}
[Download Here](https://github.com/deafmute1/alfred-linkwarden/releases/latest/download/Linkwarden.Search.alfredworkflow)

## Usage
You can search all links with the default keyword, `lw {query}`

You can search within a collection/show all items in collection ordered by date added by adding a custom keyword. An example is given in the workflow object. You need to create a `Script Filter` object, and add `bash ./helper.sh collection 16 "$@"` as the script value, where `16` is the specific collection id. You can retrieve this id by looking at the url of a collection when it is open in your browse, it will be the final value in the path.

[Download Here](https://github.com/deafmute1/alfred-linkwarden/releases/download/1.0/Linkwarden.Search.alfredworkflow)

TODO
- Add options to action url in other browser, incognito etc.
Expand Down
80 changes: 76 additions & 4 deletions workflow/info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,19 @@
<string>Internet</string>
<key>connections</key>
<dict>
<key>885ABB2A-0C8E-48AC-831A-EC862F9BA401</key>
<array>
<dict>
<key>destinationuid</key>
<string>126EF3B6-E7CB-4C32-BB88-B7CAF26DAFA5</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>C3938C43-F374-46D7-9C55-3200430ED8C3</key>
<array>
<dict>
Expand Down Expand Up @@ -60,7 +73,7 @@
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>bash ./helper.sh "$@"</string>
<string>bash ./helper.sh link "$@"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
Expand Down Expand Up @@ -102,11 +115,61 @@
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<false/>
<key>alfredfiltersresultsmatchmode</key>
<integer>0</integer>
<key>argumenttreatemptyqueryasnil</key>
<true/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>102</integer>
<key>queuedelaycustom</key>
<integer>3</integer>
<key>queuedelayimmediatelyinitially</key>
<true/>
<key>queuedelaymode</key>
<integer>0</integer>
<key>queuemode</key>
<integer>1</integer>
<key>runningsubtext</key>
<string></string>
<key>script</key>
<string>bash ./helper.sh collection 16 "$@"</string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string></string>
<key>subtext</key>
<string></string>
<key>title</key>
<string></string>
<key>type</key>
<integer>11</integer>
<key>withspace</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>885ABB2A-0C8E-48AC-831A-EC862F9BA401</string>
<key>version</key>
<integer>3</integer>
</dict>
</array>
<key>readme</key>
<string>Search linkwarden!
<string>Search linkwarden from alfred.
USAGE: lw &lt;query&gt;</string>
## Usage
You can search all links with the default keyword, `lw {query}`
You can search within a collection/show all items in collection ordered by date added by adding a custom keyword. An example is given in the workflow object. You need to create a `Script Filter` object, and add `bash ./helper.sh collection 16 "$@"` as the script value, where `16` is the specific collection id. You can retrieve this id by looking at the url of a collection when it is open in your browse, it will be the final value in the path.</string>
<key>uidata</key>
<dict>
<key>126EF3B6-E7CB-4C32-BB88-B7CAF26DAFA5</key>
Expand All @@ -116,6 +179,15 @@ USAGE: lw &lt;query&gt;</string>
<key>ypos</key>
<real>105</real>
</dict>
<key>885ABB2A-0C8E-48AC-831A-EC862F9BA401</key>
<dict>
<key>note</key>
<string>Search a specific collection with a keyword</string>
<key>xpos</key>
<real>95</real>
<key>ypos</key>
<real>230</real>
</dict>
<key>C3938C43-F374-46D7-9C55-3200430ED8C3</key>
<dict>
<key>xpos</key>
Expand Down Expand Up @@ -172,7 +244,7 @@ USAGE: lw &lt;query&gt;</string>
<key>variablesdontexport</key>
<array/>
<key>version</key>
<string>1.0</string>
<string>1.2</string>
<key>webaddress</key>
<string></string>
</dict>
Expand Down

0 comments on commit cb4f1db

Please sign in to comment.