Fix ZSH autocommpletions#1
Conversation
With the help of ClaudeAI (and lots of patience) Now `just -g <TAB>` is working as expected including for modules, so one can run `just -g mod<TAB>` and it will be autocompleted to `just -g module::` and you can then `just -g module::<TAB>` to see all the available recipes.
|
Caution Review failedFailed to post review comments 📝 WalkthroughWalkthroughThis change introduces runtime detection and propagation of the Changes
Sequence Diagram(s)sequenceDiagram
participant User as User / Shell
participant Script as Completion Script
participant Just as Just Binary
rect rgb(220, 240, 220)
Note over User,Just: Previous Behavior (Default Justfile Only)
User->>Script: Complete recipe (possibly with -g flag)
Script->>Just: just --summary
Just->>Just: Search local justfile only
Just-->>Script: Recipe list
Script-->>User: Completion candidates
end
rect rgb(240, 240, 220)
Note over User,Just: New Behavior (Global Justfile Aware)
User->>Script: Complete recipe with -g/--global-justfile
Script->>Script: Detect -g/--global-justfile in args
alt Global flag detected
Script->>Just: just --global-justfile --summary
Just->>Just: Search global justfile
else No global flag
Script->>Just: just --summary
Just->>Just: Search local justfile
end
Just-->>Script: Recipe list (respecting context)
Script-->>User: Completion candidates
end
Estimated Code Review Effort🎯 3 (Moderate) | ⏱️ ~22 minutes Poem
Pre-merge checks and finishing touches❌ Failed checks (1 warning)
✅ Passed checks (2 passed)
✨ Finishing touches
🧪 Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. Comment |
|
@coderabbitai generate docstrings |
✅ Actions performedInitiated docstring generation; will generate only if new commits exist. |
|
Caution Docstrings generation - FAILED No docstrings were generated. |
Working autocomplete for ZSH
With the help of ClaudeAI (and lots of patience)
Now
just -g <TAB>is working as expected including for modules, so one can runjust -g mod<TAB>and it will be autocompleted tojust -g module::and you can thenjust -g module::<TAB>to see all the available recipes.Summary by CodeRabbit
-g/--global-justfileflag, ensuring recipes and variables are correctly completed when using a global justfile.✏️ Tip: You can customize this high-level summary in your review settings.