Closed XP1 closed 3 months ago
I can't get the original version from hluk/CopyQ#1948 working on Wayland. The
ItemSelection().current()
andselectedTab()
are both empty, so I had to write my own version that saves the selected row to the settings.
Hmm, true, getting current and selected items works only if the command was triggered from the app and won't work when it is run from console or by a system shortcut binding. It might be better to remove the restriction and allow any command to get the list of selected items when first requested (if not yet available).
BTW, thanks for sharing the workaround!
In the next CopyQ release, the selected items will be available in all commands. Fix: https://github.com/hluk/CopyQ/pull/new/fix-native-notifications
I can't get the original version from https://github.com/hluk/CopyQ/issues/1948 working on Wayland. The
ItemSelection().current()
andselectedTab()
are both empty, so I had to write my own version that saves the selected row to the settings.In my version, I prefer a single one-handed shortcut, similar to how Alt + Tab and Ctrl + Tab works, so I use Ctrl + 1 for forwards and Ctrl + Shift + 1 for backwards.
Add the commands including the "
wayland-support.ini
" in CopyQ. Next, in KDE, add the shortcuts in System Settings > Shortcuts > Add Command... > Add.copyq triggerGlobalShortcut "Cycle previous items"
> Add custom shortcut > Ctrl + Shift + 1.copyq triggerGlobalShortcut "Cycle next items"
> Add custom shortcut > Ctrl + 1.cycle-previous-and-next-items.ini
: