fix zsh fzf

This commit is contained in:
thek4n 2024-11-18 22:30:16 +03:00
parent e4aa9aee25
commit 7c52569f97
5 changed files with 12 additions and 12 deletions

View File

@ -189,14 +189,6 @@ bind -T copy-mode-vi WheelUpPane select-pane \; send-keys -X -N 2 scroll-up
bind -T copy-mode-vi WheelDownPane select-pane \; send-keys -X -N 2 scroll-down
FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS}
--border=rounded
--border-label-pos=bottom
--preview-window=70%
--no-multi
"
# Session managment
bind a display-popup -EE -w 80% -h 80% -B '~/.local/bin/tmux_attach_session.sh'
bind s display-popup -EE -w 80% -h 80% -B '~/.local/bin/tmux_start_session.sh'

View File

@ -5,8 +5,11 @@ readonly tmux_list_sessions_script="${HOME}/.local/bin/tmux_list_sessions.sh"
export FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS}
--color='border:blue,label:blue'
--no-multi
--border=rounded
--border-label-pos=bottom
--border-label=' Attach session '
--color='border:blue,label:blue'
--preview-window=follow
--preview='tmux capture-pane -p -e -t {1}'
--pointer='> '

View File

@ -5,9 +5,11 @@ readonly tmux_list_sessions_script="${HOME}/.local/bin/tmux_list_sessions.sh"
export FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS}
--color='border:red,label:red'
--border-label=' Kill sessions '
--multi
--border=rounded
--border-label-pos=bottom
--border-label=' Kill sessions '
--color='border:red,label:red'
--preview-window=follow
--preview='tmux capture-pane -p -e -t {1}'
--bind

View File

@ -6,8 +6,10 @@ readonly EDITOR="nvim"
export FZF_DEFAULT_OPTS="\
${FZF_DEFAULT_OPTS}
--color='border:green,label:green'
--border=rounded
--border-label-pos=bottom
--border-label=' Start session '
--color='border:green,label:green'
--preview='highlight -O ansi '${TMUX_SESSIONS}/{1}''
--pointer='> '
--marker=''

View File

@ -26,6 +26,7 @@ export FZF_DEFAULT_OPTS="\
--color='gutter:-1,pointer:red,preview-border:grey,separator:grey'
--pointer='> '
--marker='* '
--preview-window=70%
--bind
ctrl-/:toggle-preview,\
ctrl-a:toggle-all,\