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

Revert 71ef8907a8a81f2223d51c149c975105187a3048...535eff6eb1b0600f4954d491625426691a9d056f on Examples

Junegunn Choi
2017-01-20 10:23:45 +09:00
parent 30325dd4fd
commit 68458e3ba4

@@ -18,8 +18,8 @@ fe() {
fo() {
local out file key
IFS=$'\n' out=($(fzf-tmux --query="$1" --exit-0 --expect=ctrl-o,ctrl-e))
key=${out[0]}
file=${out[1]}
key=$(head -1 <<< "$out")
file=$(head -2 <<< "$out" | tail -1)
if [ -n "$file" ]; then
[ "$key" = ctrl-o ] && open "$file" || ${EDITOR:-vim} "$file"
fi