chrisant996 / clink

Bash's powerful command line editing in cmd.exe
https://chrisant996.github.io/clink/
GNU General Public License v3.0
3.6k stars 142 forks source link

Add `onalias` callback in argmatchers. #638

Closed chrisant996 closed 3 months ago

chrisant996 commented 3 months ago

It can return a string to replace the current word, and a Boolean indicating whether to behave similar to :chaincommand().

For example, a git argmatcher could use this to expand aliases with more than one word (e.g. delbranch = branch -D) and have completions work appropriately.