3 ms·
Consider taking a look at: https://orbitalquark.github.io/textadept/ https://orbitalquark.github.io/textadept/. It's a rather "old kid on the block" actually, i
by akavel 5y ago
Consider taking a look at: https://orbitalquark.github.io/textadept/ https://orbitalquark.github.io/textadept/. It's a rather "old kid on the block" actually, it's quite minimal ("Relentlessly optimized for speed and minimalism over the years, the editor consists of less than 2000 lines of C code and less than 4000 lines of Lua code") and it is crazy extensible; actually in my experience trying it, I found it too much extensible - it was too easy for me to break it while trying to configure it. Anyway, IMO it's a project definitely worth taking a look at. (Note: if it's not immediately obvious from the website, it does have a terminal UI version.)
- andai 5y agoSee also: Lite, written in C and Lua https://news.ycombinator.com/item?id=23126458 https://news.ycombinator.com/item?id=23126458 I use the lite-xl fork https://lite-xl.com/ https://lite-xl.com/
- girvo 5y agoIndeed, Textadept was one of my go-to editors for this, and scripting it in Lua was fantastic! But again, it's not quite what I am after, and I'm obviously explaining it badly :) Basically, I'd like the editor to understand the AST of the language(s, including mixed-language files, which is really hard) and be able to hook into parts of that AST to say "while this is a string, it's really this weird DSL that hooks into Javascript, so look for symbols here, here and here". Its definitely possible to make Vim, Emacs and TA work this way, but its a lot more work than I had in mind, when I tried to extend them (well, not Emacs. It might be best at this, I'm just not a good emacs user) to achieve what I was after at the time, which was understanding the dependency injection annotation patterns from Symfony in PHP. I think one could get pretty close with LSPs and the powerful AST parsers we have nowadays. Though doing it fast might be difficult!