I'm working on a little music live coding environment, and I'd like to integrate a text editor (currently it's just a REPL and I use VSCode to send text to it).
It doesn't need to do much for now, "just" run on all platforms and allow me to use Ctrl+Return to evaluate code.
I've thought about terminal text editors like Kiro, but reliably getting the Ctrl+Return key combination to work on a variety of terminal editors seems non-trivial. Plus, I'm not sure how they'd perform on MS Windows.
I saw that Nannou has a TextEdit widget, but I only looked into it briefly and haven't seen a working example so far.
So, does anyone have an idea what one could use here ? All hints appreciated !
I'm working on a little music live coding environment, and I'd like to
integrate a text editor (currently it's just a REPL and I use VSCode
to send text to it).
It doesn't need to do much for now, "just" run on all platforms and
allow me to use Ctrl+Return to evaluate code.
I've thought about terminal text editors like Kiro, but reliably
getting the Ctrl+Return key combination to work on a variety of
terminal editors seems non-trivial. Plus, I'm not sure how they'd
perform on MS Windows.
Thanks for the input I tried the conrod widget yesterday ... while it seems promising it doesn't currently allow to access the cursor positions/selections etc.
If I say "easy" I guess i mean "takes as much or less time than creating a custom mode for VSCode/Emacs/?". Not sure if that's realistic ...
Hmm the easiest way I found so far is FLTK-RS ... even comes with a working, notepad-like editor example.
Looks a bit dated and well ... bindings. But I guess there's always some compromise.
In case anyone is interested, I started playing around with egui and found that the text edit widget can be customized to my needs easily enough (right now still working with a fork).