# HG changeset patch # User zegervdv # Date 1666808452 -7200 # Node ID 0a59c00d64d9f037ba461d4d7eeb9ad27dbd4add # Parent 594116f4000efe591323dc8ba911e9444df6c9da feat: add fzf-tab plugin diff -r 594116f4000e -r 0a59c00d64d9 .chezmoiexternal.toml --- a/.chezmoiexternal.toml Wed Oct 26 20:09:53 2022 +0200 +++ b/.chezmoiexternal.toml Wed Oct 26 20:20:52 2022 +0200 @@ -53,6 +53,12 @@ type = "file" url = "https://github.com/romkatv/zsh-defer/raw/3770c54fb4b25a1256dfaabbde37c4399c1f9298/zsh-defer.plugin.zsh" +[".zsh/fzf-tab"] + type = "archive" + url = "https://github.com/aloxaf/fzf-tab/archive/14f66e4d3d0b366552c0412eb08ca9e0f7c797bd.tar.gz" + exact = true + stripComponents = 1 + [".zsh/completions/_fd"] type = "file" url = "https://github.com/sharkdp/fd/raw/v8.3.2/contrib/completion/_fd" diff -r 594116f4000e -r 0a59c00d64d9 dot_zshrc --- a/dot_zshrc Wed Oct 26 20:09:53 2022 +0200 +++ b/dot_zshrc Wed Oct 26 20:20:52 2022 +0200 @@ -249,6 +249,13 @@ export GPG_TTY=$(tty) +autoload -U compinit + +for dump in ~/.zcompdump(N.mh+24); do + compinit +done +compinit -C + [ -f ~/.zshrc.local ] && source ~/.zshrc.local source $HOME/.asdf/asdf.sh @@ -262,6 +269,10 @@ export SUDO_EDITOR=$(which nvim) eval "$(direnv hook zsh)" +zstyle ':completion:*:descriptions' format '[%d]' +zstyle ':fzf-tab:*' fzf-command ftb-tmux-popup +zsh-defer source ~/.zsh/fzf-tab/fzf-tab.plugin.zsh + zsh-defer source ~/.zsh/zsh-history-substring-search.zsh export HISTORY_SUBSTRING_SEARCH_HIGHLIGHT_FOUND='bg=cyan,fg=white' @@ -325,13 +336,6 @@ ZSH_AUTOSUGGEST_STRATEGY=histdb_top_here -autoload -U compinit - -for dump in ~/.zcompdump(N.mh+24); do - compinit -done -compinit -C - if [ ${TMUX} ]; then unset zle_bracketed_paste fi