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

`compgen` completions tracking issue #1

Open
JoshMcguigan opened this issue May 18, 2019 · 0 comments

Comments

Projects
None yet
1 participant
@JoshMcguigan
Copy link
Owner

commented May 18, 2019

The compgen shell built-in provides helper methods for returning completions. Presently, shell_completion provides a naive implementation of only a small fraction of the completions provided by compgen. This issue tracks progress toward shell_completion achieving feature parity.

source of compgen functionality

  • alias - Alias names
  • arrayvar - Array variable names
  • binding - Readline key binding names
  • builtin - Names of shell builtin commands
  • command - Command names
  • directory - Directory names (an incomplete implementation of this exists within `shell_completion)
  • disabled - Names of disabled shell builtins
  • enabled - Names of enabled shell builtins
  • export - Names of exported shell variables
  • file - File names (an incomplete implementation of this exists within `shell_completion)
  • function - Names of shell functions
  • group - Group names
  • helptopic - Help topics as accepted by the help builtin
  • hostname - Hostnames, as taken from the file specified by the HOSTFILE shell variable
  • job - Job names, if job control is active
  • keyword - Shell reserved words
  • running - Names of running jobs, if job control is active
  • service - Service names
  • setopt - Valid arguments for the -o option to the set builtin
  • shopt - Shell option names as accepted by the shop builtin
  • signal - Signal names
  • stopped - Names of stopped jobs, if job control is active
  • user - User names
  • variable - Names of all shell variables

Pull requests adding any of the above would be very much appreciated. Feel free to reach out in this issue thread if you have any questions about how to get started.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.