Merge pull request #211 from malkomalko/mm-rename-window

actually rename windows when restoring
This commit is contained in:
Bruno Sutic 2020-07-27 09:18:18 +02:00 committed by GitHub
commit 78d67e4dcb
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -163,6 +163,7 @@ new_pane() {
else
tmux split-window -t "${session_name}:${window_number}" -c "$dir"
fi
tmux rename-window -t "${session_name}:${window_number}" "$window_name"
# minimize window so more panes can fit
tmux resize-pane -t "${session_name}:${window_number}" -U "999"
}