Closed leahneukirchen closed 3 years ago
Are you using the latest(ish) commit from master
?
Yeah it's kinda frustrating the current alias support. At first I changed it so it would work kinda like bash aliases,
so you would be able to: alias cmd "long-command some-arg some-another-arg"
.
But then we lose info on auto complete.
There's a chance we can fix this by only changing the auto-complete function.
Otherwise, we may have to revert to aliases being only alternative command names.
Yes, latest HEAD. But I think you could expand the alias internally and then do the completion? E.g. zsh does this too.
You're right, that would work. However I'd like to first try a zero-copy solution! If that fails, I'll consider expanding any alias on each keystroke.
I guess expanding after the first time space is pressed would work, too?
I'll take a look into it in the next few days and then get back here
I think I got it working on 073c118 Please reopen if needed!
Just a minor thing, but would be nice to have (and probably not hard): When I use
:open ...
I get file completion, but when I use:o ...
I don't. (Same for self-defined aliases.)