parcellite icon indicating copy to clipboard operation
parcellite copied to clipboard

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

Open allanlaal opened this issue 4 years ago • 11 comments

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

allanlaal avatar Dec 05 '20 17:12 allanlaal

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.

rickyrockrat avatar Mar 23 '21 02:03 rickyrockrat

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

allanlaal avatar Mar 24 '21 15:03 allanlaal

is depending on xdotool ok?

allanlaal avatar Mar 24 '21 15:03 allanlaal

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...

rickyrockrat avatar Mar 26 '21 01:03 rickyrockrat

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 avatar Apr 16 '22 04:04 sidmint

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.

sidmint avatar Aug 26 '22 14:08 sidmint

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.

rickyrockrat avatar Sep 17 '22 00:09 rickyrockrat

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.

sidmint avatar Sep 20 '22 01:09 sidmint

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.

rickyrockrat avatar Sep 20 '22 03:09 rickyrockrat

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

sidmint avatar Sep 25 '22 01:09 sidmint

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.

guidomz avatar Feb 03 '24 03:02 guidomz