added support for connecting to the same host when creating a new window from a pane running an SSH session, resolves #632

see tmux_conf_new_window_reconnect_ssh

also fixed toggling tmux_conf_xxx_reconnect_ssh back and forth
This commit is contained in:
Gregory Pakosz
2023-04-01 16:54:17 +02:00
parent 79430acd85
commit 55d47e9c15
2 changed files with 71 additions and 19 deletions
+15 -6
View File
@@ -5,6 +5,15 @@
# Copyright 2012— Gregory Pakosz (@gpakosz).
# -- session creation ----------------------------------------------------------
# prompt for session name when creating a new session, possible values are:
# - true
# - false (default)
# - disabled (do not modify new-session bindings)
tmux_conf_new_session_prompt=false
# -- windows & pane creation ---------------------------------------------------
# new window retains current path, possible values are:
@@ -13,6 +22,12 @@
# - disabled (do not modify new-window bindings)
tmux_conf_new_window_retain_current_path=false
# new window tries to reconnect ssh sessions, possible values are:
# - true
# - false (default)
# - disabled (do not modify new-window bindings)
tmux_conf_new_window_reconnect_ssh=false
# new pane retains current path, possible values are:
# - true (default)
# - false
@@ -25,12 +40,6 @@ tmux_conf_new_pane_retain_current_path=true
# - disabled (do not modify split-window bindings)
tmux_conf_new_pane_reconnect_ssh=false
# prompt for session name when creating a new session, possible values are:
# - true
# - false (default)
# - disabled (do not modify new-session bindings)
tmux_conf_new_session_prompt=false
# -- display -------------------------------------------------------------------