##// END OF EJS Templates
Configure editing_mode instead of vi_mode...
Thomas Kluyver -
Show More
@@ -108,8 +108,8 b' class TerminalInteractiveShell(InteractiveShell):'
108 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',
108 in Unix, Control-Z/Enter in Windows). By typing 'exit' or 'quit',
109 you can force a direct exit without any confirmation.""",
109 you can force a direct exit without any confirmation.""",
110 )
110 )
111 vi_mode = Bool(False, config=True,
111 editing_mode = Unicode('emacs', config=True,
112 help="Use vi style keybindings at the prompt",
112 help="Shortcut style to use at the prompt. 'vi' or 'emacs'.",
113 )
113 )
114
114
115 mouse_support = Bool(False, config=True,
115 mouse_support = Bool(False, config=True,
@@ -234,7 +234,7 b' class TerminalInteractiveShell(InteractiveShell):'
234 self._style = self._make_style_from_name(self.highlighting_style)
234 self._style = self._make_style_from_name(self.highlighting_style)
235 style = DynamicStyle(lambda: self._style)
235 style = DynamicStyle(lambda: self._style)
236
236
237 editing_mode = EditingMode.VI if self.vi_mode else EditingMode.EMACS
237 editing_mode = getattr(EditingMode, self.editing_mode.upper())
238
238
239 self._app = create_prompt_application(
239 self._app = create_prompt_application(
240 editing_mode=editing_mode,
240 editing_mode=editing_mode,
General Comments 0
You need to be logged in to leave comments. Login now