SUPERCILEX / gnome-clipboard-history

Gnome Clipboard History is a clipboard manager Gnome extension that saves what you've copied into an easily accessible, searchable history panel.
https://extensions.gnome.org/extension/4839/clipboard-history/
MIT License
470 stars 46 forks source link

Improve non search selection #189

Open Journeycorner opened 2 weeks ago

Journeycorner commented 2 weeks ago

Problem description

90% of the time I only use the last 2-3 items to copy. I never use the search feature. To select the 2nd item, I need 4 keystrokes:

  1. Shift+Super+V (open clipboard, search bar selected)
  2. DOWN_KEY (1. item selected)
  3. DOWN_KEY (2. item selected)
  4. ENTER (paste)

Potential solutions/workarounds

Automatically select the first item, so there is one key stroke less:

  1. Shift+Super+V (open clipboard, 1. item selected)
  2. DOWN_KEY (2. item selected)
  3. ENTER (paste)

If users enter any key other than the arrow keys, automatically search. Example:

  1. Shift+Super+V (open clipboard, first item selected)
  2. user types ("a"), "a" is shown in the search bar, but still the first item is selected (so there is no need to press KEY_DOWN) [if there is no result, nothing is selected and selection reappears, once the search yields results]

Additional context

Afaik this was the default behavior in Windows and it really streamlined the user experience. I don't see any drawback. Users can still use the search bar, the arrow keys or Ctrl+N - whatever suits them best!

SUPERCILEX commented 2 weeks ago

+1, this is how it works in Ringboard. Happy to accept a PR if anyone wants to send one.