switch to proximity fzf project switcher

also sadly must remove the shortcut names because sorting requires full paths
This commit is contained in:
Noah Masur 2024-01-14 22:33:29 -05:00
parent 56d2c95c64
commit 95e8d5c268

View File

@ -1,4 +1,4 @@
{ config, ... }: { { config, pkgs, ... }: {
# FZF is a fuzzy-finder for the terminal # FZF is a fuzzy-finder for the terminal
@ -16,10 +16,9 @@
--search-path $HOME/dev \ --search-path $HOME/dev \
--type directory \ --type directory \
--exact-depth 2 \ --exact-depth 2 \
| ${pkgs.proximity-sort}/bin/proximity-sort . \
| sed 's/\\/$//' \ | sed 's/\\/$//' \
| fzf \ | fzf --tiebreak=index \
--delimiter '/' \
--with-nth 6.. \
) )
and cd $projdir and cd $projdir
and commandline -f execute and commandline -f execute