feat: Add shell completion support for Bash, Zsh, and Fish#1
Merged
code-retriever merged 1 commit intoDec 4, 2025
Merged
Conversation
Implement tab completion functionality for bmc command across all major shells. Users can now press TAB to autocomplete bookmark names, commands, and tags. Features: - Bash completion (completions/bmc.bash) - Zsh completion with descriptions (completions/_bmc) - Fish completion with visual feedback (completions/bmc.fish) - Bookmark name completion for 'go', 'remove', 'rename' commands - Tag completion for 'list --tag' command - Full command and alias support - Test suite for completion functionality Implementation: - Leverages existing 'bmc list' output (no core changes) - Uses NO_COLOR=1 for clean parsing - Handles all command aliases (g/go, rm/remove, etc.) - Support for 'bm' command alias Usage: bmc g <TAB> # Show bookmark list bmc g sam<TAB> # Complete to 'sample-project' bmc list --tag <TAB> # Show available tags Setup instructions added to README.md for all three shells.
6 tasks
Owner
|
Awesome work! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
Implement tab completion functionality for the
bmccommand across all major shells (Bash, Zsh, Fish).Features
Bash completion (
completions/bmc.bash)list --tagZsh completion (
completions/_bmc)_argumentsFish completion (
completions/bmc.fish)~/.config/fish/completions/Test suite (
tests/test_completion.bats)Implementation
bmc listoutput (no core code changes)NO_COLOR=1for clean parsingg/go,rm/remove, etc.)bmcommand aliasUsage Examples
Setup
Setup instructions for all three shells have been added to README.md.
Bash
Zsh
Fish
Test Plan
Changes
completions/bmc.bash(101 lines)completions/_bmc(123 lines)completions/bmc.fish(87 lines)tests/test_completion.bats(108 lines)README.md(61 lines added)Total: 480 insertions