]> Freerunner's - dotfiles.git/commitdiff
lf: add cd command
authorAndre Ramnitz <tux.rising@gmail.com>
Sat, 14 Sep 2024 23:04:10 +0000 (01:04 +0200)
committerAndre Ramnitz <tux.rising@gmail.com>
Sat, 14 Sep 2024 23:08:26 +0000 (01:08 +0200)
config/dot-config/lf/lfrc

index 9017966..4836f61 100644 (file)
@@ -334,6 +334,7 @@ cmd selected-to-new-folder ${{
 # helpers
 cmd open-with-gui &$@ $fx # opens asynchronously, intended for GUI applications
 cmd open-with-cli $$@ $fx # opens synchronously, intended for CLI/TUI applications
+cmd chdir cd "$@"
 
 # options per location
 setlocal ~ sortby name
@@ -372,6 +373,7 @@ map td touchdir
 map tt touchfile
 
 # c = change
+map cd push :cd<space>
 map cw : rename
 map cm selected-to-new-folder
 map cy yank-file $printf '%s' "$f" | wl-copy -p -n
@@ -386,6 +388,7 @@ map dZ delete #zap
 map gc cd ~/.config
 map gd cd ~/dotfiles
 map gf :fzf_search
+map gl cd ~/.local
 map gL follow-link
 map gm cd /media
 map gM cd /mnt