From 9e48ba0a77339923d9c8b86e05571a37212c410b Mon Sep 17 00:00:00 2001 From: Michael Housh Date: Tue, 3 Dec 2024 08:21:00 -0500 Subject: [PATCH] feat: Updates tmux-sessionator how it spawns the editor window so it doesn't kill the pane on exit. --- scripts/scripts/tmux-sessionator | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/scripts/scripts/tmux-sessionator b/scripts/scripts/tmux-sessionator index e6905ac..2949278 100755 --- a/scripts/scripts/tmux-sessionator +++ b/scripts/scripts/tmux-sessionator @@ -78,7 +78,8 @@ fi # Create a session if it doesn't exist. if ! tmux has-session -t "$selected_name" 2> /dev/null; then - tmux new-session -ds "$selected_name" -c "$selected" -n "editor" "${EDITOR} ." + tmux new-session -ds "$selected_name" -c "$selected" -n "editor" + tmux send-keys -t editor 'n' Enter tmux new-window -d -n "terminal" -c "$selected" fi