Text: Add support for Wiki links

Created on 28 Sep 2020  路  9Comments  路  Source: nextcloud/text

There a currently a lot of note taking applications getting made which are inspired by the Zettelkasten method.
A lot of those apps started adopting the wiki link format to link notes together. [[Note Name]]
I'm currently using Obsidian.md on the desktop to work with my notes but on the go I'm using Nextcloud Notes.
Therefore I have a lot of notes with links to each other but the links aren't working in the Android application or the web application.
Nextcloud Notes plans to use Nextcloud Text in the future and because of that it would make more sense to implement this feature directly in Nextcloud Text.

Describe the solution you'd like
Add support for the Wiki link, link format. So that one can use:
[[Note Name]] to link to a file
and
[[Note Name#Heading]] to link to a heading.

I originally reported this feature request in the Nextcloud Notes app.
https://github.com/nextcloud/notes/issues/616

enhancement

Most helpful comment

If I may, I'd like to support the wiki-like links implementation. To me, it's the main and fundamental way of linking notes. I believe that right now it may be a quite unpopular feature, but I read on every single forum of Markdown apps which don't currently support it (such as Joplin and Typora) that soon they'll implement it. It's the future of internal linking, and I believe starting to develop it now would make Nextcloud Text cutting edge in the near future

All 9 comments

With NC 20 easier link's to files are added, but compare to the suggestion here you need the filedId so for example:
[User Manual](/Nextcloud%20Manual.pdf?fileId=5945777)

move the file somewhere else didn't work (should work, cause the fileId didn't change). Move to an specific #Heading would be awesome (didn't work for now).

The links need to be in Wiki format otherwise they wouldn't work with the other applications.
In Obsidian they usually link to a file in the same directory.

Are there any other markdown apps that support this? I'm not aware of anythink like [[FileName]] being part of any markdown semi-standard.

On macos, nvAlt and the upcoming nvUltra supports it. And as mentioned, use of this type of link is also widespread in the Zettelkasten community.

There is some more context in this closed issue in the repo for the NC Notes Android app:
https://github.com/stefan-niedermann/nextcloud-notes/issues/954

Zettlr supports it as well.

And there is an issue open at the Marktext repository https://github.com/marktext/marktext/issues/2329

I'm still a bit hesitant of adding such markdown features that are not part of commonmark or a standardized extension, especially when they are not supported by a major chunk of markdown editors. Therefore I'll close this for now. Whenever this becomes more widely adopted we can re-evaluate.

I'm sad to see this go as I think it would have been an innovative feature.
But I understand that you don't want to support exotic features.

If I may, I'd like to support the wiki-like links implementation. To me, it's the main and fundamental way of linking notes. I believe that right now it may be a quite unpopular feature, but I read on every single forum of Markdown apps which don't currently support it (such as Joplin and Typora) that soon they'll implement it. It's the future of internal linking, and I believe starting to develop it now would make Nextcloud Text cutting edge in the near future

Was this page helpful?
0 / 5 - 0 ratings

Related issues

jeyca picture jeyca  路  5Comments

inthreedee picture inthreedee  路  6Comments

csantosb picture csantosb  路  5Comments

juliushaertl picture juliushaertl  路  3Comments

tobiasKaminsky picture tobiasKaminsky  路  4Comments