(bug): Fix multi-subscript skipped over closing brace #14
No reviewers
Labels
No Label
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No Milestone
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: tec/LaTeX-auto-activating-snippets#14
Loading…
Reference in New Issue
No description provided.
Delete Branch "misc"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Before if you tried to do
x5
->x_5
and thenx_51
->x_{51}
your point would be moved outside of the closing brace so if you wanted
to add more to the body of the subscript you couldn't. Now you're kept
in there and have to exit the closing brace manually.
This isn't my use case :P
I persnally have a C-_ keybind that expands a _{$1}$0 yasnippet which I use for writing long prefixes. This "extended subscript" snippets are a care-free way for me to insert 1-2 letter scripts.
Maybe having __ expand to _{$1}$0 in laas would solve both our use cases? Using these 2-letter subscripts to write a long script like you want seems odd to me.
@ymarco
Okay, I see the intention here. Truth be told I was just experimenting with laas and wondered why 2 sub digits is OK but more seem to require movement beforehand. Thinking on it this does make more sense... in so-far as I doubt I'll be subscripting into the 100s.
This can be closed. Thnx.
My main use for these was symbolyzing matrix access ((A){ij} -> the matrix element in row i column j), where more than 2 indecies doesn't make much sense.
Allowing A123 to expand to A{123} with the curser after the braces isn't so bad, I just don't think it's so useful. But leaving the cursor inside the braces is annoying.
Pull request closed