diff options
author | Toby Vincent <tobyv13@gmail.com> | 2023-05-08 17:27:06 -0500 |
---|---|---|
committer | Toby Vincent <tobyv13@gmail.com> | 2023-05-08 17:27:06 -0500 |
commit | 789c7c1eb7655fdb33868fecf9ea56477a14c8b6 (patch) | |
tree | 36bab10ba3f37de7d579f76d1ecb6245e62ec869 /tmux/.local/bin/tmux-sessionizer | |
parent | 834b3797c631a5114ca10a64a5c965ff08649fb5 (diff) |
fix(tmux): update flags for projectr and sshr
Diffstat (limited to 'tmux/.local/bin/tmux-sessionizer')
-rwxr-xr-x | tmux/.local/bin/tmux-sessionizer | 11 |
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 |