💾 Archived View for tilde.town › ~nihilazo › vimwiki-acme.gmi captured on 2021-12-03 at 14:04:38. Gemini links have been rewritten to link to archived content
-=-=-=-=-=-=-
Tags:plan9,tech
I used to use vimwiki for all my personal notes. It was pretty cool, and I have years worth of notes that are still stored in vimwiki's markdown format. Recently I've been using plan 9's acme more than vim, but I still wanted to work with my vimwiki. Turns out, this is quite easy.
My git repo for plan 9 scripts
The features I needed to do what I used vimwiki for in acme:
This is built in to acme (right click the path in round brackets). I tried writing a plumbing rule that matched links themselves, but acme's default behavior is more than good enough here.
I wrote an rc script, mdlink, that will, when some text in the window is selected:
Usage: Write |mdlink into your tag, select the text you want a new page off of, execute it!
9front has a script, g, which can be used to recursively search for source code. I modified it to be case-insensitive and search markdown files rather than source files. Using it is as easy as "wg [search]" from any window that is open in the wiki. I don't exactly know how this works, but it does work.