rename fingers window to [fingers:multi] when entering multi mode

This commit is contained in:
Jorge Morante 2020-01-05 12:18:27 +01:00
parent 1a5dc4fc10
commit 6452069a3c
1 changed files with 8 additions and 0 deletions

View File

@ -19,6 +19,10 @@ pane_input_temp=$5
original_window_name=$6
input_method=$7
function rename_fingers_window() {
tmux rename-window -t "$fingers_window_id" "$1"
}
function is_pane_zoomed() {
local pane_id=$1
@ -237,6 +241,10 @@ do
show_hints "$fingers_pane_id" "${state[compact_mode]}" "${state[multi_mode]}" "${selected_hints[@]}"
fi
if [[ $(did_state_change "multi_mode" "0 => 1") == 1 ]]; then
rename_fingers_window "[fingers:multi]"
fi
# Exiting multi mode makes an early exit
if [[ $(did_state_change "multi_mode" "1 => 0") == 1 ]]; then
state[final_result]=$(array_join " " "${selected_matches[@]}")