summaryrefslogtreecommitdiffstats
path: root/shell/key-bindings.fish
diff options
context:
space:
mode:
authorJunegunn Choi <junegunn.c@gmail.com>2015-06-26 01:00:58 +0900
committerJunegunn Choi <junegunn.c@gmail.com>2015-06-26 01:02:44 +0900
commit938151a834c1858ffdd6091cbcb42688a3784b6b (patch)
tree6ffbb24708486b37fd92210b830accd1e1ead9d2 /shell/key-bindings.fish
parent14e3b84073215e29f90f10e6ccce35704598e51d (diff)
[shell] Add FZF_CTRL_T_COMMAND for CTRL-T
Close #40
Diffstat (limited to 'shell/key-bindings.fish')
-rw-r--r--shell/key-bindings.fish6
1 files changed, 4 insertions, 2 deletions
diff --git a/shell/key-bindings.fish b/shell/key-bindings.fish
index b86a4ef3..c79d0fdd 100644
--- a/shell/key-bindings.fish
+++ b/shell/key-bindings.fish
@@ -14,10 +14,12 @@ function fzf_key_bindings
end
function __fzf_ctrl_t
- command find -L . \( -path '*/\.*' -o -fstype 'dev' -o -fstype 'proc' \) -prune \
+ set -q FZF_CTRL_T_COMMAND; or set -l FZF_CTRL_T_COMMAND "
+ command find -L . \\( -path '*/\\.*' -o -fstype 'dev' -o -fstype 'proc' \\) -prune \
-o -type f -print \
-o -type d -print \
- -o -type l -print 2> /dev/null | sed 1d | cut -b3- | eval (__fzfcmd) -m > $TMPDIR/fzf.result
+ -o -type l -print 2> /dev/null | sed 1d | cut -b3-"
+ eval $FZF_CTRL_T_COMMAND | eval (__fzfcmd) -m > $TMPDIR/fzf.result
and commandline -i (cat $TMPDIR/fzf.result | __fzf_escape)
commandline -f repaint
rm -f $TMPDIR/fzf.result