Hi. . . I discovered the same thing that another user discovered with respect to reindent
- namely, it works much like emacs so I wanted to bind reindent
to a key but lo’ and behold, it seems to already be bound?
{ "keys": ["tab"], "command": "replace_completion_with_next_completion", "context":
[
{ "key": "last_command", "operator": "equal", "operand": "insert_best_completion" },
{ "key": "setting.tab_completion", "operator": "equal", "operand": true }
]
},
**{ "keys": ["tab"], "command": "reindent", "context":**
[
{ "key": "setting.auto_indent", "operator": "equal", "operand": true },
{ "key": "selection_empty", "operator": "equal", "operand": true, "match_all": true },
{ "key": "preceding_text", "operator": "regex_match", "operand": "^$", "match_all": true },
{ "key": "following_text", "operator": "regex_match", "operand": "^$", "match_all": true }
]
},
Actually, there are a lot more context bindings for tab, but trying to limit the sprawl.
So it looks to me that reindent
is already bound to tab but in practice it doesn’t seem to work. I checked my settings and auto_indent
is set to true
. Am I misunderstanding this binding?