GTK patch for keyboard shortcut to paste primary selection

Using applications, configuring, problems
Post Reply
Message
Author
disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

GTK patch for keyboard shortcut to paste primary selection

#1 Post by disciple »

People might (should!) be interested in these patches to GTK which allow configuring a keyboard shortcut to paste the primary selection (i.e. the same as pasting with the middle mouse button):
https://bugzilla.gnome.org/show_bug.cgi?id=643391

Traditionally X applications pasted the primary selection using Shift-Insert.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

Re: GTK patch for keyboard shortcut to paste primary selection

#2 Post by MochiMoppel »

disciple wrote:Traditionally X applications pasted the primary selection using Shift-Insert.
Must have been before my time :cry:

Two years have passed and I'm still VERY interested, but I don't see this implemented anywhere. It's odd that pasting the primary selection in X is impossible using the keyboard while 2 keyboard shortcuts are assigned to paste the clipboard.

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#3 Post by disciple »

What do you mean you don't see it implemented? You don't see a patched build of GTK?
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

User avatar
MochiMoppel
Posts: 2084
Joined: Wed 26 Jan 2011, 09:06
Location: Japan

#4 Post by MochiMoppel »

I was assuming that such patches finally make it into the official build. I guess I'm wrong :cry:

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#5 Post by disciple »

Unfortunately these days GTK is more of a 'gnome' toolkit, and the developers of gnome have rather strange ideas about usability :(
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

Re: GTK patch for keyboard shortcut to paste primary selection

#6 Post by musher0 »

disciple wrote:People might (should!) be interested in these patches to GTK which allow configuring a keyboard shortcut to paste the primary selection (i.e. the same as pasting with the middle mouse button):
https://bugzilla.gnome.org/show_bug.cgi?id=643391

Traditionally X applications pasted the primary selection using Shift-Insert.
Hello?

Can anybody here translate from Martian ?... I read through the article
and I felt like olive oil in a Teflon pan. Nothing stuck, sorry.

(BTW, I know about the Shift-Insert and Shift-Delete tricks, and I frankly
don't care if it copies to/from the primary or secondary buffers, or from
the Hintenburg blimp...)

Thanks in advance. BFN.

musher0 (obviously grumpy)
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#7 Post by disciple »

Sorry, I have no idea what you're wanting now Musher, so if you can't find the answer you'll have to try to write a clear question.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

disciple
Posts: 6984
Joined: Sun 21 May 2006, 01:46
Location: Auckland, New Zealand

#8 Post by disciple »

That link has patches to add the standard Shift-Insert functionality to GTK. It means you (or somebody else) need(s) to compile and install a patched version of GTK.
I guess you could alternatively set up a JWM keybinding using xautomation or something to make Shift-Insert send a middle-click event, but that seems more like a nasty hack.

But when you start saying you "know about the shift-insert trick" I think you must be wanting something entirely different again.
Do you know a good gtkdialog program? Please post a link here

Classic Puppy quotes

ROOT FOREVER
GTK2 FOREVER

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#9 Post by jamesbond »

Thanks disciple.

This is very interesting so I tried the patch. It works, but it doesn't work consistently enough. For example, it works on geany's "Find" text entry, but it does not work in the main editor itself. It does not work on seamonkey's URL bar (but they already said that in the patch too). So while it works, it is not consistent that it becomes (to me) rather annoying after a while, and in the end I removed it. (Not consistent as in: "sometimes shift-insert pastes the primary selection, sometimes it pastes the clipboard").

But it is indeed a better way to do it if it can be made consistent across all GTK applications.

PS: All I did was re-compile GTK with the patch. Perhaps I need to re-compile the entire apps that uses GTK to make it so? :?
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#10 Post by musher0 »

disciple wrote:That link has patches to add the standard Shift-Insert functionality to GTK. It means you (or somebody else) need(s) to compile and install a patched version of GTK.
I guess you could alternatively set up a JWM keybinding using xautomation or something to make Shift-Insert send a middle-click event, but that seems more like a nasty hack.

But when you start saying you "know about the shift-insert trick" I think you must be wanting something entirely different again.
Hello, disciple.

Answers, top to bottom.

Thanks for the explanation. But I do not know how to patch the source of
an executable without making a mess...

No jwm keybinding for me, thank you. :( jwm makes me itchy...
I may try it in pekwm, though. :)

Sorry if I wasn't clear, but I'm still struggling with the proper words to
describe what I'm looking for. I think the closest description would be this:

What would be most useful for any xterm or urxvt or console listing (an
slocate report or anything else) would be the capacity to place the cursor
at the beginning of a "longer" line (not just a word or two) and do
something (hit a key or key combination, or click a mouse button, or do
a mouse gesture) and the whole line would be copied -- without having to
highlight it with a steady hand and be careful not to include part of
another line.

"hilite and drop" is fine -- as I said elsewhere, but if it could be even
simpler, I'd like that.

Maybe such a trick already exists and I'm making a fool of myself... I
don't remember who said: "The knowledge of a self-taught person is like
Gruyere cheese." ( Moliere? Hehe.) In any case, thanks in advance for
telling me!

Happy Easter, incidentally. BFN.

musher0
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

jamesbond
Posts: 3433
Joined: Mon 26 Feb 2007, 05:02
Location: The Blue Marble

#11 Post by jamesbond »

musher0 wrote:... the capacity to place the cursor
at the beginning of a "longer" line (not just a word or two) and do
something (hit a key or key combination, or click a mouse button, or do
a mouse gesture) and the whole line would be copied -- without having to
highlight it with a steady hand and be careful not to include part of
another line.
Triple-click in urxvt (emphasis on "copy the whole line").
Fatdog64 forum links: [url=http://murga-linux.com/puppy/viewtopic.php?t=117546]Latest version[/url] | [url=https://cutt.ly/ke8sn5H]Contributed packages[/url] | [url=https://cutt.ly/se8scrb]ISO builder[/url]

musher0
Posts: 14629
Joined: Mon 05 Jan 2009, 00:54
Location: Gatineau (Qc), Canada

#12 Post by musher0 »

jamesbond wrote:
musher0 wrote:... the capacity to place the cursor
at the beginning of a "longer" line (not just a word or two) and do
something (hit a key or key combination, or click a mouse button, or do
a mouse gesture) and the whole line would be copied -- without having to
highlight it with a steady hand and be careful not to include part of
another line.
Triple-click in urxvt (emphasis on "copy the whole line").
Thanks, jamesbond. I didn't know that. I'll try it.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)

Post Reply