[NO-ISSUE] Add bash autocompletion for markdown-runner#15
Merged
Conversation
Member
|
This branch has conflicts, can you rebase it? |
010b5eb to
8f4576a
Compare
Member
Author
|
@brusdev I've performed the rebase and overhaul, now it's tested with a new regression test suite. |
8f4576a to
80ca3f9
Compare
9b666e0 to
e378e39
Compare
brusdev
reviewed
Sep 30, 2025
e378e39 to
4de86bb
Compare
Add intelligent bash completion for markdown-runner with advanced features: - **Stage/chunk completion** - complete stage names and chunk IDs from markdown files - **File@stage format** - complete file-specific stages (e.g., `README.md@setup`) - **Smart context detection** - different behavior for files vs directories vs recursive mode - **Flag completion** - all command-line flags with intelligent filtering - **Enhanced help** - categorized help with descriptions (`markdown-runner -<TAB>`) - **Flag filtering** - excludes already-used and incompatible flags - **Directory-aware** - shows file@ completions in directory contexts - **Smart nospace** - intelligent trailing space behavior for optimal chaining - **Recursive support** - adapts completions based on `-r/--recursive` flag - **File discovery** - automatically finds and parses markdown files for stages - **191 tests across 18 test suites** - complete coverage of all scenarios - **CI integration** - tests run automatically in GitHub Actions - **Regression prevention** - ensures reliability of completion features ```bash ./completion/install.sh markdown-runner -B <TAB> # Shows stages and file@ options markdown-runner -B setup/<TAB> # Shows chunks in setup stage markdown-runner test/cases/ -B <TAB> # Shows file@ completions for directory markdown-runner -<TAB> # Shows enhanced help with descriptions ``` - Usage documentation in `completion/README.md` - Test suite documentation in `completion/tests/README.md` - Updated main README with completion examples and features This adds a completion system that significantly improves the user experience when working with markdown-runner's debugging and execution features.
4de86bb to
66aff42
Compare
brusdev
approved these changes
Oct 1, 2025
Member
|
LGTM the autocompletion is a very useful feature. |
Member
Author
|
Thanks you for you review @brusdev I really appreciate your feedback |
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.
Add bash completion for markdown-runner with advanced features:
Core Completion Features
README.md@setup)markdown-runner -<TAB>)Advanced Capabilities
-r/--recursiveflagQuality Assurance
Installation & Usage
Documentation
completion/README.mdcompletion/tests/README.mdThis adds a completion system that significantly improves the
user experience when working with markdown-runner's debugging and execution features.