collectives icon indicating copy to clipboard operation
collectives copied to clipboard

A keyboard shortcut to smooth the process of linking pages

Open timkrief opened this issue 1 year ago • 0 comments

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

I often link to existing pages, using the "/" to open the smart-picker creates a link with an ugly name (the url itself) that is tedious to change each time. Dragging pages works fine, but it's hard to find pages in large and active collectives and you have to use a mouse. Selecting the text to link and then using the top menu to open the smart-picker works well but is quite a long process and you have to use a mouse.

Describe the solution you'd like

  • The user selects the text to link
  • They uses a shortcut (Ctrl + "/" for instance)
  • It opens the smart-picker, and auto-select the collectives provider
  • It auto-fills the smart-picker field with the selected text and trigger the search
  • User can select the first option with enter if it's a perfect match, select another option using the arrows or even edit the search text
  • The selected text is linked to the selected collective page

Describe alternatives you've considered

I made a user-script that does most of this described solution, but even after hours spent searching, I can't trigger the search without actual keyboard input. (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)

This would also help a lot: https://github.com/nextcloud/collectives/issues/1583 It wouldn't replace what's suggested here, because it wouldn't work with already written texts, but for text you are in the process of writing, it would work even better. Both would be ideal.

Additional context

This feature would make it easier to link pages to one another, a bit as it is done in most wikis.

timkrief avatar Nov 10 '24 23:11 timkrief