diff options
author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-03 00:01:12 +0100 |
---|---|---|
committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2025-02-03 00:01:53 +0100 |
commit | ea4333af2f54bf3ba26ef64c561c1f557b0e1aaf (patch) | |
tree | 244fdd8559bbb1b783459e273805e2908690e46b | |
parent | fix(modules/lf/keybindings/): Use the correct name for `trash_clear` (diff) | |
download | nixos-config-ea4333af2f54bf3ba26ef64c561c1f557b0e1aaf.zip |
fix(modules/lf/commands/trash_{clear,restore}): Allow ansi codes in fzf
-rwxr-xr-x | modules/by-name/lf/lf/commands/scripts/trash_clear.sh | 2 | ||||
-rwxr-xr-x | modules/by-name/lf/lf/commands/scripts/trash_restore.sh | 2 |
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 |