davidje13 / SequenceDiagram

Javascript tool for generating sequence diagrams from code
https://sequence.davidje13.com/
GNU Lesser General Public License v3.0
120 stars 38 forks source link

Pre-select templated regions when adding from the library #35

Closed davidje13 closed 6 years ago

davidje13 commented 6 years ago

Extracted from #14

After adding a template such as:

{Agent1} -> +{Agent2}
-{Agent2} --> {Agent1}

It would be nice to pre-select the {Agent1} text. As the user edits this, both occurrences of {Agent1} should update. Once the user presses return, the selection should advance to the {Agent2} text. At any point, the user should be able to press escape, click elsewhere, or use the cursor keys to abandon this templated editing.

davidje13 commented 6 years ago

The editor will now progress through all library parameters as enter or tab is pressed. Pressing escape or moving the cursor outside the parameter range will cancel this mode.