Closed alecStewart1 closed 5 years ago
Sorry I'm just getting to this now. For some reason I didn't get any notification about the issue. Anyway, in my personal config, I bind :
to M-x
, which I find to be a lot more powerful than ex-mode, even though they have nothing to do with each other. Have you seen the function (eldoc-eval-expression)
? It doesn't place the expression in a list, but it allows you to evaluate arbitrary elisp and kind of looks like ex-mode. It also has completion and history already worked out :) The default binding is M-:
. If you think it would be an appropriate default binding for :
in normal mode, it would be very quick to add it. I'm not super enthusiastic about re-implementing ex-mode, though.
This can run a command at
:
in a minibuffer. But it's very very very basic.It's incredibly cheap. I've been working on creating a function that makes use of
cond
andstring=
to run vim-like commands (like ifbn
orbuffer-next
are found will runnext-buffer
). Some of those, likee
/db
/cd
and any!
commands woud need some wrapper functions, but for now the above function works fine sans completions and history.