Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Mon 31 Aug 2015, 18:09
All times are UTC - 4
 Forum index » House Training » Users ( For the regulars )
GTK patch for keyboard shortcut to paste primary selection
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [12 Posts]  
Author Message
disciple

Joined: 20 May 2006
Posts: 6558
Location: Auckland, New Zealand

PostPosted: Mon 06 Aug 2012, 03:13    Post subject:  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.

_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 759
Location: Japan

PostPosted: Tue 19 Aug 2014, 00:09    Post subject: Re: GTK patch for keyboard shortcut to paste primary selection  

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

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.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6558
Location: Auckland, New Zealand

PostPosted: Sat 30 Aug 2014, 11:54    Post subject:  

What do you mean you don't see it implemented? You don't see a patched build of GTK?
_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
MochiMoppel


Joined: 26 Jan 2011
Posts: 759
Location: Japan

PostPosted: Sun 31 Aug 2014, 21:08    Post subject:  

I was assuming that such patches finally make it into the official build. I guess I'm wrong Crying or Very sad
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6558
Location: Auckland, New Zealand

PostPosted: Sun 31 Aug 2014, 23:01    Post subject:  

Unfortunately these days GTK is more of a 'gnome' toolkit, and the developers of gnome have rather strange ideas about usability Sad
_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5783
Location: Gatineau (Qc), Canada

PostPosted: Thu 02 Apr 2015, 21:22    Post subject: Re: GTK patch for keyboard shortcut to paste primary selection  

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)

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
disciple

Joined: 20 May 2006
Posts: 6558
Location: Auckland, New Zealand

PostPosted: Thu 02 Apr 2015, 23:15    Post subject:  

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.
_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
disciple

Joined: 20 May 2006
Posts: 6558
Location: Auckland, New Zealand

PostPosted: Thu 02 Apr 2015, 23:20    Post subject:  

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.

_________________
Classic Puppy quotes
-
root: n. the superuser or administrator account that has complete control over everything in the machine. Running as root is a taonga of Puppy Linux users.
Back to top
View user's profile Send private message 
jamesbond

Joined: 26 Feb 2007
Posts: 2479
Location: The Blue Marble

PostPosted: Sun 05 Apr 2015, 00:28    Post subject:  

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? Confused

_________________
Fatdog64, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5783
Location: Gatineau (Qc), Canada

PostPosted: Sun 05 Apr 2015, 17:10    Post subject:  

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. Sad jwm makes me itchy...
I may try it in pekwm, though. Smile

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

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
jamesbond

Joined: 26 Feb 2007
Posts: 2479
Location: The Blue Marble

PostPosted: Tue 07 Apr 2015, 12:52    Post subject:  

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, Slacko and Puppeee user. Puppy user since 2.13.
Contributed Fatdog64 packages thread.
Back to top
View user's profile Send private message 
musher0


Joined: 04 Jan 2009
Posts: 5783
Location: Gatineau (Qc), Canada

PostPosted: Tue 07 Apr 2015, 14:53    Post subject:  

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.

_________________
"Logical entities must not be multiplied needlessly." / "Il ne faut pas multiplier les êtres logiques inutilement." (Ockham)
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [12 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » Users ( For the regulars )
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.1309s ][ Queries: 11 (0.0149s) ][ GZIP on ]