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

Make inclusion of vi mode in prompt togglable. #11492

Merged
merged 1 commit into from Nov 11, 2018

Conversation

anntzer
Copy link
Contributor

@anntzer anntzer commented Nov 11, 2018

See discussion in #11390 (comment).

If we really want to make the prompt configurable I guess the config value could be a function taking an InputMode as argument and returning a string, but that feels a bit overkill?

@Carreau
Copy link
Member

Carreau commented Nov 11, 2018

LGTM.

@Carreau Carreau merged commit a28a444 into ipython:master Nov 11, 2018
@Carreau Carreau added this to the 7.2 milestone Nov 11, 2018
@anntzer anntzer deleted the prompt-includes-vi-mode branch November 11, 2018 22:03
@Evidlo
Copy link

Evidlo commented Jul 25, 2019

For posterity, the option to disable is TerminalInteractiveShell.prompt_includes_vi_mode, which can be set in ipython_config.py as documented here.

c.TerminalInteractiveShell.prompt_includes_vi_mode = False

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.

None yet

3 participants