mirror of
https://github.com/ohmyzsh/ohmyzsh.git
synced 2026-01-23 02:35:38 +01:00
feat(claudecode): update completion actions and clean up README
- Added new actions for `claude-quick` including 'optimize', 'refactor', 'test', and 'docs'. - Removed redundant code from the `_claude_quick` function to streamline the completion process. - Cleaned up the README by removing outdated usage examples for `claude-quick` to reflect the latest features.
This commit is contained in:
parent
f02139ac12
commit
6e2c0e721e
2 changed files with 4 additions and 232 deletions
|
|
@ -123,7 +123,6 @@ _claude_tools() {
|
|||
_describe 'tools' tools
|
||||
}
|
||||
|
||||
_claude "$@"
|
||||
EOF
|
||||
|
||||
# Save current version to cache
|
||||
|
|
@ -241,6 +240,10 @@ _claude_quick() {
|
|||
'debug:Debug the given code or error'
|
||||
'review:Review the given code'
|
||||
'fix:Fix the given issue'
|
||||
'optimize:Optimize the given code'
|
||||
'refactor:Refactor the given code'
|
||||
'test:Write tests for the given code'
|
||||
'docs:Write documentation for the given code'
|
||||
)
|
||||
|
||||
_describe 'actions' actions
|
||||
|
|
@ -441,23 +444,6 @@ _claude_pipe_enhanced() {
|
|||
_describe 'input formats' formats
|
||||
}
|
||||
|
||||
# Update claude-quick completion
|
||||
_claude_quick() {
|
||||
local -a actions
|
||||
actions=(
|
||||
'explain:Explain the given content'
|
||||
'debug:Debug the given code or error'
|
||||
'review:Review the given code'
|
||||
'fix:Fix the given issue'
|
||||
'optimize:Optimize the given code'
|
||||
'refactor:Refactor the given code'
|
||||
'test:Write tests for the given code'
|
||||
'docs:Write documentation for the given code'
|
||||
)
|
||||
|
||||
_describe 'actions' actions
|
||||
}
|
||||
|
||||
compdef _claude_quick claude-quick
|
||||
compdef _claude_git claude-git
|
||||
compdef _claude_project claude-project
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue