I enjoy sublime text for writing latex documents. I see from other topics that nested snippets are currently not supported properly. If ‘fr’ +tab goes to \frac{$1}{$2} and ‘x1’+tab goes to x_1 m then unfortnuately ‘fr’+tab+‘x1’+tab does not go to \frac{x_1}{$2} but goes to \frac{x1}{ | } with our cursor in the second bracket
One possible solution is to have one key for expanding snippets and one key for jumping to the next $n within a snippet. I have tried to do this by changing the keybindings but it has not worked. Should this work, have i simply not changed the correct keybinding?
To change the key binding: I went Preferences > keybindings then in searched for ‘tab’ in the left hand box. I found which entry looked most like it was for advancing within in a snippet, then I coppied it and changed the “tab” to enter
{ "keys": ["enter"], "command": "next_field", "context":
[
{ "key": "has_next_field", "operator": "equal", "operand": true }
]
}
I also tried using various key combindations of ctrl+shift+(0-9) in case the reason it didn’t work was because of some special bindings for ‘enter’.
Then I pressed save. But ‘tab’ still advanced within in the snippets and enter did not.