summaryrefslogtreecommitdiff
path: root/.config/lf
diff options
context:
space:
mode:
Diffstat (limited to '.config/lf')
-rw-r--r--.config/lf/lfrc40
1 files changed, 12 insertions, 28 deletions
diff --git a/.config/lf/lfrc b/.config/lf/lfrc
index bcebcf5..0cc172a 100644
--- a/.config/lf/lfrc
+++ b/.config/lf/lfrc
@@ -53,40 +53,18 @@ cmd delete ${{
[ $ans = "y" ] && rm -rf -- $fx
}}
-cmd moveto ${{
- clear; tput cup $(($(tput lines)/3)); tput bold
- set -f
- clear; echo "Move to where?"
- dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
- for x in $fx; do
- eval mv -iv \"$x\" \"$dest\"
- done &&
- notify-send "🚚 File(s) moved." "File(s) moved to $dest."
-}}
-
-cmd copyto ${{
- clear; tput cup $(($(tput lines)/3)); tput bold
- set -f
- clear; echo "Copy to where?"
- dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" &&
- for x in $fx; do
- eval cp -ivr \"$x\" \"$dest\"
- done &&
- notify-send "📋 File(s) copied." "File(s) copies to $dest."
-}}
-
cmd genwall "$1"
cmd bulkrename $vidir
# Bindings
map <c-f> $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 p paste
+map dd cut
+map yy copy
+map H top
map E extract
-map C copyto
-map M moveto
map <c-n> push :mkdir<space>
map <c-r> reload
map <c-s> set hidden!
@@ -112,5 +90,11 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1
map Y $printf "%s" "$fx" | xclip -selection clipboard
-# Source Bookmarks
-#source "~/.config/lf/shortcutrc"
+# movement
+map gd cd ~/dox/
+map gD cd ~/dl/
+map gp cd ~/pix
+map gc cd ~/.config
+map gr cd ~/code/repos
+map gv cd ~/vids/
+map gs cd ~/.local/bin