Repository navigation
Conversation
Implement auto-completion support for terraform aliases (`t`, `tapply`, `tplan`, `tinit`, `tfmt`). - Since the terraform CLI binary (`complete -C`) does not support flag completion out of the box, intercept completions starting with `-` to provide static suggestions for common flags of the relevant subcommand. - Fallback to delegating completions to the registered terraform specification, carefully translating context arguments (shifting `cur`/`prev`), parsing quoted complete paths, and properly restoring shell completion environments.
Implement auto-completion support for terraform aliases (`t`, `tapply`, `tplan`, `tinit`, `tfmt`). - Since the terraform CLI binary (`complete -C`) does not support flag completion out of the box, intercept completions starting with `-` to provide static suggestions for common flags of the relevant subcommand. - Fallback to delegating completions to the registered terraform specification, carefully translating context arguments (shifting `cur`/`prev`), parsing quoted complete paths, and properly restoring shell completion environments.
Address review feedback for the terraform alias completion function: - Add an early guard to return 1 when COMP_CWORD is 0, preventing pointing at the wrong expanded word during command token completion. - Verify the existence of the delegated completion function (real_func) using [_omb_util_function_exists](cci:1://file:///home/g56147/.oh-my-bash/lib/utils.sh:118:0-120:1) before executing it. - Remove the unused local variable `prev` to clean up dead code.
- Add early return guard when `COMP_CWORD == 0` to prevent incorrect word shifting during command-token completion. - Verify delegated function existence using [_omb_util_function_exists](cci:1://file:///home/g56147/.oh-my-bash/lib/utils.sh:118:0-120:1) before invocation. - Clean up unused `prev` local variable block.
feat(tmux): add bash completion for tmux_resume
feat(terraform): add flag auto-completion for subcommand aliases
Introduces a dual Bash/Zsh-compatible autocomplete script at custom/devin-fed.sh. Supports fast models completion using models.cache (loaded in 4ms), dynamic active sessions completion for `--resume` / `-r`, and full hierarchical completion for subcommands and flags. Generated with [Devin](https://devin.ai) Co-Authored-By: Devin <158243242+devin-ai-integration[bot]@users.noreply.github.com>
… time' instead of just 'resume'
…ectory
Allow tds to accept an optional suffix argument so users can create
multiple tmux sessions for the same directory (e.g., 'tds codex',
'tds claude'). The session name format becomes
{dirname}-{hash}-{suffix} when a suffix is provided.
Also add tdss alias as a dedicated command for the same functionality.
PR Summary by QodoSupport suffixed tmux directory sessions and session completion
AI Description
Diagram
High-Level Assessment
Files changed (2)
|
Code Review by Qodo
1.
|
- Use 'md5 -q' on macOS/BSD to get raw digest instead of formatted output - Consolidate duplicated hashing logic into _omb_plugin_tmux_dir_hash helper - Make tdss an alias to tds (single implementation) - Fix completion to compare escaped session names against escaped cur
196b41d to
3343409
Compare
Summary
Allow
tdsto accept an optional suffix argument so users can create multiple tmux sessions for the same directory (e.g.,tds codex,tds claude). The session name format becomes{dirname}-{hash}-{suffix}when a suffix is provided.Also added
tdssalias as a dedicated command for the same functionality.Changes
plugins/tmux/tmux.plugin.bash: Updated_omb_plugin_tmux_directory_sessionfunction to accept optional suffix argument; added_omb_plugin_tmux_directory_session_suffixfunction andtdssaliasplugins/tmux/README.md: Updated documentation fortdsand addedtdssaliasTesting
Tested locally with oh-my-bash:
tdscreates session{dirname}-{hash}tds codexcreates session{dirname}-{hash}-codextds claudecreates session{dirname}-{hash}-claudetdss codexworks the same way