shabiel / VPE

Victory Programmer Environment (used in M code Development; esp. for VISTA)
Other
11 stars 5 forks source link

ESC-G should be re-implemented to use Block Mode #30

Closed shabiel closed 5 years ago

shabiel commented 7 years ago

ESC-G should start the block, and ESC-G should close the block.

gkreis commented 5 years ago

I looked at this and I think it is smarter to have esc-G scan from the cursor BACK to the left until it sees the ^ of the global reference, rather than the cumbersome esc-G on the ^ and then again on the end position (which might be a comma to include one or more subscripts). That would be more like esc-R and the way it scans left if needed to pick up a line label.

Right now, it works with a single esc-G when on the ( of the reference, but it needs to work if on a comma which means to include the literal subscript (only meaningful for literal subscript(s)).

We would need to change the docs to explain the new approach.

gkreis commented 5 years ago

I really like the new implementation!

shabiel commented 5 years ago

Implemented in c6516a