1whatleytay / saturn

A modern MIPS interpreter and assembler.
MIT License
29 stars 6 forks source link

Using codemirror as an editor component #25

Open milomg opened 3 months ago

milomg commented 3 months ago

I was exploring using codemirror directly as an editor component because it has built in support for a bunch of useful features, and plugins for more, such as: code folding, multiselect (cmd-d to select the next instance of a word), block selection, vim mode, etc.

https://github.com/1whatleytay/saturn/compare/main...modderme123:saturn:codemirror

I thought I'd create this issue to discuss whether it was worth continuing to try and integrate codemirror

Block selection:

Screenshot 2024-03-29 at 8 36 05 PM

Highlighting next instance (and multi-editing next instance):

Screenshot 2024-03-29 at 8 36 39 PM