]> Sergey Matveev's repositories - dotfiles.git/commitdiff
fzf
authorSergey Matveev <stargrave@stargrave.org>
Wed, 3 Feb 2021 08:02:38 +0000 (11:02 +0300)
committerSergey Matveev <stargrave@stargrave.org>
Wed, 3 Feb 2021 08:02:38 +0000 (11:02 +0300)
bin/bin/pe [moved from bin/bin/path-extractor.zsh with 94% similarity]
bin/bin/tmux-path-extractor.sh
vim/.vim/plugin/fzf.vim [new file with mode: 0644]
zsh/.zshenv
zsh/.zshrc

similarity index 94%
rename from bin/bin/path-extractor.zsh
rename to bin/bin/pe
index 2a93173bb1e72bcedd88b9dad946abeef467380e..8b64702a77f53de9de5150d9b83fc684eafd66dd 100755 (executable)
@@ -15,6 +15,7 @@ done
 [[ $ctr -le 20 ]] && print -C 1 $toprint || print -c $toprint
 print -n "> "
 read choice < /dev/tty
+[[ "$choice" = "q" ]] && exit
 if [[ "$choice" = "*" ]]; then
     buf=$fns
 else
index 2e2e3858fb8155799cee65446df36190ce04fb89..4375c598b2d149687cf9f53fdaa40032f99dda98 100755 (executable)
@@ -2,7 +2,7 @@
 
 tmux has-session -t path-extractor && tmux kill-session -t path-extractor || :
 tmux new-session -d -s path-extractor "
-    ~/bin/path-extractor.zsh < /tmp/tmux-buffer
+    ~/bin/pe < /tmp/tmux-buffer
     tmux detach
     sleep 20
 "
diff --git a/vim/.vim/plugin/fzf.vim b/vim/.vim/plugin/fzf.vim
new file mode 100644 (file)
index 0000000..cd8284a
--- /dev/null
@@ -0,0 +1 @@
+let g:fzf_preview_window = []
index 9bb060525f80c7d90704d48d332be877c639663e..d455788807b9d4893b3d210afc337bd68325ccae 100644 (file)
@@ -93,4 +93,6 @@ export DBUS_SESSION_BUS_ADDRESS=disabled:
 export MYSQL_HISTFILE=/tmp/.mysql_history
 export REDO_JOBS=0 REDO_NO_SYNC=1
 export SHARNESS_TEST_SRCDIR=$HOME/local/stow/sharness/share/sharness
+export FZF_CTRL_T_COMMAND="print -C 1 **~.git/*"
+export FZF_DEFAULT_OPTS="--inline-info"
 # }}}
index 99f9b0841063581d820143e65e65f86e60bf742f..e5f02abe87c2c2666e9ab84a04dc6b6b09c38874 100644 (file)
@@ -208,3 +208,7 @@ ZSH_HIGHLIGHT_STYLES[path_pathseparator]="fg=white,bold,underline"
 . ~/work/zsh-autosuggestions/zsh-autosuggestions.zsh
 ZSH_AUTOSUGGEST_HIGHLIGHT_STYLE="fg=cyan"
 # }}}
+
+# fzf {{{
+. ~/work/fzf/shell/key-bindings.zsh
+# }}}