aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Runge <dave@sleepmap.de>2023-07-12 11:29:07 +0200
committerDavid Runge <dave@sleepmap.de>2023-07-12 11:29:07 +0200
commitae344c8b27ecf5b63db2161c22b52355d97c1258 (patch)
tree129a8deaae6c5f01da7f487a5ce9ac7a12c2ff55
parent9c374c369194603b8f206c1e858628ea310d0add (diff)
downloaddotfiles-ae344c8b27ecf5b63db2161c22b52355d97c1258.tar.gz
dotfiles-ae344c8b27ecf5b63db2161c22b52355d97c1258.tar.bz2
dotfiles-ae344c8b27ecf5b63db2161c22b52355d97c1258.tar.xz
dotfiles-ae344c8b27ecf5b63db2161c22b52355d97c1258.zip
zsh: Add skim integration for fuzzy finding
-rw-r--r--.config/zsh/.zshrc10
1 files changed, 9 insertions, 1 deletions
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