Hacker News new | past | comments | ask | show | jobs | submit login

I have an alias for `vim -p $(git grep -li "$1") +"/$1"` that allows me to quickly open files that contain a given string.



I used something similar for a long time, but the past few years I've been using Path Picker.

  rg string | fpp
  git status | fpp
  git diff head~1 | fpp
And with Zsh suffixes you can even drop the pipe.

https://github.com/facebook/PathPicker




Consider applying for YC's Spring batch! Applications are open till Feb 11.

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: