klembot / twinejs

Twine, a tool for telling interactive, nonlinear stories
https://twinery.org
GNU General Public License v3.0
2.02k stars 300 forks source link

2.4: Upgrade to CodeMirror 6? #957

Open webbedspace opened 3 years ago

webbedspace commented 3 years ago

https://codemirror.net/6/ – This is important for me because the Harlowe mode has always been a bit sluggish for big passages, and while I'm doing some optimisation on that front right now, I think CM 6 has some speedups and API improvements (in particular, its focus away from a single-line document model toward a more intuitive single-string representation) that'd help. Also it has some built-in stuff that I wouldn't have to supply my own implementation for (such as tooltips). That being said, there's no ETA for stable release right now (despite the API being stable) and of course you'll have to rewrite "Extending Twine" to mention the new API.

klembot commented 3 years ago

When it is not in beta, I think it's worth exploring.

klembot commented 3 years ago

(It being CM 6.)

webbedspace commented 2 years ago

UPDATE: Codemirror 6 is now stable.

klembot commented 2 years ago

Yeah, I want to explore it after things settle down with 2.4. I think it will be a breaking change for format extensions.