dotfiles

My personal shell configs and stuff
git clone git://git.alex.balgavy.eu/dotfiles.git
Log | Files | Refs | Submodules | README | LICENSE

commit 4993ad26099a515fd39a561c6e19df47a1cb9008
parent e7308ac456f17910cb07627ccf5fefdc9ae0be23
Author: Alex Balgavy <a.balgavy@gmail.com>
Date:   Tue, 15 Oct 2019 22:53:55 -0400

lf: a bunch of configs

Former-commit-id: fd496203419d1358b3a12241303206eb4573b2a3
Diffstat:
Mlf/lfrc | 37++++++++++++++++++++++++++++++++++++-
1 file changed, 36 insertions(+), 1 deletion(-)

diff --git a/lf/lfrc b/lf/lfrc @@ -83,7 +83,27 @@ cmd edit_config :{{ $$EDITOR ~/.config/lf/lfrc source ~/.config/lf/lfrc }} + +cmd copy_path ${{ + set -f + if command -v pbcopy > /dev/null 2> /dev/null; then + echo "$f" | tr -d '\n' | pbcopy + elif command -v xclip > /dev/null 2> /dev/null; then + echo "$f" | tr -d '\n' | xclip -sel clip + fi +}} +cmd paste_link %{{ + load=$(lf -remote 'load') + mode=$(echo "$load" | sed -n '1p') + list=$(echo "$load" | sed '1d') + + echo $list | while read -r fil; do + lf -remote "send %ln -s $fil ."; + done +}} + # }}} + # Mappings {{{ # execute current file (must be executable) map x $$f @@ -98,6 +118,11 @@ map E $$EDITOR $f map D delete map <enter> shell-pipe map S shell +map Y copy_path + +map p +map pp paste +map pl paste_link map gd cd ~/Documents map gD cd ~/Desktop @@ -108,4 +133,14 @@ map g/ cd / map gs cd ~/Documents/School map g. cd ~/.dotfiles -map <a-,> edit_config +map u +map ud unselect +map uy unselect +map uu clear + +map c +map cf push %touch<space> +map cd push %mkdir<space> +map e +map ee $$EDITOR $f +map ec edit_config