append-selection ques

10 views
Skip to first unread message

M Kelly

unread,
Jan 31, 2021, 11:01:15 AM1/31/21
to tmux-users
Hi,

I am trying to configure the 3rd mouse button to extend my copy-mode selection (similar to how X does it).
I have tried using send -X append-selection but it does not seem to work for me.
Q: Is append-selection supposed to be a way to continue / extend the existing selection ?

thx,
-m

Nicholas Marriott

unread,
Jan 31, 2021, 11:03:47 AM1/31/21
to M Kelly, tmux-users
append-selection is like copy-selection but appends to the most recently copied buffer. It doesn't move the selection on screen 

I'm not sure how you would do that, you would need to move the cursor.

--
You received this message because you are subscribed to the Google Groups "tmux-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to tmux-users+...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/tmux-users/291e2fb2-da2f-4bdf-b82c-ac997d01de13n%40googlegroups.com.

M Kelly

unread,
Jan 31, 2021, 1:39:03 PM1/31/21
to tmux-users
Hi,

ok, thanks.
Yea, I was thinking of a 'continue-selection' - just like 'begin-selection' but uses the original anchor point of existing selection instead of starting a new one.

take care,
-m

Nicholas Marriott

unread,
Feb 2, 2021, 4:31:31 AM2/2/21
to M Kelly, tmux-users
Hmm I thought there was a command to extend the selection but I can't see it now so maybe not.

It is not even easy to script because you really need some information that tmux doesn't provide (a way to move the cursor to a position, or to calculate the position to use goto-line/cursor-right). It would be easier just to add it in C.





Reply all
Reply to author
Forward
0 new messages