about summary refs log tree commit diff stats
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-03 00:01:12 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2025-02-03 00:01:53 +0100
commitea4333af2f54bf3ba26ef64c561c1f557b0e1aaf (patch)
tree244fdd8559bbb1b783459e273805e2908690e46b
parentfix(modules/lf/keybindings/): Use the correct name for `trash_clear` (diff)
downloadnixos-config-ea4333af2f54bf3ba26ef64c561c1f557b0e1aaf.zip
fix(modules/lf/commands/trash_{clear,restore}): Allow ansi codes in fzf
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_clear.sh2
-rwxr-xr-xmodules/by-name/lf/lf/commands/scripts/trash_restore.sh2
2 files changed, 2 insertions, 2 deletions
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