Often when you’re debugging, you have to add a binding.pry to a method from a third party gem. You can open the gem using bundle open gem-name. Let’s see this is action.

bundle open jekyll
Resolving dependencies...

If gem name is ambiguous, a prompt will chime in:

bundle open jekyl
Resolving dependencies...
1 : jekyll-sass-converter
2 : jekyll-watch
3 : jekyll
4 : jekyll-coffeescript
5 : jekyll-feed
6 : jekyll-gist
7 : jekyll-github-metadata
8 : jekyll-mentions
9 : jekyll-paginate
10 : jekyll-redirect-from
11 : jekyll-seo-tag
12 : jekyll-sitemap
13 : guard-jekyll
0 : - exit -

Do not forget to export the editor in .zshrc (or .bashrc):

export EDITOR='nvim'

This protip has been written in 845 seconds