nextcloud / collectives

Collectives is a Nextcloud App for activist and community projects to organize together.
GNU Affero General Public License v3.0
101 stars 19 forks source link

Use page name instead of URL when using the Smart-Picker and selecting a page from current collective #1583

Open timkrief opened 2 days ago

timkrief commented 2 days ago

Is your feature request related to a problem? Please describe.

When you use "/" and select a page from the current collective (or using the smart-picker from the top bar menu without selecting any text beforehand), it creates a link with the page URL as the link text. Users may almost never need a full URL of a page from the current collective in their pages, I think people would usually want the page's name as the link text. Changing the link's text is a tedious, and when you often link pages to one another, it can become an obstacle.

Describe the solution you'd like

The behavior could be the same as when you drag a page to the text field. It inserts the page's name as the link text and it links to the page.

Describe alternatives you've considered

I made a user-script. I first write the text I want to link, select it, hit a keyboard shortcut, then the script open the smart picker, selects collectives, and enter the selected text into the search input (I have to press at least one key to trigger the search, I wasn't able to trigger the search with the user-script). This makes it possible to first select the text to search and then add a link to it with a keyboard shortcut.

Additional context

I use links between pages from the same collective really often and dragging the pages is the smoothest way to do that right now, it's an amazing feature, but it requires you to use the mouse. And to find the page in the list of pages that can get really big you end up needing to use the search field before. That means one mouse use to click on the search field, then back to the keyboard to search, then back to the mouse to drag the page, then back to the keyboard. The proposed solution would need zero mouse use.

timkrief commented 2 days ago

I know that this topic already has been discussed, but I think it's not yet implemented ( https://github.com/nextcloud/text/issues/6180 ), even if the issue has been closed in collective ( https://github.com/nextcloud/collectives/issues/949 )