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

added a configurable default mode so we don't have to start in INSERT #1632

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

Conversation

MatrixManAtYrService
Copy link

If accepted, this would fix #1631

Usage looks like this:

    app = Application(
        key_bindings=kb, layout=Layout(root_container), editing_mode=EditingMode.VI
    )
    app.vi_state.default_input_mode = InputMode.NAVIGATION
    app.reset()
    app.run()

I'm not confident about the bigger picture here. Like maybe there's a way to do this that fits better with the many other ways to use prompt-toolkit. All I can say is that it works well in my case.

@MatrixManAtYrService
Copy link
Author

That failing test... I don't think it has anything to do with my change.

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.

Start in vi navigation mode
1 participant