nextcloud / nextcloud/collectives

A keyboard shortcut to smooth the process of linking pages

Open
#1,584 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature: link handling
Dominant language
JavaScript
Stars
195
Forks
51
Avg merge
1d 2h
Merged PRs (30d)
48

Description

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.

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by tracing the existing "/" smart-picker flow, the top-menu flow for selected text, and the collectives provider search behavior described in the issue. Compare the requested shortcut workflow with issue #1583; done means selected text opens the picker, pre-fills and triggers search, supports keyboard selection or editing, and links the chosen page.

Written by the indexing model from the issue text.

Assessment

Tech stack
javascript
Domain
frontend
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.