From ef3f4dd248b0888879ba30549e00db7fbc429ecf Mon Sep 17 00:00:00 2001 From: Leon Kowarschick Date: Fri, 12 Apr 2024 18:20:04 +0200 Subject: [PATCH] Stuff --- tmux/.config/tmux/tmux.conf | 1 + zsh/.config/zsh/.zshrc | 4 ++-- zsh/.config/zsh/fzf-tab.zsh | 23 +++++++++++------------ 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/tmux/.config/tmux/tmux.conf b/tmux/.config/tmux/tmux.conf index 234540a..e1b7e8d 100644 --- a/tmux/.config/tmux/tmux.conf +++ b/tmux/.config/tmux/tmux.conf @@ -1,4 +1,5 @@ set -g mouse on +set -sg escape-time 0 unbind-key -a set -g @plugin 'tmux-plugins/tpm' diff --git a/zsh/.config/zsh/.zshrc b/zsh/.config/zsh/.zshrc index 7d3f299..054b81e 100644 --- a/zsh/.config/zsh/.zshrc +++ b/zsh/.config/zsh/.zshrc @@ -47,7 +47,7 @@ compinit -C #autoload -Uz compinit #compinit -# zinit light "Aloxaf/fzf-tab" +zinit light "Aloxaf/fzf-tab" zinit wait lucid for \ "zsh-users/zsh-history-substring-search" \ @@ -63,7 +63,7 @@ zinit wait lucid for \ clear-keybinds # load more stuff -# source "$ZDOTDIR/fzf-tab.zsh" +source "$ZDOTDIR/fzf-tab.zsh" source "$ZDOTDIR/keybinds.zsh" unalias zi diff --git a/zsh/.config/zsh/fzf-tab.zsh b/zsh/.config/zsh/fzf-tab.zsh index abd3917..439b3a1 100644 --- a/zsh/.config/zsh/fzf-tab.zsh +++ b/zsh/.config/zsh/fzf-tab.zsh @@ -2,19 +2,18 @@ FZF_TAB_COMMAND=( fzf - --ansi - --expect='$continuous_trigger' # For continuous completion - '--color=hl:$(( $#headers == 0 ? 108 : 255 ))' - --nth=2,3 --delimiter='\x00' # Don't search prefix - --layout=reverse --height="''${FZF_TMUX_HEIGHT:=50%}" - --tiebreak=begin -m --bind=tab:down,btab:up,change:top,ctrl-space:toggle --cycle - '--query=$query' # $query will be expanded to query string at runtime. - '--header-lines=$#headers' # $#headers will be expanded to lines of headers at runtime + #--ansi + #--expect='$continuous_trigger' # For continuous completion + #'--color=hl:$(( $#headers == 0 ? 108 : 255 ))' + #--nth=2,3 --delimiter='\x00' # Don't search prefix + #--layout=reverse --height="''${FZF_TMUX_HEIGHT:=50%}" + #--tiebreak=begin -m --bind=tab:down,btab:up,change:top,ctrl-space:toggle --cycle + #'--query=$query' # $query will be expanded to query string at runtime. + #'--header-lines=$#headers' # $#headers will be expanded to lines of headers at runtime ) -zstyle ':fzf-tab:*' fzf-command $FZF_TAB_COMMAND +zstyle ':fzf-tab:*' fzf-command "fzf" +#zstyle ':fzf-tab:*' fzf-command $FZF_TAB_COMMAND zstyle ':completion:complete:*:options' sort false zstyle ':completion:*' list-colors ${(s.:.)LS_COLORS} zstyle ':fzf-tab:complete:_zlua:*' query-string input -zstyle ':fzf-tab:complete:*:*' fzf-preview '/home/leon/scripts/preview.sh $realpath' - - +zstyle ':fzf-tab:complete:*:*' fzf-preview '$HOME/scripts/preview.sh $realpath'