m/fzf
1
0
mirror of https://github.com/junegunn/fzf.git synced 2025-11-19 09:03:43 -05:00

Updated Examples (markdown)

Diogo Lemos
2019-06-13 18:05:33 +01:00
parent a273dfe8eb
commit 548c30300b

@@ -71,7 +71,7 @@ fe() {
# - CTRL-E or Enter key to open with the $EDITOR # - CTRL-E or Enter key to open with the $EDITOR
fo() { fo() {
local out file key local out file key
IFS=$'\n' out=($(fzf-tmux --query="$1" --exit-0 --expect=ctrl-o,ctrl-e)) IFS=$'\n' out=("$(fzf-tmux --query="$1" --exit-0 --expect=ctrl-o,ctrl-e)")
key=$(head -1 <<< "$out") key=$(head -1 <<< "$out")
file=$(head -2 <<< "$out" | tail -1) file=$(head -2 <<< "$out" | tail -1)
if [ -n "$file" ]; then if [ -n "$file" ]; then