Modal editing with The Archive (Think Vim) and collapsing lists
@ctietze and whomever has experience with scripting and the plug ins.
Modal editing in the Archive
The way I use The Archive means I have often may spurts of exponential note creation. I use the mac shortcuts to edit the text, but my left pinky is starting to feel the strain (ctrl + e, ctrl + d etc). Modal editing seems to fit my usage. I am considering to go down the vim path and try to build the Archive functionality in a copy of (neo)Vim, or use Zed's built-in modal editing (plug-ins require rust, I don't know that language right now).
I am also considering the alternative path and that is to integrate a vim-like experience with the archive. This seems to require quite some work, but I REALLY like The Archive, so my instinct is to built upon it rather than to go the Vim route.
How would you go about it? I tried looking for Vi emulation using JavaScript, but based on my research I believe this is still a large project (though maybe not much larger than building it with Rust for Zed).
A big differences is however that Zed has code folding (and crucially for my uses, folding of lists!
Collapsing lists in the Archive
Based on my understanding I would not be able to write a plugin to collapse listes, this seems to be editor-level work.
Is this correct?
Howdy, Stranger!
Comments
You should be able to get Vim motions in all native macOS text editors with something like:
https://github.com/dbalatero/mac-vim-mode
Untested, though!
Yes, adding collapsing lists from your side just won't work in The Archive. That's my job for a future update
Author at Zettelkasten.de • https://christiantietze.de/
@ctietze, yeah I am familiar with that approach, unfortunately in this particular instance he hadn't been able to implement prefixing commands with numbers to repeat them (e.g. 2dw) at the time. It seems still not. So I didn't go that route in the end.
I recently tried kindaVim (kindavim.app/) , but the pricing model annoyed me (doesn't work during the day, only after 17.00 I believe, if you want it to be on you need a subscription.
SketchyVim https://github.com/FelixKratz/SketchyVim kinda worked, but at some point I uninstalled it, I'm not entirely sure anymore what made me abort that aproach
I might try ti-vim (I'll have to read the docs to see what has been implemented): https://vim.tonisives.com I just don't like the approach (karabiner)