I assume you mean MouseDown3Pane?

You can usually match #{pane_current_command} to check for vim or
whatever, something like:

#{m/r:(vim|less|whatever),#{pane_current_command}}

At the moment the binding checks for:

#{||:#{mouse_any_flag},#{&&:#{pane_in_mode},#{?#{m/r:(copy|view)-mode,#{pane_mode}},0,1}}}"

Which is true if any application mouse flag is set, or if the pane is in
a mode and it is not copy or view mode. In that case it doesn't show the
menu (it does "select-pane -t=; send -M" instead).

So you need to either add your logic to this (if you want it to do
"select-pane -t=; send -M") or add another inner "if -F" to the false
command if you want it to do something different.

What is the "something else" you want to do? Pass it through to vim, or
run a different tmux command?




On Tue, Apr 21, 2020 at 07:49:25AM -0700, M Kelly wrote:
>    Hi,
>    Can someone help me the logic of this ?
>    if-shell -F -t =
>    
> "#{||:#{mouse_any_flag},#{&&:#{pane_in_mode},#{?#{m/r:(copy|view)-mode,#{pane_mode}},0,1}}}"A
>  
>    I like the MouseDown2Pane menu in root (and in copy-mode), but can I
>    disable it (and use that button for something else) when in another
>    probgram (like vim, etc.) ?
>    thx for all tmux,
>    -m
> 
>    --
>    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 [email protected].
>    To view this discussion on the web, visit
>    
> https://groups.google.com/d/msgid/tmux-users/e05f4bc2-3d10-477e-8b0d-fa445468420a%40googlegroups.com.

-- 
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 [email protected].
To view this discussion on the web, visit 
https://groups.google.com/d/msgid/tmux-users/20200421145943.pt5sfg5wxjojzwk7%40yelena.

Reply via email to