copy-mode goto x,y ?

17 views
Skip to first unread message

M Kelly

unread,
Feb 23, 2020, 1:20:15 PM2/23/20
to tmux-users
Hi,

Anyone know how to move cursor to a specific x,y in copy-mode via cmds ?

thx,
-m

topcat

unread,
Feb 23, 2020, 1:55:30 PM2/23/20
to tmux-users
Hi one very simple way would be to go to the origin (history-top) and then run cursor-down with prefix y and then cursor right with prefix x. nicm probably knows a better way :)

Nicholas Marriott

unread,
Feb 23, 2020, 2:12:15 PM2/23/20
to topcat, tmux-users
I think you can use send -X goto-line for the y but there is no equivalent for the x, the problem with cursor-right is it won't stop at the end of the line, not sure what you can do there.



--
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/32dbd2d5-2e29-47a6-9ee4-718ea60afbf6%40googlegroups.com.

M Kelly

unread,
Feb 23, 2020, 4:43:03 PM2/23/20
to tmux-users
Hi,

thx, ok, this might do it -

send -X goto-line y ; send -l 0 ; send -N x -l l

-m

Reply all
Reply to author
Forward
0 new messages