Like I think FFXIV is a good thing to take inspiration from, if you've got enough buttons to support it - a bunch of different layers with different bindings, possibly configurable, accessed by a combination of buttons...
And I feel like with static analysis tools providing good auto completion, and if you don't need to input new tokens for variable names except now and then... But the question is how do you consistently navigate auto completion options...
@shoofle maybe a system like cursorless/talon (with less commands maybe) might also be useful