commit e99806f303aa6f6adbf815e08d34323aa26a841f
parent 343c54b81bacae859d033f13085734570019aedf
Author: Shimmy Xu <shimmy.xu@shimmy1996.com>
Date: Tue, 22 Jan 2019 20:37:10 -0500
Use fd and fzf for fuzzy matching below current directory.
Diffstat:
1 file changed, 2 insertions(+), 3 deletions(-)
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
@@ -36,9 +36,8 @@ map <c-w> cut
map <a-w> copy
map <c-y> paste
-# Emacs style search
-cmd fuzzy $lf -remote "send $id select $(fzf)"
-map <c-s> fuzzy
+# Fuzzy search for current directory and below.
+map <c-s> $lf -remote "send $id select '$(fd -I -H | fzf)'"
# define a custom 'open' command
# This command is called when current file is not a directory. You may want to