From fc766b2fbf50010ededc3847b4f48f7422c57c18 Mon Sep 17 00:00:00 2001 From: Ram Srivatsa Date: Fri, 31 Jan 2025 04:33:53 -0800 Subject: [PATCH] Updated Examples (markdown) --- Examples.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Examples.md b/Examples.md index 136e125..3ea9830 100644 --- a/Examples.md +++ b/Examples.md @@ -198,7 +198,7 @@ f() { # - Bypass fuzzy finder if there's only one match (--select-1) # - Exit if there's no match (--exit-0) fe() { - IFS=$'\n' files=($(fzf-tmux --query="$1" --multi --select-1 --exit-0 --preview="bat --color=always {})) + IFS=$'\n' files=($(fzf-tmux --query="$1" --multi --select-1 --exit-0 --preview="bat --color=always {}")) [[ -n "$files" ]] && ${EDITOR:-vim} "${files[@]}" } @@ -206,7 +206,7 @@ fe() { # - CTRL-O to open with `open` command, # - CTRL-E or Enter key to open with the $EDITOR fo() { - 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 --preview="bat --color=always {}")") key=$(head -1 <<< "$out") file=$(head -2 <<< "$out" | tail -1) if [ -n "$file" ]; then