rspec-mode icon indicating copy to clipboard operation
rspec-mode copied to clipboard

Debugging: move to the end of the buffer right after hitting C-x C-q

Open mkaschenko opened this issue 9 years ago • 5 comments

As it says here https://github.com/pezra/rspec-mode#debugging it's possible to switch to 'Inf-ruby' mode from 'Spec Compilation' mode. I noticed that I always hit C-x C-q and M-> (end-of-buffer) to move to the input place. So I'm thinking about making this behaviour by default.

mkaschenko avatar Apr 19 '16 00:04 mkaschenko

We've slightly changed the recommended procedure on inf-ruby's side, search for compilation-filter-hook in https://github.com/nonsequitur/inf-ruby/blob/master/README.md.

Not sure how your proposal fits in that.

dgutov avatar Apr 19 '16 11:04 dgutov

With inf-ruby-auto-enter added, when I switch to *rspec-compilation* buffer my cursor is in the beginning of the buffer. So I still need to move to end of the buffer to input something. Wouldn't it be nice to have cursor in the input place by default?

rspec-inf-ruby

mkaschenko avatar Apr 20 '16 01:04 mkaschenko

One more thing: I'm currently using byebug gem on a project and inf-ruby-auto-enter is not working for it because inf-ruby-breakpoint-pattern doesn't handle that case. It shouldn't be difficult to make it work.

rspec-byebug

mkaschenko avatar Apr 20 '16 01:04 mkaschenko

It shouldn't be difficult to make it work.

Indeed. Feel like submitting a couple of pull requests?

They should be against inf-ruby. One to recognize byebug prompt, and another that adds a user option that makes inf-ruby-auto-enter and inf-ruby-switch-from-compilation jump to eob.

dgutov avatar Apr 20 '16 09:04 dgutov

👍 I will submit them.

On Apr 20, 2016, at 16:58, Dmitry Gutov [email protected] wrote:

It shouldn't be difficult to make it work.

Indeed. Feel like submitting a couple of pull requests?

They should be against inf-ruby. One to recognize byebug prompt, and another that adds a user option that makes inf-ruby-auto-enter and inf-ruby-switch-from-compilation jump to eob.

— You are receiving this because you authored the thread. Reply to this email directly or view it on GitHub https://github.com/pezra/rspec-mode/issues/143#issuecomment-212358816

mkaschenko avatar Apr 20 '16 12:04 mkaschenko