|
|
|
@ -2,7 +2,7 @@
|
|
|
|
|
# ------------
|
|
|
|
|
function fzf_key_bindings
|
|
|
|
|
|
|
|
|
|
# Store last token in $dir as root for the 'find' command
|
|
|
|
|
# Store current token in $dir as root for the 'find' command
|
|
|
|
|
function fzf-file-widget -d "List files and folders"
|
|
|
|
|
set -l dir (commandline -t)
|
|
|
|
|
# The commandline token might be escaped, we need to unescape it.
|
|
|
|
@ -19,7 +19,7 @@ function fzf_key_bindings
|
|
|
|
|
command find -L \$dir -mindepth 1 \\( -path \$dir'*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
|
|
|
|
|
-o -type f -print \
|
|
|
|
|
-o -type d -print \
|
|
|
|
|
-o -type l -print 2> /dev/null | sed 's#^\./##'"
|
|
|
|
|
-o -type l -print 2> /dev/null | cut -b3-"
|
|
|
|
|
|
|
|
|
|
set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%
|
|
|
|
|
begin
|
|
|
|
@ -54,8 +54,8 @@ function fzf_key_bindings
|
|
|
|
|
|
|
|
|
|
function fzf-cd-widget -d "Change directory"
|
|
|
|
|
set -q FZF_ALT_C_COMMAND; or set -l FZF_ALT_C_COMMAND "
|
|
|
|
|
command find -L . \\( -path '*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
|
|
|
|
|
-o -type d -print 2> /dev/null | sed 1d | cut -b3-"
|
|
|
|
|
command find -L . -mindepth 1 \\( -path '*/\\.*' -o -fstype 'devfs' -o -fstype 'devtmpfs' \\) -prune \
|
|
|
|
|
-o -type d -print 2> /dev/null | cut -b3-"
|
|
|
|
|
set -q FZF_TMUX_HEIGHT; or set FZF_TMUX_HEIGHT 40%
|
|
|
|
|
begin
|
|
|
|
|
set -lx FZF_DEFAULT_OPTS "--height $FZF_TMUX_HEIGHT --reverse $FZF_DEFAULT_OPTS $FZF_ALT_C_OPTS"
|
|
|
|
|