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

Feature request: add PowerShell tab-completion #317

Open
NileshGule opened this issue Aug 25, 2021 · 8 comments
Open

Feature request: add PowerShell tab-completion #317

NileshGule opened this issue Aug 25, 2021 · 8 comments

Comments

@NileshGule
Copy link

I appreciate the fuzzy search feature kubectx. Please enable the support for auto-complete or tab-completion for delete command when using kubectx -d

@NileshGule NileshGule changed the title Enable auto-complete / tab-completion for kubectx delete command Feature request : Enable auto-complete / tab-completion for kubectx delete command Aug 25, 2021
@ahmetb
Copy link
Owner

ahmetb commented Aug 25, 2021

This already should be working. Which version you're on and how did you install it?

@NileshGule
Copy link
Author

@ahmetb I am currently running 0.9.4 on Windows
I installed it using the Chocolatey package

image

@ahmetb
Copy link
Owner

ahmetb commented Aug 25, 2021

Which shell is that?

@NileshGule
Copy link
Author

I am running Windows Terminal with Powershell

@ahmetb
Copy link
Owner

ahmetb commented Aug 26, 2021

Do we have any other shell completion for PowerShell that makes you ask one specifically for -d? :)

I don't think we support shell completion on Windows terminals yet.

@ahmetb ahmetb changed the title Feature request : Enable auto-complete / tab-completion for kubectx delete command Feature request : Enabl / tab-completion for kubectx delete command Aug 26, 2021
@ahmetb ahmetb changed the title Feature request : Enabl / tab-completion for kubectx delete command Feature request: Enable PowerShell tab-completion for kubectx delete command Aug 26, 2021
@NileshGule
Copy link
Author

I have the shell completion for Powershell itself
https://youtu.be/I0iIZe0dUNw

Since we already have the names of the cluster context in the case of kubectx and namespace names for kubens it would be great to have the tab completion support.

@ahmetb
Copy link
Owner

ahmetb commented Aug 27, 2021

Powershell itself might support completion scripts, but we don't have anything implemented for PowerShell as you can see in the README. Completions are limited to bash/fish/zsh shells at the moment.

I am changing the title to reflect what you actually wanted to say. :)

@ahmetb ahmetb changed the title Feature request: Enable PowerShell tab-completion for kubectx delete command Feature request: add PowerShell tab-completion Aug 27, 2021
@NileshGule
Copy link
Author

Thanks @ahmetb for accepting the feature request. 👍🙏

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

No branches or pull requests

2 participants