(bug): Fix multi-subscript skipped over closing brace #14

Closed
mohkale wants to merge 1 commits from misc into master
mohkale commented 2021-06-06 19:06:11 +00:00 (Migrated from github.com)

Before if you tried to do x5 -> x_5 and then x_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.

Before if you tried to do `x5` -> `x_5` and then `x_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.
ymarco commented 2021-06-07 18:16:03 +00:00 (Migrated from github.com)

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.

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.
mohkale commented 2021-06-07 18:19:52 +00:00 (Migrated from github.com)

@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.

@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.
ymarco commented 2021-06-07 18:26:18 +00:00 (Migrated from github.com)

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.

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

Sign in to join this conversation.
No description provided.