Slacker News Slacker News logo featuring a lazy sloth with a folded newspaper hat
  • top
  • new
  • show
  • ask
  • jobs
Library

Comment by ximm

1 year ago

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

1 comment

ximm

Reply

bradly  1 year ago

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

Slacker News

Product

  • API Reference
  • Hacker News RSS
  • Source on GitHub

Community

  • Support Ukraine
  • Equal Justice Initiative
  • GiveWell Charities