dotfiles

Author: Kyle Fuller <kyle@fuller.li> 2017-12-13 23:21:25 -0800 -0800
Committer: Kyle Fuller <kyle@fuller.li> 2017-12-13 23:21:25 -0800 -0800
Commit: 40f9475ff91a75774c5d2b54307eae5bcd1554fc
Parent: 03914adcb4db9cd6b5d8a661e4df6e8709a49fe0


feat(p): Auto select when only one match
diff --git a/.config/fish/functions/p.fish b/.config/fish/functions/p.fish
index 9fb5c33088dd6e8ff14fd648769321930c272678..402d8d8a6e4f6d847fda40ec751ef161327176f7 100644
--- a/.config/fish/functions/p.fish
+++ b/.config/fish/functions/p.fish
@@ -1,4 +1,4 @@
 function p
   # Jump into a selected project from `~/Projects`
-  cd ~/Projects/(find ~/Projects -type d -maxdepth 2 -depth 2 -print | cut -d '/' -f5,6 | fzf -q "$argv[1]")
+  cd ~/Projects/(find ~/Projects -type d -maxdepth 2 -depth 2 -print | cut -d '/' -f5,6 | fzf -1 -q "$argv[1]")
 end