epwalsh / obsidian.nvim

Obsidian 🤝 Neovim
Apache License 2.0
3.86k stars 175 forks source link

Allow relative and absolute paths in addition to pure 'Wikilinks' #174

Closed gwenwindflower closed 10 months ago

gwenwindflower commented 1 year ago

🚀 The feature, motivation and pitch

I use https://quartz.jzhao.xyz/ to host my Obsidian vault as a digital garden, and it requires that [[this/is/a/full/path/to/note]]. This is easy to set in Obsidian, but as far as I can tell not an option to be returned from the completion source for [[ links. I looked at the code for completion a bit and I think it wouldn't be terribly bad to add there and make it a config option?

With a bit of guidance and could maybe taking a stab at adding this myself if I'm thinking about this right/know the right the place to look.

Thanks for your work on this excellent plugin!

Alternatives

No response

Additional context

Links would like this: Screenshot 2023-08-13 at 4 03 10 PM

epwalsh commented 1 year ago

Hey @gwenwindflower I'd be happy to accept a PR for this. In this example, is [[this/is/a/full/path/to/note]] a relative path to the note, relative to the vault root, or an absolute path?

gwenwindflower commented 1 year ago

Hey @epwalsh thanks for being open to this -- I ended up realizing I want to purely edit my notes in nvim and Obsidian just complicates the situation for me (for the time being), so I went with using mkdnflow as my plugin for this type of functionality and won't have capacity to pick this up after all. appreciate you though! thanks for making a great tool.