pecoってどう便利なんだろう、と思っていたのだけど、その便利さを実感できたのでメモ。 やりたいこと 「hoge」でgrepかけて、引っかかったファイルのうち任意のものをviで開きたい ってことがよくあります。 $ grep hoge -Rni app/ app/controller/hoge_controller.rb:3:class HogeController app/controller/hoge_controller.rb:12: tmp = hoge.hogege.hugogo app/controller/hoge_controller.rb:42: tyome = hoge.sotr_by(&:bar) app/model/hoge.rb:3:class Hoge : $ vi app/controller/hoge_controller.rb +42