diff options
Diffstat (limited to 'tmux/.local/bin/tmux-sessionizer')
-rwxr-xr-x | tmux/.local/bin/tmux-sessionizer | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/tmux/.local/bin/tmux-sessionizer b/tmux/.local/bin/tmux-sessionizer index 9238b43..7f0a4af 100755 --- a/tmux/.local/bin/tmux-sessionizer +++ b/tmux/.local/bin/tmux-sessionizer @@ -4,14 +4,9 @@ if [ "$#" -eq 0 ]; then PREVIEW_CMD='sel={}; less ${sel:-{q}} 2>/dev/null' - lines=$(tmux display -p "#{pane_height}") - columns=$(tmux display -p "#{pane_width}") - WIDTH=$([ "$columns" -gt "120" ] && printf %s "120" || printf %s "90%") - HEIGHT=$([ "$lines" -gt "40" ] && printf %s "40" || printf %s "90%") - # shellcheck disable=2046 set -- $(projectr ~/dkr ~/pkg ~/src ~/.dotfiles --git --max-depth=3 | sed "\|^$(tmux display -p '#{session_path}')\$|d" | - fzf-tmux -p "$WIDTH,$HEIGHT" -- --tac --multi --print-query -d/ --with-nth -1 \ + 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 fi |