diff options
| author | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-21 00:03:22 +0200 |
|---|---|---|
| committer | Benedikt Peetz <benedikt.peetz@b-peetz.de> | 2026-07-21 00:03:22 +0200 |
| commit | 950199c3f84f16dba78c8b4966c907b77317010e (patch) | |
| tree | 050fb855bb46051587e15f6489c0888824b6abdd | |
| parent | modules/i3bar-river: Use fc's `fullname` for specifying the font (diff) | |
| download | nixos-config-950199c3f84f16dba78c8b4966c907b77317010e.zip | |
modules/lf/commands/thrash_restore: Completely use conceal
There is no reason to use two thrash-implementations at the same time.
| -rw-r--r-- | modules/by-name/lf/lf/commands/default.nix | 3 | ||||
| -rwxr-xr-x | modules/by-name/lf/lf/commands/scripts/trash_restore.sh | 6 |
2 files changed, 1 insertions, 8 deletions
diff --git a/modules/by-name/lf/lf/commands/default.nix b/modules/by-name/lf/lf/commands/default.nix index 42dc548e..98b3119f 100644 --- a/modules/by-name/lf/lf/commands/default.nix +++ b/modules/by-name/lf/lf/commands/default.nix @@ -169,9 +169,6 @@ in { dependencies = [ pkgs.conceal pkgs.fzf - pkgs.gawk - pkgs.trashy - pkgs.gnused ]; }; 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 7b078c26..789ab59a 100755 --- a/modules/by-name/lf/lf/commands/scripts/trash_restore.sh +++ b/modules/by-name/lf/lf/commands/scripts/trash_restore.sh @@ -19,9 +19,5 @@ fs="$fs" # shellcheck disable=SC2269 id="$id" -while IFS="$(printf '\n')" read -r file; do - set -- "$@" "$(pwd)/$file" -done <"$(conceal list | fzf --multi --ansi | awk '{$1="";$2=""; print $0}' | sed 's/^\s*//' | tmp)" - -[ "$#" -ne 0 ] && trash restore --match=exact "$@" +conceal restore --finder=fzf # vim: ft=sh |
