feat(completion): add Fish shell completions #1019
Open
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add Fish Shell Completions for Mutt-Wizard
Summary
This PR adds Fish shell completion support for the
mw(mutt-wizard) command. The implementation includes comprehensive tab-completion options for all available command flags and subcommands, enhancing the user experience for Fish shell users.Files Changed
1. Makefile
Modified the installation and uninstallation process to include Fish shell completions:
2. completion/mw.fish (New File)
Created a new Fish shell completion file that provides:
-a,-l,-d, etc.)-a(add email address) command-Dand-yflags by parsing the output ofmw -lReason for Changes
Fish shell is a popular alternative to Bash and Zsh that offers advanced features like autosuggestions and robust tab completion. This change improves the user experience for Fish shell users by providing the same level of command completion that was previously only available for Zsh users.
Impact of Changes
mwcommandTest Plan
make installmake uninstallproperly removes the Fish completion fileAdditional Notes
The Fish completion file follows the same pattern as the existing Zsh completion, but uses Fish's specific completion syntax. The implementation is comprehensive and covers all command options available in the
mwtool.