summaryrefslogtreecommitdiff
path: root/ar/.config/lf/lfrc
diff options
context:
space:
mode:
authorTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-14 11:41:46 +0900
committerTheSiahxyz <164138827+TheSiahxyz@users.noreply.github.com>2026-05-14 11:41:46 +0900
commitac88065c0ec61a9ca46c7f1bd7719e5252aa97e5 (patch)
tree090b37b0241d31e001a7df0842e916a3ef2df573 /ar/.config/lf/lfrc
parenta791f0dbb573f70e5bd074cb8feac8cf815b9af8 (diff)
modified lf/lfrc
Diffstat (limited to 'ar/.config/lf/lfrc')
-rw-r--r--ar/.config/lf/lfrc23
1 files changed, 23 insertions, 0 deletions
diff --git a/ar/.config/lf/lfrc b/ar/.config/lf/lfrc
index 8385ec6..0fda475 100644
--- a/ar/.config/lf/lfrc
+++ b/ar/.config/lf/lfrc
@@ -202,6 +202,22 @@ cmd restore_trash ${{
trash-restore
}}
+# Drag & Drop
+cmd dragon &dragon-drop -a -x $fx
+cmd dragon-stay &dragon-drop -a $fx
+cmd dragon-individual &dragon-drop $fx
+cmd dragon-target ${{
+ out=$(dragon-drop -t -x)
+ [ -n "$out" ] && printf "%s\n" "$out" | while IFS= read -r src; do
+ [ -e "$src" ] && cp -ivr "$src" "$PWD"
+ done
+}}
+
+# File Manager
+cmd fm ${{
+ setsid -f ${FM:-thunar} "$PWD" >/dev/null 2>&1
+}}
+
# Extract
cmd extract ${{
clear; tput cup $(($(tput lines)/3)); tput bold
@@ -574,6 +590,12 @@ map dr cut-remove
map D trash; clear; save-select
map <delete> delete; clear; save-select
+# Drag & Drop
+map dga dragon
+map dgs dragon-stay
+map dgi dragon-individual
+map dgt dragon-target
+
# Editor
map <enter> $$EDITOR "$f"
map <c-v> push :!nvim<space>
@@ -674,6 +696,7 @@ map fb $lf -remote "send $id cd $(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//
map fD zi
map fd $lf -remote "send $id select \"$(find . -type d | fzf)\""
map ff $lf -remote "send $id select \"$(find . -type f | fzf)\""
+map fm fm
map gl follow_link
map gc git-root
map <c-f> fzf_search