zotero-vim plugin - a vim/keyboard-driven approach to using Zotero
I've long desired to have a more keyboard-driven experience of using/reading in Zotero. Specifically, as a Vim user, I love having a familiar, modal interface.
In case anyone is interested in using it, here's what I created and am using now: https://codeberg.org/finktank/zotero-vim
Works great for me in Zotero 8. I'm using it actively in my reading and making changes. I'm open to hearing about things to add/fix (can't promise I'll do anything about them, but you are welcome to let me know), but am mostly just posting here in case anyone has been looking for something similar and wants to try it out - with no guarantees!
In case anyone is interested in using it, here's what I created and am using now: https://codeberg.org/finktank/zotero-vim
Works great for me in Zotero 8. I'm using it actively in my reading and making changes. I'm open to hearing about things to add/fix (can't promise I'll do anything about them, but you are welcome to let me know), but am mostly just posting here in case anyone has been looking for something similar and wants to try it out - with no guarantees!
Upgrade Storage
just checked it out and threw a PR your way
Next on my wishlist: a fuzzy picker for the TOC!
Fuzzy picker and follow link will be on the agenda next. Love those ideas, thank you.
Fuzzy picker next for @SGGbond.
I suppose that I need to use "Open find bar and search for selection (#)" but I can't trigger it with my configuration (AZERTY French keyboard).
Trying to brainstorm: I suppose "v" could drop the cursor and highlight by default (for ease), but if one pressed another key, could turn highlighting off to jump the cursor before turning highlights back on.
Any other ideas to make that workflow functional for you?
Another question: Do you know why, most of the time, hints don't detect sentences, only lines? Perhaps it has to do with how different PDFs are formatted.
I will look into adding highlight toggling to the "v" commands.
I also implemented counts for motions in visual/cursor mode (e.g. 10j, 3k, 5w).
Give it a test and lemme know how it works!
Thank you for the update! It's working really well. I have one suggestion. When I activate Cursor Mode (Shift + V) and input the label, I would like to start moving the cursor. Currently, a red line appears on the left side of the page instead of at the beginning of the selected sentence. When I press the key to go to the end of the sentence, the red line doesn't move until I press a word or character move. It would be better if we could see each move. (Sometimes it works as intended, and sometimes it doesn't. Maybe it depends on the PDF.)
One more thing: I think you shouldn't override the system shortcut Command + H on macOS, which we use to hide the app window. It's part of the basic macOS workflow and one of the most used shortcuts, along with Command + Q to quit an app.
I'll look into the Mac overrides - I'm not experiencing that issue and am on a Mac too.
As for macOS system shortcuts, I can no longer use ⌘ H to hide Zotero. The plugin displays “No split” even when I remove the shortcut in the preferences. In fact, no changes or deletions of shortcuts seem to be working on my end.