You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I try to create clickable buttons on pane border, but it seems to me, that mouse_status_range always empty on MouseDown1Border
set-window-option -g pane-border-format "#{pane_id}:#{pane_index} #{pane_pid} #{pane_tty} #{pane_current_command} #[align=right]#[range=user|minimize] _ #[norange]#[range=user|maximize] O #[norange]#[range=user|close] X #[norange]"# Experiments with this binding:
bind-key -Troot MouseDown1Border { display-message "|#{mouse_status_range}|" }
# Desired binding is similar to:# bind-key -T root MouseDown1Border \# if -F '#{==:#{mouse_status_range},maximize}' {# resize-pane -Z# } {# if -F '#{==:#{mouse_status_range},close}' {# kill-pane# } {# display -d0 '#{mouse_status_line} #{mouse_status_range}'# }# }
But wherever i click on pane's border, message is just ||.
Am i missing something important?
Also, click handler doesn't work on first pane in window, only on border click on second pane and further, so is there any options to handle click on the only one pane border?
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
I try to create clickable buttons on pane border, but it seems to me, that
mouse_status_range
always empty onMouseDown1Border
But wherever i click on pane's border, message is just
||
.Am i missing something important?
Also, click handler doesn't work on first pane in window, only on border click on second pane and further, so is there any options to handle click on the only one pane border?
Beta Was this translation helpful? Give feedback.
All reactions