Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
mkaschenko opened this issue Apr 19, 2016 · 5 comments
Open

Comments

@mkaschenko
Copy link
Contributor

mkaschenko commented Apr 19, 2016

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.

@dgutov
Copy link
Collaborator

dgutov commented Apr 19, 2016

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.

@mkaschenko
Copy link
Contributor Author

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
Copy link
Contributor Author

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

@dgutov
Copy link
Collaborator

dgutov commented Apr 20, 2016

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.

@mkaschenko
Copy link
Contributor Author

👍
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 #143 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants