Show More
@@ -195,6 +195,11 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
195 |
help="Highlight matching brackets |
|
195 | help="Highlight matching brackets.", | |
196 | ).tag(config=True) |
|
196 | ).tag(config=True) | |
197 |
|
197 | |||
|
198 | extra_open_editor_shortcuts = Bool(False, | |||
|
199 | help="Enable vi (v) or Emacs (C-X C-E) shortcuts to open an external editor. " | |||
|
200 | "This is in addition to the F2 binding, which is always enabled." | |||
|
201 | ).tag(config=True) | |||
|
202 | ||||
198 | @observe('term_title') |
|
203 | @observe('term_title') | |
199 | def init_term_title(self, change=None): |
|
204 | def init_term_title(self, change=None): | |
200 | # Enable or disable the terminal title. |
|
205 | # Enable or disable the terminal title. | |
@@ -221,7 +226,9 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
221 | return |
|
226 | return | |
222 |
|
227 | |||
223 | # Set up keyboard shortcuts |
|
228 | # Set up keyboard shortcuts | |
224 |
kbmanager = KeyBindingManager.for_prompt( |
|
229 | kbmanager = KeyBindingManager.for_prompt( | |
|
230 | enable_open_in_editor=self.extra_open_editor_shortcuts, | |||
|
231 | ) | |||
225 | register_ipython_shortcuts(kbmanager.registry, self) |
|
232 | register_ipython_shortcuts(kbmanager.registry, self) | |
226 |
|
233 | |||
227 | # Pre-populate history from IPython's history database |
|
234 | # Pre-populate history from IPython's history database |
General Comments 0
You need to be logged in to leave comments.
Login now