menu location ?

29 views
Skip to first unread message

M Kelly

unread,
Apr 25, 2020, 8:43:57 AM4/25/20
to tmux-users
Hi,

Does anyone know if this is a valid menu location -

if-shell -F "#{selection_present}" "display-menu -t= -x#{copy_cursor_x} -y#{copy_cursor_y} ....

It always seems to pop at 0,0 or whatever is uppermost left is.

thx,
-m

M Kelly

unread,
Apr 25, 2020, 11:28:42 AM4/25/20
to tmux-users
Hi,

Is is because x,y here are not columns,rows ?

-m

M Kelly

unread,
Apr 25, 2020, 11:35:58 AM4/25/20
to tmux-users
Hi,

Perhaps this is better -

if-shell -F "#{selection_present}" "display-menu -t= -x#{selection_end_x} -y#{selection_end_y} ....

But still think this is wrong or the x, y are not what I am thinking.

thx,
-m

Nicholas Marriott

unread,
Apr 25, 2020, 12:45:45 PM4/25/20
to M Kelly, tmux-users
X and Y are bottom left of the menu. Are you sure they are being substituted? You're in copy mode?

--
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/b245d71a-2094-4893-b5b0-99a8512862a3%40googlegroups.com.

M Kelly

unread,
Apr 26, 2020, 10:51:27 AM4/26/20
to tmux-users
Hi,

I am in copy-mode and there is a selection and the menu pops up, its just always at the uppermost left, not near the selection.
If I change just those to -xM -yM it works where the mouse is correctly.
But it seems like I have the right syntax.  I'll dig into it and see what I'm doing wrong.

thx,
-m

Nicholas Marriott

unread,
Apr 26, 2020, 10:54:55 AM4/26/20
to M Kelly, tmux-users
I am not entirely certain they will be replaced. If you run with -vv you can look at the server log and there will be a lot of logging showing how it expands the format if you find the bit after you trigger display-menu. I guess they are being replaced since otherwise the command would be an error but it sounds like it is ending up invalid.



--
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.
Reply all
Reply to author
Forward
0 new messages