From fafd82db58b745782ec0725cd39e82d4c3864c67 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Yaroslav=20de=20la=20Pe=C3=B1a=20Smirnov?= Date: Wed, 27 Jan 2021 00:18:19 +0300 Subject: lf: dragon drag-n-drop target --- dotfiles/.config/lf/lfrc | 3 +++ 1 file changed, 3 insertions(+) (limited to 'dotfiles/.config/lf') 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 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 -- cgit v1.2.3