tyru/percov · GitHub id:moozさんのpercolにインスパイアされました。 使い方 $ find -type f | grep hoge | percovみたいにするとvimが立ち上がってuniteで即座に絞り込める状態になります。 $ percov fileみたいにするとfileの内容を読み込みます。 ようするに入力を行ごとに絞り込めるってことですね。 id:moozさんのpercolはPythonで書かれてて自前で絞り込みを実装してるっぽい*1ですが、 unite-lineがあるので楽できました。 実装 実装は超簡単で、バッファの行を絞り込めるunite-lineというのがあるので、 バッファに入力を読み込んでからunite-lineを呼び出してるだけです。 シェルスクリプトです。 強いて言えば入力がなかったらuniteを立ち上げないようにしてるぐらいです。