nonsequitur / inf-ruby

218 stars 69 forks source link

Bind C-c C-c to 'inf-ruby-console-auto #60

Closed zhiyuanshi closed 10 years ago

zhiyuanshi commented 10 years ago

Would be very handy for Rails developers, for example. The second 'c' is a mnemonic for 'console'.

dgutov commented 10 years ago

How about we just replace inf-ruby with inf-ruby-console-auto in this map?

zhiyuanshi commented 10 years ago

Seems inf-ruby-console-auto is able to act as the vanilla inf-ruby with plain Ruby projects? Cool. :)

dgutov commented 10 years ago

Not entirely. It's Bundler-aware, and if started within a gem, the console will start with it and its dependencies loaded. Unfortunately, it doesn't work outside of projects (raises an error).

I don't really like to have two bindings doing very similar things, and C-c C-c could probably be used for something more important, if not here, then by some other package. Rather than spend time thinking how to preserve but enhance the old behavior (called with prefix -> ask to choose the implementation...), I'd rather the users set the key binding themselves.