From 6242e4974f3120e069c0e3983b2a70ec177c7454 Mon Sep 17 00:00:00 2001 From: Alan Oliveira Date: Sat, 21 May 2022 18:39:43 +0900 Subject: [PATCH] pass #{pane_current_path} to _fpp() and then to split-window --- .tmux.conf | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.tmux.conf b/.tmux.conf index 3b65e46..3046fb3 100644 --- a/.tmux.conf +++ b/.tmux.conf @@ -106,7 +106,7 @@ bind U run "cut -c3- ~/.tmux.conf | sh -s _urlview #{pane_id}" # -- facebook pathpicker ------------------------------------------------------- -bind F run "cut -c3- ~/.tmux.conf | sh -s _fpp #{pane_id}" +bind F run "cut -c3- ~/.tmux.conf | sh -s _fpp #{pane_id} #{pane_current_path}" # -- list choice (tmux < 2.4) -------------------------------------------------- @@ -1485,7 +1485,7 @@ run 'cut -c3- ~/.tmux.conf | sh -s _apply_configuration' # # _fpp() { # tmux capture-pane -J -S - -E - -b "fpp-$1" -t "$1" -# tmux split-window "tmux show-buffer -b fpp-$1 | fpp || true; tmux delete-buffer -b fpp-$1" +# tmux split-window -c $2 "tmux show-buffer -b fpp-$1 | fpp || true; tmux delete-buffer -b fpp-$1" # } # # "$@"