Allow menu items to be disabled by putting a - at the start of their

name, rather than just including #[dim] which still allowed them to be
chosen.
This commit is contained in:
nicm
2019-05-28 09:50:54 +00:00
parent 799a154b91
commit 12255411f2
4 changed files with 31 additions and 12 deletions

View File

@ -299,7 +299,7 @@ key_bindings_init(void)
"bind -n MouseDown3Status display-menu -t= -xW -yS -T \"#[align=centre]#{window_index}:#{window_name}\""
" 'Swap Left' 'l' {swap-window -t:-1}"
" 'Swap Right' 'r' {swap-window -t:+1}"
" '#{?pane_marked_set,,#[dim]}Swap Marked' 's' {swap-window}"
" '#{?pane_marked_set,,-}Swap Marked' 's' {swap-window}"
" ''"
" 'Kill' 'X' {kill-window}"
" 'Respawn' 'R' {respawn-window -k}"
@ -319,7 +319,7 @@ key_bindings_init(void)
" ''"
" 'Swap Up' 'u' {swap-pane -U}"
" 'Swap Down' 'd' {swap-pane -D}"
" '#{?pane_marked_set,,#[dim]}Swap Marked' 's' {swap-pane}"
" '#{?pane_marked_set,,-}Swap Marked' 's' {swap-pane}"
" ''"
" 'Kill' 'X' {kill-pane}"
" 'Respawn' 'R' {respawn-pane -k}"