aboutsummaryrefslogtreecommitdiff
path: root/dotfiles/.config/lf/lfrc
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-27 00:18:19 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2021-01-27 00:18:19 +0300
commitfafd82db58b745782ec0725cd39e82d4c3864c67 (patch)
treee91d159609534671ec7e44cce912e6725ac283cd /dotfiles/.config/lf/lfrc
parentfb862406a0719f34933e6755a8592636019b5d70 (diff)
downloadswayrice-fafd82db58b745782ec0725cd39e82d4c3864c67.tar.gz
swayrice-fafd82db58b745782ec0725cd39e82d4c3864c67.zip
lf: dragon drag-n-drop target
Diffstat (limited to 'dotfiles/.config/lf/lfrc')
-rw-r--r--dotfiles/.config/lf/lfrc3
1 files changed, 3 insertions, 0 deletions
diff --git a/dotfiles/.config/lf/lfrc b/dotfiles/.config/lf/lfrc
index 4c2a3ba..31c6945 100644
--- a/dotfiles/.config/lf/lfrc
+++ b/dotfiles/.config/lf/lfrc
@@ -68,6 +68,8 @@ cmd fzf_jump ${{
# drag and drop prompt
cmd dragon $dragon-drag-and-drop -a $fx
+cmd dragon_drop $cp $(dragon-drag-and-drop --target | sed 's/file:\/\///g') .
+
# copy path to clipboard
cmd yank-path &printf '%s' "$fx" | wl-copy
@@ -87,6 +89,7 @@ map D delete
map <enter> shell
map f :fzf_jump
map t :dragon
+map T :dragon_drop
map W $setsid $TERMINAL & # open new terminal window
map Y :yank-path
map L $LESSOPEN='| ~/.local/bin/scope %s' less -R $f # open file preview in pager