From 789c7c1eb7655fdb33868fecf9ea56477a14c8b6 Mon Sep 17 00:00:00 2001 From: Toby Vincent Date: Mon, 8 May 2023 17:27:06 -0500 Subject: fix(tmux): update flags for projectr and sshr --- tmux/.local/bin/tmux-sessionizer | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) (limited to 'tmux/.local/bin/tmux-sessionizer') 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 -- cgit v1.2.3-70-g09d2