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] Support for Partial Completions - e.g. File/Directory Paths #22

Open
mattoculus opened this issue Oct 15, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@mattoculus
Copy link

Feature Request

Hello! Thanks so much for forking and maintaining this package. I'm looking at building a shell that simulates a local directory structure, so that a user would be able to "cd /etc/passwd" etc. their way around.

I noticed completer/file.go exists, but from testing it only seems to complete files/directories in the immediate directory.

I think this would need to be supported by having each prompt.Suggest be able to indicate its a partial completion, so when once it's completed it would re-suggest the next path down. So a few questions, if you don't mind:

  1. Is this possible now and I've just missed something?
  2. If not, is this something this package maintainers would be willing to support?
  3. Are you able to give some pointers to the code on how to support his, i could look submitting a pull-request myself.

Thanks!

@mattoculus mattoculus added the enhancement New feature or request label Oct 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant