Skip to main content

Wiki links require knowing extension

Completed

Comments

7 comments

  • Fletcher Penney

    Correct.  If you have 2 files (`file.txt` and `file.md`) and a wikilink (`[[file]]`), there is no way to guess what your intention was.  If the extension is left off, then nvUltra does append the default extension for you.

     

    My recommendation would be to rename all files to use a consistent extension(which would be the extension you set as default of course), and then it won't matter whether your wikilinks include an extension or not.

    0
  • Brett

    For reference, nvALT wiki links simply put whatever text was in the brackets into the search field, so it would find any file matching that text. In its present state, nvUltra is just more specific about handling wiki links.

    0
  • Curtis Child

    Thanks both!

    0
  • Raphaël Huleux

    Hey, 

    I can't open wikilinks without extensions, whereas all my files are .md and it is also the default in nvUltra. Any idea why? (It opens an empty page when I click them).

    It would be very nice to be able to use the old nvALT way of just putting the link into the search.

    0
  • Steve Daviss

    Related to the way the [[hyperlinks]] are generated, my comment on another thread points out the problem with trailing spaces in new files generated from a wikilink.

    Assuming these files do not exist and that .md is the default extension, [[foo]] and [[foo ] each generate a file: respectively, foo.md and foo .md. I expect most would find this to be an undesirable behavior. I suggest considering implementing this the same way that nvAlt handles wikilinks, by not creating a hyperlink when the text has a trailing space...

     

    0
  • Fletcher Penney

    Steve Daviss -- I'll have to think about this one.  Not to seem snarky, but this seems like user error.  Don't put the space in there if you don't want it, right?  I wouldn't expect nvUltra to convert `[[foo bar]]` to `[[foobar]]`, and while I never intentionally put trailing space in my filenames, I can't say that it is "wrong" per se.

    0
  • Fletcher Penney

    Raphaël Huleux -- fixed in an upcoming release.

    0

Please sign in to leave a comment.

Powered by Zendesk