Skip to content

Add PowerShell ArgumentCompleter #1052

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

twobiers
Copy link

Resolves #344 ,
Reopens #419

I have tried to implement an equivalent Tab completion for PowerShell, which was to some point successful.
It works like the following:

  • Use the default directory completion when no arguments are provided
  • If an argument is provided, use it as zoxide query input

Unfortunately it doesn't seem to be possible to run interactive queries in PowerShell within the argument completer, therefore I don't know whether it is possible to implement the "space+tab" completion.
Tested on Windows 11 in PowerShell just today.

This GIF shows, how it works:
WindowsTerminal_caWG2ym896

@ajeetdsouza
Copy link
Owner

Thanks! I think it may be possible to add interactive completions as well, but I'll need a week or two till I'm able to get my hands on a Windows machine to test this.

@benzaria
Copy link
Contributor

Thanks! I think it may be possible to add interactive completions as well, but I'll need a week or two till I'm able to get my hands on a Windows machine to test this.

u may use pwsh on any system, no 🤔

@ajeetdsouza
Copy link
Owner

u may use pwsh on any system, no 🤔

That is correct, but the terminal on Windows doesn't support a lot of the features that most macOS / Linux terminals do, so it's usually advisable to test out features like this on both systems.

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

Successfully merging this pull request may close these issues.

Tab completions for PowerShell
3 participants