From ea4333af2f54bf3ba26ef64c561c1f557b0e1aaf Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Mon, 3 Feb 2025 00:01:12 +0100 Subject: fix(modules/lf/commands/trash_{clear,restore}): Allow ansi codes in fzf --- modules/by-name/lf/lf/commands/scripts/trash_clear.sh | 2 +- modules/by-name/lf/lf/commands/scripts/trash_restore.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'modules/by-name/lf') diff --git a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh index e23bcd0b..de800074 100755 --- a/modules/by-name/lf/lf/commands/scripts/trash_clear.sh +++ b/modules/by-name/lf/lf/commands/scripts/trash_clear.sh @@ -2,7 +2,7 @@ while read -r file; do set -- "$@" "$file" -done < "$(conceal list | fzf --multi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)" +done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)" trash empty --match=exact "$@" diff --git a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh index f0ddfda4..5e9847c3 100755 --- a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh +++ b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh @@ -11,7 +11,7 @@ id="$id" while read -r file; do set -- "$@" "$file" -done <"$(conceal list | fzf --multi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)" +done <"$(conceal list | fzf --multi --ansi | awk '{for(i=3; i<=NF; i++) {print $i}}' | tmp)" trash restore --match=exact "$@" # vim: ft=sh -- cgit 1.4.1