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

Add an ocamldebug command for back stepping #227

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

aatxe
Copy link

@aatxe aatxe commented Jan 10, 2020

I noticed when attempting to customize bindings for ocamldebug that Tuareg is actually missing a definition for backstep. This small change resolves that by creating an ocamldebug-back command (like the ocamldebug-next) command.

@leungbk
Copy link

leungbk commented Sep 24, 2020

It looks like C-b is already taken by break?

@aatxe
Copy link
Author

aatxe commented Sep 24, 2020

Ah, that is true. It seems to take the first one defined, so I didn’t notice. I can change it, but I don’t know what would be the most suitable/mnemonic.

@bbatsov
Copy link
Contributor

bbatsov commented Jul 13, 2022

I'd just C-j, C-k or C-m as they are close to the keybinding C-n (for next line). Perhaps we can also add C-j and C-k as aliases for C-m and C-n, even if they are inspired by vim. :-)

@monnier
Copy link
Contributor

monnier commented Oct 2, 2023

This is old, but I think it's still relevant.
The "natural" binding for the opposite of C-n is C-p (C-b is the opposite of C-f), so the conflict with C-b == break is a non-issue (Yay!). Instead we have a conflict with C-p == print (bummer!).

But do we need a new binding or could we use a numeric prefix (like C-u - 2 C-n to backstep 2 lines)?

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

Successfully merging this pull request may close these issues.

4 participants