Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
qterminal shift+insert or middle-click to paste
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Installing Gentoo
View previous topic :: View next topic  
Author Message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Jan 22, 2016 12:23 pm    Post subject: qterminal shift+insert or middle-click to paste Reply with quote

env: tmux within qterminal

shift+insert to paste text doesn't work. neither does middle-click to paste.

terminal copy seems to work from qterminal. i can middle-click paste in other apps like mousepad, qupzilla, etc.


Last edited by josephg on Fri Jan 22, 2016 2:16 pm; edited 2 times in total
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Jan 22, 2016 2:05 pm    Post subject: Reply with quote

env: qterminal (not using tmux)

i can select text with mouse. i can middle-click to paste.

if i shift+insert, i get "2~"
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Fri Jan 22, 2016 2:18 pm    Post subject: Reply with quote

i just emerged rxvt-unicode. terminal copy/paste works as expected. but now i can't shift+right-click to get a menu :(

so this seems like a qterminal problem here. i don't have this issue with qterminal in debian.
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 23, 2016 8:48 am    Post subject: Reply with quote

re qterminal, i had emerged with USE="qt5" initially. i wondered whether that could be a problem. so i just emerged with USE="qt4", and i still have the same issues as above.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 23, 2016 9:17 am    Post subject: Reply with quote

josephg wrote:
i just emerged rxvt-unicode. terminal copy/paste works as expected. but now i can't shift+right-click to get a menu :(

josephg ... rxvt-unicode doesn't have a menu :)

best ... khay
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 23, 2016 6:50 pm    Post subject: Reply with quote

i know ;) that's why i wanted tmux in qterminal in lxqt. i use the menu only to copy/paste xclipboard.

Last edited by josephg on Sun Sep 18, 2016 9:42 am; edited 1 time in total
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sat Jan 23, 2016 8:48 pm    Post subject: Reply with quote

josephg wrote:
i know that's why i wanted tmux in qterminal in lxqt. i use the menu only to copy/paste xclipboard.

josephg ... break the habit ;) ... man tmux | less -p '^WINDOWS AND PANES'

You might also find the following useful:

~/.tmux.conf:
# "vim" like keybindings for copy mode
bind-key -t vi-copy 'v' begin-selection
bind-key -t vi-copy 'y' copy-selection
bind -t vi-copy escape cancel
# note that 'p' (previous/last-window) is now re-defined ('C-a C-a') above.
unbind p
bind p paste-buffer

# X11 clipboard into tmux paste buffer .. I can access via vim's "*p
# so I've little need of this ... but you never know.
bind C-p run "xclip -o | tmux load-buffer -"

# tmux copy buffer into X11 clipboard.
# Note: that's *two* yanks 'y prefix-y' .. the fist is 'copy-selection'
# (see above) the second is copy to clipboard.
bind y run "tmux save-buffer - | xclip -i -selection clipboard"

HTH & best ... khay
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Sat Jan 23, 2016 9:57 pm    Post subject: Reply with quote

khay, that is specifically the primary selection only, which is conventionally used for copying/pasting in terminals.

x server maintains three selections - (i) primary (XA_PRIMARY), (ii) secondary (XA_SECONDARY), (iii) clipboard (XA_CLIPBOARD).

clipboard is typically used in copy/paste operations in x applications.

i should have perhaps clarified. i use the menu (only) to paste clipboard to terminal. within terminals, i use primary selection.
tmux built-in copy/paste operations are on the primary selection, not the clipboard.
Back to top
View user's profile Send private message
khayyam
Watchman
Watchman


Joined: 07 Jun 2012
Posts: 6228
Location: Room 101

PostPosted: Sun Jan 24, 2016 7:01 pm    Post subject: Reply with quote

josephg wrote:
khay, that is specifically the primary selection only, which is conventionally used for copying/pasting in terminals.

josephg ... see the '-selection' parameter in 'man xclip' ... the above tmux.conf can be modified to reflect whatever selection you wish.

best ... khay
Back to top
View user's profile Send private message
josephg
l33t
l33t


Joined: 10 Jan 2016
Posts: 783
Location: usually offline

PostPosted: Tue Jan 26, 2016 10:54 pm    Post subject: Reply with quote

but then i won't be able to use the other one!!?

ah i see, you map different keys for each selection. thanks khay!
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Installing Gentoo All times are GMT
Page 1 of 1

 
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