From 950199c3f84f16dba78c8b4966c907b77317010e Mon Sep 17 00:00:00 2001 From: Benedikt Peetz Date: Tue, 21 Jul 2026 00:03:22 +0200 Subject: modules/lf/commands/thrash_restore: Completely use conceal There is no reason to use two thrash-implementations at the same time. --- modules/by-name/lf/lf/commands/default.nix | 3 --- modules/by-name/lf/lf/commands/scripts/trash_restore.sh | 6 +----- 2 files changed, 1 insertion(+), 8 deletions(-) (limited to 'modules/by-name') 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 -- cgit v1.3.1