m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-18 08:13:40 -05:00

fix fe function for files containing whitespace

Andy Weidenbaum
2015-12-06 20:51:47 -08:00
parent b56e1384ca
commit 1fc51391a5

@@ -7,8 +7,10 @@ You can replace `fzf` command on each example with [`fzf-tmux`](https://github.c
# - Bypass fuzzy finder if there's only one match (--select-1)
# - Exit if there's no match (--exit-0)
fe() {
IFS='
'
local declare files=($(fzf-tmux --query="$1" --select-1 --exit-0))
[[ -n "$files" ]] && ${EDITOR:-vim} ${files[@]}
[[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}"
}
# Modified version where you can press