Skip to main content

Wikilink [[]] as a search rather than exact direct-linking

Comments

6 comments

  • Fletcher Penney

    We can certainly consider other options in the future, but a link syntax is probably not the best way to go with this.  The WikiLink syntax implies that one is linking to a specific document, not searching for a list of documents that match a given search term.

    0
  • Daniel Sandbecker

    This is how it's implemented in The Archive, which I'm currently evaluating along with nvUltra. Clicking a wikilink filters the File List (Note List in their terminology) and closes the current file, but if the search finds a "good match" it opens automatically (while keeping the filtered list of files).

    A "good match" seems to be any file with a prefix matching the search string, so a note title would definitely be one (thus not changing current behavior in nvUltra). But it also opens up for using ID-prefixes on files and link only through them to prevent links from going stale.

    If there are more than one "good match" it opens the first listed. E.g. `[[Note]]` would find both Note A and Note B but open Note B. (Files are listed in reverse alphabetical order, probably since the author uses timestamp as ID-prefixes.)

    I like the idea of making links that doesn't break when a note title changes, but I'm still not sure how I feel about their implementation. Not having the title in the link makes it some what context less. I guess also allowing titles after `|` in wikilinks (like in mediawiki) would solve that, e.g. `[[202004251424|link title]]`.

     

    1
  • Fletcher Penney

    I'm not sure that I like the idea of coopting the WikiLink syntax for a search instead of a link. 

    0
  • Daniel Sandbecker

    No, I can definitely understand that.

    (It seems to work that way in nvAlt too though.)

    1
  • Brad Rokosz

    yes, it does work that way in nvAlt. wiki linking should be a bit more fuzzy. I often have multiple similar files where a single specific wikilink would lose context. 

    0
  • Chris C

    Alternatively you could implement this feature with a nvUltra workaround :

    0

Please sign in to leave a comment.

Powered by Zendesk