Mercurial > dotfiles
changeset 709:0a59c00d64d9
feat: add fzf-tab plugin
author | zegervdv <zegervdv@me.com> |
---|---|
date | Wed, 26 Oct 2022 20:20:52 +0200 |
parents | 594116f4000e |
children | 8dcfa2682a75 |
files | .chezmoiexternal.toml dot_zshrc |
diffstat | 2 files changed, 17 insertions(+), 7 deletions(-) [+] |
line wrap: on
line diff
--- 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"
--- 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