Thanks for going so far out of your way for me.
… I’ve been suggesting to you since September 2022 that you should consider using Wikilink format instead of Markdown. I still think it would make your life easier.
Yes, I took your advice. Have been doing wiki links for quite a while now.
In the help docs for Vimwiki, I see that it does support [[This Type Of Link]]
. And that VimWiki mode is actually the default, same as in Obsidian. Markdown is an option.
For several years most of my work-related and personal note taking and writing was with vim and vimwiki. I have a folder, with no subfolders, with a huge number of files created that way. Markdown links were based on words occurring within the files.
wiki.vim, the plugin I mentioned yesterday, supports markdown, wiki, orgmode, and asciidoc link types.
I did a test, and it works for me. But it seems to need to use “Relative path to file” in Obsidian. So you would have [[Folder/Note Name]]
. This works in Vimwiki for me. It follows the links in my vault just fine. If your note is in a sub-folder, and you use “Shortest path when possible” [[Note Name]]
then it won’t work. It will make a new note.
Exchanges with Karl Lervag, the wiki.vim developer, have made me wonder whether the path setting might have something to do with the problem I have. Yesterday I tried all three settings, restarting Obsidian after each change of setting, then copied the Obsidian Url from a note and pasted them into a note. I could not see any difference among them. But maybe that’s not the way the effect of the path settings would show up.
If I use “relative path to file” do I have to enter the folder, if there is a folder into the link manually when creating a link or is it set automatically if “relative path file” is set?
…
What I don’t know is how easy or hard it is to find and then create relative links that include the folders in Vimwiki. I just installed it today to test, so I’m not familiar with if it has search or auto-complete features. I know it can search and jump to a file.
I’d be interested in what you find, If you’ve continued to explore Vimwiki.
My linking so far has been pretty simple, mainly between an index file and groups of files that themselves are not linked to any other files. And it is just the names that are linked.
From the Vimwiki docs:
A VimWiki link can be constructed from more than one word. Just visually select the words to be linked and press Enter. Try it, with Project Gutenberg
. The result should look something like:
= My knowledge base =
* [[Tasks]] -- things to be done _yesterday_!!!
* [[Project Gutenberg]] -- good books are power.
* Scratchpad -- various temporary stuff.
That was how I did it. Except I don’t think link brackets were displayed when the cursor was not on them.
Thanks again.