16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

bundler + peco + atom で今使っているgemの詳細を見る

Posted at

tl;dr

function peco-bundle-gem-open() {
    local selected_dir=$(bundle show --paths | peco)
    if [ -n "$selected_dir" ]; then
        BUFFER="atom ${selected_dir}"
        zle accept-line
    fi
    zle clear-screen
}
zle -N peco-bundle-gem-open

bindkey '^[;b' peco-bundle-gem-open

Meta-; b で便利最高が発生する:

benri-bundle2.gif

詳細

bundle show --paths ってやると、そのプロジェクトで使っているgemの在処が一覧できる。そのパスを atom に渡しているだけ。atomじゃなくてもいいと思う。でもatomのプロジェクト検索そこそこ便利っぽい気がする。

これでGitHub上のプロジェクトで検索しまくらなくてもよくなりそうで便利。古いgemでも安心...。

16
16
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
16
16

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?