notes-android
notes-android copied to clipboard
Allow linking to other notes graphically
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.
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.
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.
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.
Years having passed, the "too technical" approach would have been better than nothing IMHO...