hluk / CopyQ

Clipboard manager with advanced features
GNU General Public License v3.0
8.64k stars 440 forks source link

Simplified cycle through windows clipboard #1447

Open sobuj53 opened 4 years ago

sobuj53 commented 4 years ago

Is your feature request related to a problem? Please describe. Hello, thank you for your super handy clipboard manager. I'm trying to paste and cycle thorugh clipboard item that was copied before using CopyQ. There is a similer issue is posted in #729, but it doesn't really solve the problem as it has multiple limitations.

A clear and concise description of what the problem is. Ex. I'm always frustrated when [...] The problem with #729 is,

  1. The clip window doesn't follow mouse cursor and apperars in the bottom, which is not helpful issue

  2. At the end of the clipboard if we continue to press Ctrl+Shift+V multiple window pops up saying no more items issue1

  3. Say if we copy 3 different items in clipboard and pressed Ctrl+Shift+V 4 times in a row it will show "no more items" but now we can't get back to previous clipboard item if we press Ctrl+Shift+C

Describe the solution you'd like

  1. Clip display window should follow courser where it's being typed so it would be easier to see what I'm about to paste
  2. At the end of the clipboard, if there is no item left, then show the last item, not "no more items". But as a info It could highlight the last item or 1st item in a non intrusive way.
  3. Even if the clipboard has 3 items pressing more Ctrl+Shift+V will only show the end item in one window not "no more items" in multiple window and if we press Ctrl+Shift+C, it will take us back to the 2nd item.
  4. Would have been better if we can use Ctrl+V as paste current item and pressing V while holding Ctrl key would paste next clipboard item also without releasing the Ctrl key pressing C key would paste the previous item. More like Clipjump.
  5. Easy way to ignore pasting using CopyQ in selected window/application.

Describe alternatives you've considered I'm currently also using Clipjump, in which I can copy using Ctrl+C and while pasting I can cycle through clipboard item by pressing Ctrl+V (forward) without releasing Ctrl key pressing C takes me back to previous clipboard item. Which is a great feature. But it has it's limitations that's why CopyQ is a great alternative.

Additional context Add any other context or screenshots about the feature request here.

Thank you very much for your time and consideration.

beefeater7 commented 4 years ago

That's a clever use of hotkeys, but CopyQ has no mechanism for key-hold or key-up events. menu items can spawn at pointer coordinates, but not popups. The former may not even be a good fit.

As with any tool, sometimes it adapts to you, if not; then you adapt to it. I configured the tray menu in Preferences a little to remove clutter, then bound it to a shortcut (AltGr+V) and it shows me just the last 10 items, accessed by press of a digit.

It's not clear to a new user, but this menu is essential to CQ workflow. Try it @Sobuj53!

[Command]
Name=Show the tray menu
Command="
    copyq: menu()
"
IsGlobalShortcut=true
Icon=\xf01c
GlobalShortcut=ctrl+alt+v
sobuj53 commented 4 years ago

Thanks, It's a way to the solution but not really that practical for me.

hluk commented 4 years ago

Can you paste here the command you use?

sobuj53 commented 4 years ago

Hey @hluk, Thank you for your replay, I used code from #729 and tried above command by @beefeater7

[Command] Name=Show the tray menu Command=" copyq: menu() " IsGlobalShortcut=true Icon=\xf01c GlobalShortcut=ctrl+alt+v