Sorry, I may be thinking a bit too loud here:
- I wonder what the added complexity that would be needed to the codebase just for that…
- Unless I’m mistaken it goes against the original design: github.com/mawww/kakoune/blob/master/doc/design.asciidoc#unified-interactive-use-and-scripting, and with threads like “kakoune-needs-a-real-scripting-language”, I begin to smell the history of Vimscript (ex, execute, variable and control flow)… which triggers me (PTSD, sorry) toward this kind of reaction The Inner Platform Effect.
- So that you have minimal
execute-keys
andevaluate-commands
andhooks
to deal with ,and/or when doing logic withsh
become cumbersome, IMVHO IPC solidification to access the partial states of Kakoune like selections, registers, etc., and just enough abstraction like unification of registers-options-hooks, are inspiring.