-
|
Hi, I have a question about the best practice for linking to local files.
This is the behavior I'm used to from vimwiki, and I find it quite intuitive. With the current functionality in wiki.vim, I could just write the filename abc.vim in the wiki page without creating a link and use gf to open it. However, this approach has a couple of drawbacks:
If I use the format Is there a better way to handle this use case? Thanks for your help Edit: I saw in the documentation that we can use |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 3 replies
-
Pressing I think it could be interesting to look into this. Perhaps I should add that. It seems "intuitive" that the behaviour of
A link url always has a scheme, and markdown links will have a default scheme "wiki". And the default behaviour for wiki schemed urls is that they are markdown files. For other files, you should use a different scheme, for instance the I highly advice that you read the section
I will be glad to help, but I would need to better understand your desired "goal". Also, I don't know if you are using Vim and Vimscript or Neovim and Lua. |
Beta Was this translation helpful? Give feedback.
-
Beta Was this translation helpful? Give feedback.

Pressing
<cr>on text is something I only do for creating wiki links. I never considered that you might want to "toggle" a filename and create a link to other files!I think it could be interesting to look into this. Perhaps I should add that. It seems "intuitive" that the behaviour of
<cr>is something like this:If the text (either selected text or whatever is beneath the cursor) is a filename of an existing file, then the link should be a wiki link only if …