notes-android icon indicating copy to clipboard operation
notes-android copied to clipboard

Allow linking to other notes graphically

Open frankgerhardt opened this issue 4 years ago • 4 comments

For creating a link from one note to another the id of the note has to be used. In the web UI it's easy to see the id in the URL. However in the mobile app there is no way to see the id and therefore it is impossible to create a link to another note. See https://github.com/nextcloud/notes/issues/386.

Even better would be a way to create a link to another note by typing in the title of the note and the id would be handled behind the scenes.

frankgerhardt avatar Jun 26 '20 10:06 frankgerhardt

Showing an id of a note is not nice as it's too technical. :-1: We already have the link button in the context menu when long pressing at one place or when selecting some text.

It currently

  • adds the necessary markdown for a link
  • automatically inserts an URL if the clipboard contains one

We could instead open an dialog when choosing link from the context menu which displays

  • If selected text is an URL:
    • a plain input field to write the text (prefilled with stuff from clipboard)
  • Else
    • an input for the URL which also works as a filter for ↲
    • a list of notes (only notes which have a remoteId)
    • an optional first entry of the list if the clipboard contains an URL

Pull Requests are welcome.

stefan-niedermann avatar Jun 26 '20 10:06 stefan-niedermann

The use of double square brackets with the title, to create a link to another note, is simple and fast. Break some link when title changes is a insue, but I think is a minor one. This is the way used in Markor, obsidian.md, vimwiki, etc.

vbraraujo avatar Jan 05 '21 22:01 vbraraujo

The double brackets approach is by far my preference. Linking with the internal ID is a weird abstraction leak, whereas double square brackets is somewhat standard and sticks to the Markdown idea of describing what you mean rather than giving very explicit instructions. Also I can't be the only person using Nextcloud to host my linked notes and upset that Nextcloud has a very different (and inflexible) idea of linking.

gabrielkulp avatar Jun 19 '21 16:06 gabrielkulp

Years having passed, the "too technical" approach would have been better than nothing IMHO...

keithzg avatar Jun 12 '23 23:06 keithzg