rickyrockrat / parcellite

GNU General Public License v3.0
220 stars 29 forks source link

ADD custom shortcuts to paste 2nd..Nth position on clipboard #51

Open allanlaal opened 3 years ago

allanlaal commented 3 years ago

user would be able to set a keyboard shortcut to paste the previous (2nd) item from the clipboard, or 3rd, etc

use case:

copypasting forms etc everyday life

rickyrockrat commented 3 years ago

So how would you invoke it? Maybe Ctrl-Alt V, then Ctrl-Alt n, where n is the x item. Things like this are not easy to support, mostly because it has to use xdotool because of the way the X clipboard is designed.

allanlaal commented 3 years ago

custom shortcuts for sure, but Ctrl+Alt+123456789 would be a great default

allanlaal commented 3 years ago

is depending on xdotool ok?

rickyrockrat commented 3 years ago

It is the nature of the beast. As a clipboard manager, Parcellite has no way to paste into another application, hence xdotool. But there are lots of times it would come in handy just so I don't have to use the mouse to select...

sidmint commented 2 years ago

I've been clipit and it has the option of showing 'indexes' with the copies items. these indexes are numbers starting from 1. when a number is pressed from the popup of items, that item gets pasted. i think this issue is talking about this same thing. isn't this same thing possible in Parcellite? due to xdotool that Parcellite uses and clipit not?

sidmint commented 1 year ago

I've been clipit and it has the option of showing 'indexes' with the copies items. these indexes are numbers starting from 1. when a number is pressed from the popup of items, that item gets pasted. i think this issue is talking about this same thing. isn't this same thing possible in Parcellite? due to xdotool that Parcellite uses and clipit not?

Here's a snapshot of clipit popup [observe the numbers present on the left of each entry] 2022-08-26-19:48:02

And similar thing also happens in CopyQ.

rickyrockrat commented 1 year ago

Since Clipit is a fork of parcellite, of course it is possible. Currently Parcellite has a search-as-you type feature that could not coexist with this, so it would be one or the other.

sidmint commented 1 year ago

Thanks, I didn't know that.

This feature may be more important than search-as-you type for some people, including me. How about an option in settings to choose between the two?

In Clipit, searching is available via 'manage history' separately which I couldn't find in Parcellite. Is it there? That model, though 'manage history' is a separate window, seemed more easy to me than choosing between one of the features.

By the way, also want to thank you for 'Save as' feature of Parcellite, which Clipit doesn't have.

rickyrockrat commented 1 year ago

If search-as-you type is turned on, it will start searching the moment you press a key with the history up. I don't like the way it works, because it stops at the first one found....but it does work. And yes, if you selected one option, it would turn the other off automagically.

sidmint commented 1 year ago

So can we hope for the pasting-via-indexes feature in the near future? :)

guidomz commented 5 months ago

I would also favor a similar enhancement.

An alternative solution would be to delete the 1st clipboard element (or move it to the bottom of the list) once it is pasted. I just don't know if this is possible.