Is your feature request related to a problem? Please describe.
Adding links to other files in my Nextcloud instance is tedious.
Describe the solution you'd like
Add an 'Add Nextcloud link' icon to the right of the current 'Add picture' icon to easily add a link to a file in your Nextcloud instance just how you do it to add a picture.
Describe alternatives you've considered
It is already possible to select a file using the 'Add picture' icon, but that one adds a big picture like rectangular shape and the link is not to the file itself, but to the directory in which it is contained. But the code should be very eaasy to adapt to add in this case a proper link to a file in my text.
Additional context
In order to add a link to another file in your Nextcloud you need to
Have additional files tab open in your browser showing the files in Nextcloud
Click on the files tab
Go into the directory with the file to be linked
In order to avoid spelling issues right-click the file and attempt to rename it
Copy the name of the file to the clipboard
Click on the text editor tab
Paste the name of the file into your text editor
Highlight the copied name
Click on the files tab
Right-click the file to be linked again
Select Details
Click on the icon to do a direct copy of the Nextcloud Link to the clipboard
Click on the text editor tab
Paste the Nextcloud Link as a link in the text editor
Done - you have a link like NextcloudApps.md
Click on the 'Nextcloud link' icon right to the current 'Add picture' icon
Select the file in that GUI as you would select a picture
Done - you have a link like NextcloudApps.md
Sounds like a nice idea, we probably could also add a file picker option when a text is selected in addition to the existing url field for adding a link.
Great idea. An more, I would like to make a link to another nextcloud file, and when clicked to let it open the file automatically as I pointed to file, not a directory.
It would be great to be able to use relative links - this way the editor can turn your filesystem in a very basic wiki. Please add another option when a word is selected - currently there is "add link" only. Something like "link to nexcloud file". In line with wiki style it would be great if the file is red if it does not exist and by clicking on it you would created nex .md file.
I'll start working on this. Will probably use relative links with fileid like i did for images (#504):
[relative link](../other_dir/file?fileid=123)
They work outside of nextcloud as relative links and can still be found if the directory structure changes or is different because of how files were shared.
So first goal is the original proposal with relative links.
Will see if i can also get to
I will stay away from red links for missing files for now for two reasons:
I'm working on a wiki app which does have this as part of it's scope.
Most helpful comment
Great idea. An more, I would like to make a link to another nextcloud file, and when clicked to let it open the file automatically as I pointed to file, not a directory.