Add fuzzy finder

Add fzf as submodule.
Source it keybindings and completion files.
Adjust dotbot install config to pull fzf binary.
Add symlink to its binary.
This commit is contained in:
2020-08-04 02:54:05 +02:00
parent 074ea3382a
commit f5259b5505
6 changed files with 12 additions and 0 deletions

View File

@@ -131,6 +131,7 @@ comp-source "$ZSH_CONF/transfer.zsh"
comp-source "$ZSH_CONF/zsh-autosuggestions/zsh-autosuggestions.zsh"
comp-source "$ZSH_CONF/completion.zsh"
# comp-source "$ZSH_CONF/zsh-async/async.zsh"
comp-source "$ZSH_CONF/fzf/shell/completion.zsh"
# async_init
### syntax-highlight > history-substring > keys
# syntax highlighting

View File

@@ -88,3 +88,8 @@ zle -N ls-on-enter
bindkey "^M" ls-on-enter
ZSH_AUTOSUGGEST_CLEAR_WIDGETS+=(ls-on-enter)
# Fuzzy finder bindings:
# ^T fzf-file-widget
# \ec (Alt-C) fzf-cd-widget
# ^R fzf-history-widget
comp-source "$ZSH_CONF/fzf/shell/key-bindings.zsh"

3
.gitmodules vendored
View File

@@ -40,3 +40,6 @@
[submodule ".config/tmux/plugins/tmux-sensible"]
path = .config/tmux/plugins/tmux-sensible
url = https://github.com/tmux-plugins/tmux-sensible
[submodule ".config/zsh/plugins/fzf"]
path = .config/zsh/plugins/fzf
url = git@github.com:junegunn/fzf

1
.local/bin/fzf Symbolic link
View File

@@ -0,0 +1 @@
../../.config/zsh/plugins/fzf/bin/fzf

View File

@@ -1,6 +1,7 @@
- shell:
- git submodule update --init --recursive --jobs 8
- /bin/sh -c 'tmpd="$(mktemp -d)"; for file in .config/*; do [ ! -e "$HOME/$file" ] || mv "$HOME/$file" "$tmpd"; done; rmdir "$tmpd" 2>/dev/null || { tar czvf "existing-$(date +"%s").tar.gz" "$tmpd" && rm -rf "$tmpd"; }'
- .config/zsh/plugins/fzf/install --bin
- link:
~/.Xresources:
.Xresources