Skip to content

Commit

Permalink
break!: remove nvim-subreddit search (use reddit Alfred workflow)
Browse files Browse the repository at this point in the history
  • Loading branch information
chrisgrieser committed Dec 5, 2023
1 parent 0372598 commit 3e9ebb6
Show file tree
Hide file tree
Showing 7 changed files with 3 additions and 249 deletions.
4 changes: 0 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,6 @@ Search [neovim plugins](https://neovimcraft.com/) and [online :help](https://neo
- `ip`: Search for plugins (and Mason tools) installed locally on your device. Mnemonic: `[i]installed [p]lugins`. The modifiers (<kbd>⌘⌥⌃⇧</kbd>) from the plugin-search also apply for this command. In addition:
- <kbd>fn⏎</kbd>: Open the local directory of the plugin in Finder.
- `mason`: Search for tools available via [mason.nvim](https://github.com/williamboman/mason.nvim).
- `nvr`: Shows the latest posts from the neovim subreddit. (Due to reddit API limitations, the cache is only reloaded every ~10 minutes.)
- <kbd>⏎</kbd>: Open the post in the browser.
- <kbd>⌥⏎</kbd>: Copy the URL to the clipboard.
- <kbd>⇧</kbd>: Show author of the post.
- `:old`: Displays and searches your `:oldfiles`. Opens them in the system's default editor for the respective filetype. (To open them directly in neovim, you need a neovim GUI with `Open With…` capability though.)
- `:nvim`: Creates the local cache for the online :help search. Run it once in a while, when there have been updates to the online docs.

Expand Down
1 change: 1 addition & 0 deletions alfred.d.ts
147 changes: 0 additions & 147 deletions info.plist
Original file line number Diff line number Diff line change
Expand Up @@ -206,29 +206,6 @@
<false/>
</dict>
</array>
<key>7572486D-59C9-427F-8DF0-A60B6F876F57</key>
<array>
<dict>
<key>destinationuid</key>
<string>F9AD00C3-C893-400C-ACEC-04513C20CC03</string>
<key>modifiers</key>
<integer>0</integer>
<key>modifiersubtext</key>
<string></string>
<key>vitoclose</key>
<false/>
</dict>
<dict>
<key>destinationuid</key>
<string>04FB2B7F-2F25-443A-98EC-3D62C8EFBF34</string>
<key>modifiers</key>
<integer>524288</integer>
<key>modifiersubtext</key>
<string>⌥: Copy URL</string>
<key>vitoclose</key>
<false/>
</dict>
</array>
<key>79F25308-2C64-400B-AC1D-C1FD5FC840DF</key>
<array>
<dict>
Expand Down Expand Up @@ -637,76 +614,6 @@
<key>version</key>
<integer>2</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>alfredfiltersresults</key>
<true/>
<key>alfredfiltersresultsmatchmode</key>
<integer>2</integer>
<key>argumenttreatemptyqueryasnil</key>
<true/>
<key>argumenttrimmode</key>
<integer>0</integer>
<key>argumenttype</key>
<integer>1</integer>
<key>escaping</key>
<integer>0</integer>
<key>keyword</key>
<string>{var:neovim_subreddit_search}</string>
<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>loading…</string>
<key>script</key>
<string></string>
<key>scriptargtype</key>
<integer>1</integer>
<key>scriptfile</key>
<string>scripts/nvim-reddit.js</string>
<key>subtext</key>
<string></string>
<key>title</key>
<string>Latest Posts from r/neovim</string>
<key>type</key>
<integer>8</integer>
<key>withspace</key>
<true/>
</dict>
<key>type</key>
<string>alfred.workflow.input.scriptfilter</string>
<key>uid</key>
<string>7572486D-59C9-427F-8DF0-A60B6F876F57</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>browser</key>
<string></string>
<key>skipqueryencode</key>
<false/>
<key>skipvarencode</key>
<false/>
<key>spaces</key>
<string></string>
<key>url</key>
<string></string>
</dict>
<key>type</key>
<string>alfred.workflow.action.openurl</string>
<key>uid</key>
<string>F9AD00C3-C893-400C-ACEC-04513C20CC03</string>
<key>version</key>
<integer>1</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -824,25 +731,6 @@
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
<key>autopaste</key>
<false/>
<key>clipboardtext</key>
<string>https://github.com/{query}</string>
<key>ignoredynamicplaceholders</key>
<false/>
<key>transient</key>
<false/>
</dict>
<key>type</key>
<string>alfred.workflow.output.clipboard</string>
<key>uid</key>
<string>04FB2B7F-2F25-443A-98EC-3D62C8EFBF34</string>
<key>version</key>
<integer>3</integer>
</dict>
<dict>
<key>config</key>
<dict>
Expand Down Expand Up @@ -992,10 +880,6 @@ Run `:nvim` once to create the local cache for the `:h` search.
- `mason`: Search for tools available via [mason.nvim](https://github.com/williamboman/mason.nvim).
- `ip`: Search for plugins (and mason tools) installed locally on your device. Mnemonic: `[i]installed [p]lugins`. The modifiers (&lt;kbd&gt;⌘⌥⌃⇧&lt;/kbd&gt;) from the plugin-search also apply for this command. In addition:
- &lt;kbd&gt;fn⏎&lt;/kbd&gt;: Open the local directory of the plugin in Finder.
- `nvr`: Shows the latest posts from the neovim subreddit.
- &lt;kbd&gt;&lt;/kbd&gt;: Open the post in the browser.
- &lt;kbd&gt;⌥⏎&lt;/kbd&gt;: Copy the URL to the clipboard.
- &lt;kbd&gt;&lt;/kbd&gt;: Show author of the post.
- `:old`: Displays and searches your `:oldfiles`. Opens them in the system's default editor for the respective filetype. (To open them directly in neovim, you need a neovim GUI with `Open With…` capability though.)
- `:nvim`: Creates the local cache for the online :help search. Run it once in a while, when there have been updates to the online docs.
Expand All @@ -1018,17 +902,6 @@ Created by [Chris Grieser](https://chris-grieser.de/).</string>
<key>ypos</key>
<real>475</real>
</dict>
<key>04FB2B7F-2F25-443A-98EC-3D62C8EFBF34</key>
<dict>
<key>colorindex</key>
<integer>1</integer>
<key>note</key>
<string>copy url</string>
<key>xpos</key>
<real>830</real>
<key>ypos</key>
<real>580</real>
</dict>
<key>14ECFC26-C670-4D39-9A5C-C24B452554F2</key>
<dict>
<key>colorindex</key>
Expand Down Expand Up @@ -1120,17 +993,6 @@ Created by [Chris Grieser](https://chris-grieser.de/).</string>
<key>ypos</key>
<real>20</real>
</dict>
<key>7572486D-59C9-427F-8DF0-A60B6F876F57</key>
<dict>
<key>colorindex</key>
<integer>1</integer>
<key>note</key>
<string>reddit search</string>
<key>xpos</key>
<real>655</real>
<key>ypos</key>
<real>455</real>
</dict>
<key>79F25308-2C64-400B-AC1D-C1FD5FC840DF</key>
<dict>
<key>colorindex</key>
Expand Down Expand Up @@ -1231,15 +1093,6 @@ Created by [Chris Grieser](https://chris-grieser.de/).</string>
<key>ypos</key>
<real>505</real>
</dict>
<key>F9AD00C3-C893-400C-ACEC-04513C20CC03</key>
<dict>
<key>colorindex</key>
<integer>1</integer>
<key>xpos</key>
<real>830</real>
<key>ypos</key>
<real>455</real>
</dict>
<key>FB617FEA-F94F-4A13-8327-5EC723FD66AB</key>
<dict>
<key>colorindex</key>
Expand Down
1 change: 1 addition & 0 deletions jsconfig.json
1 change: 1 addition & 0 deletions jxa-globals.d.ts
1 change: 0 additions & 1 deletion scripts/issue-search.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ function run() {
const repoID = $.getenv("repoID");
console.log("🪚 repoID:", repoID);

// GET PLUGIN ISSUES
// GitHub API only returns 100 results https://stackoverflow.com/questions/30656761/github-search-api-only-return-30-results
const issueAPIURL = `https://api.github.com/repos/${repoID}/issues?state=all&per_page=100`;
const issueJSON = JSON.parse(app.doShellScript(`curl -s "${issueAPIURL}"`))
Expand Down
97 changes: 0 additions & 97 deletions scripts/nvim-reddit.js

This file was deleted.

0 comments on commit 3e9ebb6

Please sign in to comment.