Bug?/Request: linking doesn't work when linking to a non-default file type
CompletedAs of 1.0.0 (66)
My default file extension is .md. If I try to link to a md file, I can then erase the file type from the link (eg [[file]] instead of [[file.md]]) and it will still work.
However, if I link to a file with a different extension and then erase the file type, it will instead create a new file with the default file extension instead of following the link. e.g. I link to [[file.text]] but then erase the extension so it is [[file]]. Now when I click on the link, it creates a blank file.md instead of following it to file.text.
I understand why it is doing this (I think), but is there any way to change this default behavior? It is easy enough to stick to one file type going forward, but if I add in previous notes that I had stored in nvALT... well, they use a variety of different file extensions (as I've been using nvALT for a long time) and none of the links include a file extension, so this creates a mess, breaking a lot of my preexisting links.
-
The "correct" way to link to a file is the full filename, including extension. If the extension is left out, then the default is used. This is the only "foolproof" way to do it.
Otherwise, how could nvUltra know whether you intended to link to `file.txt`, `file.md`, or `file.myfavoriteextension` if more than one exists? Or more commonly, you could have a folder with `file.txt`, `file.png`, and `file.itmz` and nvUltra would have to guess which one was meant, or verify that only one possibility is a text file.
If none of your links use extensions, and you use a wide range of plain text file extensions, then the easiest solution would be change all the file extensions to be the same (e.g. `.md` or `.text` or whatever you use as your default within nvUltra.)
0 -
Yes, I understand, like I said in my initial post. So the solution for me is to just go through all my notes and rename the extension.
As to how it would work... well, like nvALT I suppose, specify the extensions of text files to be recognized in the options menu, then match name only instead of extension. I wonder if you could add an option for this?
But anyway, I am not complaining. I know how to mass rename files, so renaming everything with the same extension isn't that bad for me. But I am wondering about future users. I imagine a lot of nvALT users are like me... multiple file types in their folder (.txt, .md, .markdown, and so on), linking between them by name only, not including extension. Upgrading to nvUltra might give them the same hiccup.
0
Please sign in to leave a comment.
Comments
2 comments