[BUG] Wiki Links autocomplete list shows images
CompletedWhen typing a new wiki link with double brackets, images are listed in the autocomplete suggestions. This is a great idea, but when selecting the image suggestion, it doesn't link to the image. So when clicking on the complete wiki link, it generates a new file with the name of the image + .md. For example, the auto suggestion is 'cat.jpg' but when clicking on '[[cat.jpg]]' a new file is generated called 'cat.jpg.md'.
Steps to reproduce:
1. Save an image to a directory open in nvUltra.
2. Create a new (or use an existing) file in nvUltra.
3. Type double square brackets to prompt the auto suggestions list to display.
4. Auto complete the suggestion for the image you added in step 1.
5. Click on the completed wiki link.
6. Witness that a new file has been created with '<image-name>.jpg.md'.
The two options as I see them: either don't display images in auto suggestions or correctly navigate to a wiki linked image.
Thanks! I was a long time nvALT user and am super excited for the official release of nvUltra!
-
My opinion would be that images shouldn't show up in the completions, as I can't think of a situation where a wiki link to an image makes much sense. We'll look into it, thanks for catching this!
0 -
The inability to click on a WikiLink to an image was a regression due to a change in the code used to ensure that text files had a valid extension. It now checks to see if the file already exists as is before appending the default extension. So now WikiLinks to images work, which was the intended functionality. (Edit: "now" meaning in the next update)
0
Please sign in to leave a comment.
Comments
2 comments