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

Improvements to command/alias tab completion #27

Merged
merged 1 commit into from
Jul 25, 2024
Merged

Conversation

ianthomas23
Copy link
Member

We already had some tab completion of commands and aliases, this improves the situation with:

  1. Parses the string from the command line to correctly identify if we are trying to complete a command or not, such as when following a pipe, etc.
  2. Prints the possible matches in columns.
  3. Prints all of the commands and aliases if you tab complete an empty string.
  4. If all of the possible matches start with the same text that is longer than the entered command, updates the entered command to this start text.

Still need to add tab completion of filenames.

@ianthomas23 ianthomas23 added the enhancement New feature or request label Jul 24, 2024
@ianthomas23 ianthomas23 merged commit 752700b into main Jul 25, 2024
4 checks passed
@ianthomas23 ianthomas23 deleted the tab-complete-cmd branch July 25, 2024 06:40
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

Successfully merging this pull request may close these issues.

1 participant