Beispiel #1
0
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.history = setup_history()
     self.pt_completer = PromptToolkitCompleter(self.completer, self.ctx)
     self.key_bindings_manager = KeyBindingManager(
         enable_search=True, enable_abort_and_exit_bindings=True)
     load_xonsh_bindings(self.key_bindings_manager)
Beispiel #2
0
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.history = setup_history()
     self.pt_completer = PromptToolkitCompleter(self.completer, self.ctx)
     self.key_bindings_manager = KeyBindingManager(
         enable_auto_suggest_bindings=True,
         enable_search=True,
         enable_abort_and_exit_bindings=True,
         enable_vi_mode=Condition(lambda cli: builtins.__xonsh_env__.get('VI_MODE')),
         enable_open_in_editor=True)
     load_xonsh_bindings(self.key_bindings_manager)
 def __init__(self, **kwargs):
     super().__init__(**kwargs)
     self.history = setup_history()
     self.pt_completer = PromptToolkitCompleter(self.completer, self.ctx)
     self.key_bindings_manager = KeyBindingManager()
     load_xonsh_bindings(self.key_bindings_manager)