From 1d1d691f3ad9eee294a2400efd9b62a7228a5be1 Mon Sep 17 00:00:00 2001 From: snailed Date: Fri, 21 Oct 2022 19:11:11 +0000 Subject: [PATCH] Add trash-restore and trash binds Add trash-restore and trash binds Trash restore will only look for trashed files that were in the working directory. The $PWD on line 110 can be removed to skip this check. --- .config/lf/lfrc | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.config/lf/lfrc b/.config/lf/lfrc index 0d534568..e3a544d1 100644 --- a/.config/lf/lfrc +++ b/.config/lf/lfrc @@ -105,7 +105,9 @@ map $lf -remote "send $id select \"$(fzf)\"" map J $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf)" map gh map g top -map D delete +map D trash +map delete +map T $trash-restore $PWD map E extract map C copyto map M moveto