mirror of
https://github.com/tmux-plugins/tmux-resurrect.git
synced 2024-11-22 04:18:48 +00:00
Merge pull request #211 from malkomalko/mm-rename-window
actually rename windows when restoring
This commit is contained in:
commit
78d67e4dcb
@ -163,6 +163,7 @@ new_pane() {
|
|||||||
else
|
else
|
||||||
tmux split-window -t "${session_name}:${window_number}" -c "$dir"
|
tmux split-window -t "${session_name}:${window_number}" -c "$dir"
|
||||||
fi
|
fi
|
||||||
|
tmux rename-window -t "${session_name}:${window_number}" "$window_name"
|
||||||
# minimize window so more panes can fit
|
# minimize window so more panes can fit
|
||||||
tmux resize-pane -t "${session_name}:${window_number}" -U "999"
|
tmux resize-pane -t "${session_name}:${window_number}" -U "999"
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user