Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Cancel completion when you want to execute command #74

Open
alber70g opened this issue Jan 7, 2022 · 3 comments
Open

Cancel completion when you want to execute command #74

alber70g opened this issue Jan 7, 2022 · 3 comments

Comments

@alber70g
Copy link

alber70g commented Jan 7, 2022

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?

  • type gco
  • type <space>
  • replaces gco with git checkout
  • type <cmd> + <z>
  • replaces git checkout with gco
@alber70g
Copy link
Author

alber70g commented Jan 7, 2022

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
Copy link
Owner

jhillyerd commented Jan 7, 2022

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
Copy link
Owner

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants