GTK patch for keyboard shortcut to paste primary selection
GTK patch for keyboard shortcut to paste primary selection
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.
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
Re: GTK patch for keyboard shortcut to paste primary selection
Must have been before my timedisciple wrote:Traditionally X applications pasted the primary selection using Shift-Insert.
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.
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
- MochiMoppel
- Posts: 2084
- Joined: Wed 26 Jan 2011, 09:06
- Location: Japan
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
Re: GTK patch for keyboard shortcut to paste primary selection
Hello?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.
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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.
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
Classic Puppy quotes
ROOT FOREVER
GTK2 FOREVER
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?
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]
Hello, disciple.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.
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)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
Triple-click in urxvt (emphasis on "copy the whole line").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.
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]
Thanks, jamesbond. I didn't know that. I'll try it.jamesbond wrote:Triple-click in urxvt (emphasis on "copy the whole line").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.
musher0
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)
~~~~~~~~~~
"You want it darker? We kill the flame." (L. Cohen)