dotfiles-x117e0bb89
lf movement binds
+13 −28
2 files changed
- M .config/lf/lfrc +12 −28
- M .config/shell/aliasrc +1 −0
| @@ -53,40 +53,18 @@ cmd delete ${{ | |||
| 53 | 53 | [ $ans = "y" ] && rm -rf -- $fx | |
| 54 | 54 | }} | |
| 55 | 55 | ||
| 56 | − | cmd moveto ${{ | |
| 57 | − | clear; tput cup $(($(tput lines)/3)); tput bold | |
| 58 | − | set -f | |
| 59 | − | clear; echo "Move to where?" | |
| 60 | − | dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" && | |
| 61 | − | for x in $fx; do | |
| 62 | − | eval mv -iv \"$x\" \"$dest\" | |
| 63 | − | done && | |
| 64 | − | notify-send "🚚 File(s) moved." "File(s) moved to $dest." | |
| 65 | − | }} | |
| 66 | − | ||
| 67 | − | cmd copyto ${{ | |
| 68 | − | clear; tput cup $(($(tput lines)/3)); tput bold | |
| 69 | − | set -f | |
| 70 | − | clear; echo "Copy to where?" | |
| 71 | − | dest="$(sed -e 's/\s*#.*//' -e '/^$/d' -e 's/^\S*\s*//' ${XDG_CONFIG_HOME:-$HOME/.config}/shell/bm-dirs | fzf | sed 's|~|$HOME|')" && | |
| 72 | − | for x in $fx; do | |
| 73 | − | eval cp -ivr \"$x\" \"$dest\" | |
| 74 | − | done && | |
| 75 | − | notify-send "📋 File(s) copied." "File(s) copies to $dest." | |
| 76 | − | }} | |
| 77 | − | ||
| 78 | 56 | cmd genwall "$1" | |
| 79 | 57 | cmd bulkrename $vidir | |
| 80 | 58 | ||
| 81 | 59 | # Bindings | |
| 82 | 60 | map <c-f> $lf -remote "send $id select \"$(fzf)\"" | |
| 83 | 61 | 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)" | |
| 84 | − | map gh | |
| 85 | − | map g top | |
| 86 | 62 | map D delete | |
| 63 | + | map p paste | |
| 64 | + | map dd cut | |
| 65 | + | map yy copy | |
| 66 | + | map H top | |
| 87 | 67 | map E extract | |
| 88 | − | map C copyto | |
| 89 | − | map M moveto | |
| 90 | 68 | map <c-n> push :mkdir<space> | |
| 91 | 69 | map <c-r> reload | |
| 92 | 70 | map <c-s> set hidden! | |
| @@ -112,5 +90,11 @@ map W $setsid -f $TERMINAL >/dev/null 2>&1 | |||
| 112 | 90 | ||
| 113 | 91 | map Y $printf "%s" "$fx" | xclip -selection clipboard | |
| 114 | 92 | ||
| 115 | − | # Source Bookmarks | |
| 116 | − | #source "~/.config/lf/shortcutrc" | |
| 93 | + | # movement | |
| 94 | + | map gd cd ~/dox/ | |
| 95 | + | map gD cd ~/dl/ | |
| 96 | + | map gp cd ~/pix | |
| 97 | + | map gc cd ~/.config | |
| 98 | + | map gr cd ~/code/repos | |
| 99 | + | map gv cd ~/vids/ | |
| 100 | + | map gs cd ~/.local/bin | |
| @@ -13,6 +13,7 @@ alias \ | |||
| 13 | 13 | cl='clear' \ | |
| 14 | 14 | dots='/usr/bin/git --git-dir=$HOME/.dotfiles/ --work-tree=$HOME' \ | |
| 15 | 15 | lf="lfub" \ | |
| 16 | + | nb="newsboat" \ | |
| 16 | 17 | hst='history 1 -1 | cut -c 8- | sort | uniq | fzf | tr -d '\n' | xclip -sel c' | |
| 17 | 18 | ||
| 18 | 19 | # Verbosity and settings that you pretty much just always are going to want. | |