kubectx icon indicating copy to clipboard operation
kubectx copied to clipboard

Feature request: add PowerShell tab-completion

Open NileshGule opened this issue 2 years ago • 8 comments

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 avatar Aug 25 '21 02:08 NileshGule

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

ahmetb avatar Aug 25 '21 16:08 ahmetb

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

image

NileshGule avatar Aug 25 '21 16:08 NileshGule

Which shell is that?

ahmetb avatar Aug 25 '21 17:08 ahmetb

I am running Windows Terminal with Powershell

NileshGule avatar Aug 26 '21 06:08 NileshGule

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 avatar Aug 26 '21 15:08 ahmetb

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.

NileshGule avatar Aug 27 '21 09:08 NileshGule

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 avatar Aug 27 '21 16:08 ahmetb

Thanks @ahmetb for accepting the feature request. 👍🙏

NileshGule avatar Aug 28 '21 14:08 NileshGule