gnome-shell-extension-clipboard-indicator icon indicating copy to clipboard operation
gnome-shell-extension-clipboard-indicator copied to clipboard

FR: Directly paste from list

Open pat-richter opened this issue 7 years ago • 8 comments

I would like to not only set an item as "active" (and push it to my clipboard), but paste it directly in the currently focused field.

An example use case is: [Shortcut] to open the list [Arrow down] [Arrow down] [Arrow down] [Shortcut] to paste the current entry (or maybe just "Enter")

This would remove the additional step of Ctr+V the value.

pat-richter avatar Jan 24 '18 09:01 pat-richter

@Tudmotu I will try to implement it, at least for Xorg it should be possible, but not that easily : https://github.com/Keruspe/GPaste/issues/119

capi1O avatar Apr 11 '18 08:04 capi1O

Sounds from that thread that it's not really possible, right? In any case, feel free to give it a try! I would try to do this on Wayland tho, since Xorg is going to disappear soon. Maybe Wayland has an option to fake ctrl+v calls somehow. I must admit I have no clue how to do that.. :sweat_smile:

Tudmotu avatar Apr 11 '18 08:04 Tudmotu

@Tudmotu ClipIt uses xdotool so as long as you can run shell commands, it should be no problem with that tool. /bin/sh -c 'xdotool key ctrl+v'

komakino avatar Apr 22 '18 23:04 komakino

@komakino @Tudmotu Any luck using xdotool ? Anyone tried? :)

ghost avatar May 12 '19 15:05 ghost

Yeah, I need this feature too, any advance of this?

dave-flr avatar Apr 28 '20 22:04 dave-flr

Hi, I created a fork of this repo (https://github.com/gpothier/gnome-shell-extension-clipboard-indicator) and adapted @tatums pull request to the current version of the extension (and replaced xdotool type by xdotool key to simulate a ctrl+v press). This does not address the issues raised by @Tudmotu in the PR (namely, it only works in X11 and requires xdotool), so I don't know if it is worthwhile to create a new PR. However, it works for me.

gpothier avatar Oct 25 '20 18:10 gpothier

Looks like there's an xdotool "clone" that works independently of the window manager: ydotool, but there might be issues with licensing as it's under AGPLv3

PrOF-kk avatar Jun 02 '21 15:06 PrOF-kk

Hey folks, this is available in a re-written version of the extension: https://github.com/SUPERCILEX/gnome-clipboard-history.

SUPERCILEX avatar Feb 22 '22 06:02 SUPERCILEX