Skip to content

Commit

Permalink
feat(lf): add skim-based "goto" shortcut
Browse files Browse the repository at this point in the history
Because as pretty as "broot" is, it doesn't cut it for very big
hierarchies (too slow). So I am going to make "gt" (the "default",
because it is easier to type) invoke skim, and "gT" (the "special" mode)
invoke broot.
  • Loading branch information
wincent committed May 29, 2020
1 parent e8f2ab8 commit 77a8ef9
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion aspects/dotfiles/files/.config/lf/lfrc
Expand Up @@ -31,7 +31,8 @@ map gf $test -d $f && $OPENER $f || $OPENER -R $f
map gd cd ~/Downloads
map gp cd ~/Pictures
map gr cd /
map gt broot
map gT broot
map gt skim

# Muscle memory (from mutt): u = [u]pdir
map u updir
Expand Down Expand Up @@ -83,3 +84,8 @@ cmd open ${{
*) for f in $fx; do open $f & done;;
esac
}}

cmd skim ${{
DIR=$(bfs -type d 2> /dev/null | sk --no-multi)
lf -remote "send $id cd \"$DIR\""
}}

0 comments on commit 77a8ef9

Please sign in to comment.