jhillyerd / plugin-git

Git aliases plugin for the Fish shell (similar to oh-my-zsh git)
MIT License
607 stars 85 forks source link

Cancel completion when you want to execute command #74

Open alber70g opened 2 years ago

alber70g commented 2 years ago

I have some of my own commands that I don't want to be completed. However, sometimes it'd be nice to use.

Is there a way to "undo" the completion? Like auto-correct works in document editors?

alber70g commented 2 years ago

I found out that ctrl+z will undo the command. Unfortunately not cmd+z.

But it still doesn't undo e.g. gco into my own gco command

jhillyerd commented 2 years ago

Am I correct in thinking you are actually referring to abbreviations and not filename/argument completions? If so, the plugin only adds abbreviations when initially installed, so you can just run abbr -e gco to delete that particular abbreviation. I don't think it will come back until an upgrade or reinstall.

jhillyerd commented 2 years ago

You can also type command gco to run a binary and ignore functions with the same name, but it's not exactly ergonomic.