<Ruby on Rails> rails routesの対話型のフィルタリングツール peco
pecoとは
シンプルな対話型のフィルタリングツール。 grepと異なり、入力しながら検索することができる。
公式の説明文
peco can be a great tool to filter stuff like logs, process stats, find files, because unlike grep, you can type as you think and look through the current results.
↓DeepLでの翻訳 grepと違って、考えながらタイプして、現在の結果を見ることができるので、pecoは、ログ、プロセス統計、ファイルの検索などのフィルタリングに最適なツールです。
ツールの導入
macでは、homebrewを使用してinstallする。
$ brew install peco
使用方法
以下のコマンドを入力。
$ rails routes | peco
参考
Railsのルーティング早見方法 (peco) - Qiita GitHub - peco/peco: Simplistic interactive filtering tool