Show More
@@ -192,7 +192,12 b' class TerminalInteractiveShell(InteractiveShell):' | |||||
192 | default_value='multicolumn').tag(config=True) |
|
192 | default_value='multicolumn').tag(config=True) | |
193 |
|
193 | |||
194 | highlight_matching_brackets = Bool(True, |
|
194 | highlight_matching_brackets = Bool(True, | |
195 |
help="Highlight matching brackets |
|
195 | help="Highlight matching brackets.", | |
|
196 | ).tag(config=True) | |||
|
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." | |||
196 | ).tag(config=True) |
|
201 | ).tag(config=True) | |
197 |
|
202 | |||
198 | @observe('term_title') |
|
203 | @observe('term_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