##// END OF EJS Templates
Merge pull request #11014 from ghost/make-prompt-tookit-history-search-configurable...
Min RK -
r24148:b65d977c merge
parent child Browse files
Show More
@@ -57,8 +57,6 b' _style_overrides_linux = {'
57 Token.OutPromptNum: '#bb0000 bold',
57 Token.OutPromptNum: '#bb0000 bold',
58 }
58 }
59
59
60
61
62 def get_default_editor():
60 def get_default_editor():
63 try:
61 try:
64 return os.environ['EDITOR']
62 return os.environ['EDITOR']
@@ -208,6 +206,10 b' class TerminalInteractiveShell(InteractiveShell):'
208 "may be changed or removed in later releases."
206 "may be changed or removed in later releases."
209 ).tag(config=True)
207 ).tag(config=True)
210
208
209 enable_history_search = Bool(True,
210 help="Allows to enable/disable the prompt toolkit history search"
211 ).tag(config=True)
212
211 @observe('term_title')
213 @observe('term_title')
212 def init_term_title(self, change=None):
214 def init_term_title(self, change=None):
213 # Enable or disable the terminal title.
215 # Enable or disable the terminal title.
@@ -271,7 +273,7 b' class TerminalInteractiveShell(InteractiveShell):'
271 history=history,
273 history=history,
272 completer=IPythonPTCompleter(shell=self,
274 completer=IPythonPTCompleter(shell=self,
273 patch_stdout=patch_stdout),
275 patch_stdout=patch_stdout),
274 enable_history_search=True,
276 enable_history_search=self.enable_history_search,
275 style=self.style,
277 style=self.style,
276 mouse_support=self.mouse_support,
278 mouse_support=self.mouse_support,
277 **self._layout_options()
279 **self._layout_options()
General Comments 0
You need to be logged in to leave comments. Login now