From ae344c8b27ecf5b63db2161c22b52355d97c1258 Mon Sep 17 00:00:00 2001 From: David Runge Date: Wed, 12 Jul 2023 11:29:07 +0200 Subject: zsh: Add skim integration for fuzzy finding --- .config/zsh/.zshrc | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/.config/zsh/.zshrc b/.config/zsh/.zshrc index b9fcc75..c1c1146 100644 --- a/.config/zsh/.zshrc +++ b/.config/zsh/.zshrc @@ -125,7 +125,7 @@ bindkey -M vicmd "v" edit-command-line # Undo/Redo bindkey -M vicmd "u" undo -bindkey -M vicmd "$key_info[Control]R" redo +bindkey -M vicmd "U" redo if (( $+widgets[history-incremental-pattern-search-backward] )); then bindkey -M vicmd "?" history-incremental-pattern-search-backward @@ -437,6 +437,14 @@ for p in ${history_substring}; do fi done +# skim +skim=("/usr/share/skim/key-bindings.zsh" "/usr/share/skim/completion.zsh") +for p in ${skim}; do + if [ -f "$p" ]; then + source "$p" + fi +done + # includes for config_file ($HOME/.config/zsh/includes/*.zsh) source $config_file -- cgit v1.2.3-70-g09d2