Add literal tab insert to prompt tk keybinding

This commit is contained in:
Gil Forsyth 2015-10-19 23:30:48 -04:00
parent fdab4ed280
commit eed1626be0

View file

@ -32,3 +32,11 @@ def load_xonsh_bindings(key_bindings_manager):
indent instead of autocompleting.
"""
event.cli.current_buffer.insert_text(env.get('INDENT'))
@handle(Keys.BackTab)
def _(event):
"""
Insert literal tab on Shift+Tab instead of autocompleting
"""
event.cli.current_buffer.insert_text(env.get('INDENT'))