From cf21e194ba4e6f11ae74e68258a176992c8640b4 Mon Sep 17 00:00:00 2001 From: Gregory Pakosz Date: Sat, 3 Feb 2024 14:09:55 +0100 Subject: [PATCH] wip --- .tmux.conf | 25 ++++++++++++++++++------- .tmux.conf.local | 6 ++++++ 2 files changed, 24 insertions(+), 7 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 7818061..fdc420d 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -889,14 +889,14 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # perl -p -i -e " # s/\bnew-window\b(?!\s+(?:-|}))/{$&}/g if /\bdisplay-menu\b/ # ; -# s/\bnew-window\b/new-window -c '#{pane_current_path}'\1/g +# s/\bnew-window\b/new-window -c '#{pane_current_path}'/g # ; # s/\brun-shell\b\s+'cut\s+-c3-\s+(.+?)\s+\|\s+sh\s+-s\s+_new_window(_ssh)?\s+#\{pane_pid\}\s+#\{b:pane_tty\}([^}\n']*)'/run-shell 'cut -c3- \1 | sh -s _new_window\2 #\{pane_pid\} #\{b:pane_tty\} -c \\\\\"#\{pane_current_path\}\\\\\"\3'/g if /\bdisplay-menu\b/ # ; # s/\brun-shell\b\s+'cut\s+-c3-\s+(.+?)\s+\|\s+sh\s+-s\s+_new_window(_ssh)?\s+#\{pane_pid\}\s+#\{b:pane_tty\}([^}\n']*)'/run-shell 'cut -c3- \1 | sh -s _new_window\2 #\{pane_pid\} #\{b:pane_tty\} -c \"#\{pane_current_path\}\"\3'/g" \ # "$cfg" # fi - +# # tmux_conf_new_pane_retain_current_path=${tmux_conf_new_pane_retain_current_path:-true} # if ! _is_disabled "$tmux_conf_new_pane_retain_current_path"; then # perl -p -i -e " @@ -931,13 +931,24 @@ run 'cut -c3- "$TMUX_CONF" | sh -s _apply_configuration' # # tmux_conf_new_session_prompt=${tmux_conf_new_session_prompt:-false} # if ! _is_disabled "$tmux_conf_new_session_prompt" && _is_true "$tmux_conf_new_session_prompt"; then -# perl -p -i \ -# -e "s/(?