summaryrefslogtreecommitdiffstatshomepage
path: root/tmux/.local/bin/tmux-sessionizer
diff options
context:
space:
mode:
Diffstat (limited to 'tmux/.local/bin/tmux-sessionizer')
-rwxr-xr-xtmux/.local/bin/tmux-sessionizer11
1 files changed, 7 insertions, 4 deletions
diff --git a/tmux/.local/bin/tmux-sessionizer b/tmux/.local/bin/tmux-sessionizer
index 9b61719..110ef63 100755
--- a/tmux/.local/bin/tmux-sessionizer
+++ b/tmux/.local/bin/tmux-sessionizer
@@ -5,10 +5,13 @@ if [ "$#" -eq 0 ]; then
PREVIEW_CMD='sel={}; less ${sel:-{q}} 2>/dev/null'
# shellcheck disable=2046
- set -- $(projectr -mgt ~/dkr ~/pkg ~/src -P ~/.dotfiles | sed "\|^$(tmux display -p '#{session_path}')\$|d" |
- fzf-tmux "$FZF_TMUX_OPTS" -- --tac --multi --print-query -d/ --with-nth -1 \
- --preview-window='right,75%,<80(up,75%,border-bottom)' --preview="$PREVIEW_CMD" |
- tr -s '\n' ' ') && [ $# -gt 1 ] && shift
+ set -- $(
+ projectr -mgt ~/dkr ~/pkg ~/src -P ~/.dotfiles --exclude-cwd |
+ fzf-tmux "$FZF_TMUX_OPTS" -- --tac --multi --print-query -d/ --with-nth -1 \
+ --bind 'focus:transform-header(echo {})' \
+ --preview-window='right,75%,<80(up,75%,border-bottom)' --preview="$PREVIEW_CMD" |
+ tr -s '\n' ' '
+ ) && [ $# -gt 1 ] && shift
fi
while [ $# -gt 0 ]; do