Hacker News new | past | comments | ask | show | jobs | submit login

This looks really nice, but what I would like even more would be to just jump out into a minimal multi line edit mode between the "def" and "end" of a method.



In IRB I use flyrb[1], which gives me methods called vi, emacs and mate, that give me this functionality.

Incidentally, because I want syntax-highlighting for ruby, I have this in my ~/.irbrc

  def vim
     edit_interactively("vim -c 'set ft=ruby'")
  end
[1] - https://github.com/jtrupiano/flyrb


Pry has this functionality built-in but souped-up on a diet of crack: https://github.com/pry/pry/wiki/Editor-integration

;)


Ok. I've switched, was surprisingly easy to integrate with Rails too. Excellent stuff - thanks!




Join us for AI Startup School this June 16-17 in San Francisco!

Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: