diff --git a/CLAUDE.md b/CLAUDE.md index d4797f4..949a9bb 100644 --- a/CLAUDE.md +++ b/CLAUDE.md @@ -70,7 +70,7 @@ Libraries are sourced in the order listed above (ui → args → config → ... Most adapters are defined declaratively in the **adapter registry** (`lib/adapters.sh`) using pipe-delimited entries. Custom adapters that need special logic remain as override files in `adapters/editor/` and `adapters/ai/`. -**Registry-defined adapters**: atom, cursor, emacs, idea, nvim, pycharm, sublime, vim, vscode, webstorm, zed (editors) and aider, auggie, codex, continue, copilot, gemini, opencode (AI). +**Registry-defined adapters**: antigravity, atom, cursor, emacs, idea, nvim, pycharm, sublime, vim, vscode, webstorm, zed (editors) and aider, auggie, codex, continue, copilot, gemini, opencode (AI). **Custom adapter files**: `adapters/editor/nano.sh`, `adapters/ai/claude.sh`, `adapters/ai/cursor.sh` — these implement `editor_can_open()`/`editor_open()` or `ai_can_start()`/`ai_start()` directly. diff --git a/README.md b/README.md index c376751..2f5ce8b 100644 --- a/README.md +++ b/README.md @@ -135,7 +135,7 @@ While `git worktree` is powerful, it's verbose and manual. `git gtr` adds qualit - **Simple commands** - Create and manage worktrees with intuitive CLI - **Repository-scoped** - Each repo has independent worktrees - **Configuration over flags** - Set defaults once, use simple commands -- **Editor integration** - Open worktrees in Cursor, VS Code, Zed, and more +- **Editor integration** - Open worktrees in Antigravity, Cursor, VS Code, Zed, and more - **AI tool support** - Launch Aider, Claude Code, or other AI coding tools - **Smart file copying** - Selectively copy configs/env files to new worktrees - **Hooks system** - Run custom commands after create/remove @@ -330,7 +330,7 @@ All configuration is stored via `git config`. For team settings, create a `.gtrc ### Quick Setup ```bash -# Set your editor (cursor, vscode, zed) +# Set your editor (antigravity, cursor, vscode, zed) git gtr config set gtr.editor.default cursor # Set your AI tool (aider, auggie, claude, codex, continue, copilot, cursor, gemini, opencode) diff --git a/completions/_git-gtr b/completions/_git-gtr index 83153ac..17c5c5b 100644 --- a/completions/_git-gtr +++ b/completions/_git-gtr @@ -125,7 +125,7 @@ _git-gtr() { elif (( CURRENT >= 5 )); then case "$words[3]" in editor) - _arguments '--editor[Editor to use]:editor:(atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed)' + _arguments '--editor[Editor to use]:editor:(antigravity atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed)' ;; ai) _arguments '--ai[AI tool to use]:tool:(aider auggie claude codex continue copilot cursor gemini none opencode)' diff --git a/completions/git-gtr.fish b/completions/git-gtr.fish index 564c5aa..2a3b351 100644 --- a/completions/git-gtr.fish +++ b/completions/git-gtr.fish @@ -92,7 +92,7 @@ complete -c git -n '__fish_git_gtr_using_command list' -l porcelain -d 'Machine- complete -c git -n '__fish_git_gtr_using_command ls' -l porcelain -d 'Machine-readable output' # Editor command options -complete -c git -n '__fish_git_gtr_using_command editor' -l editor -d 'Editor to use' -r -a 'atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed' +complete -c git -n '__fish_git_gtr_using_command editor' -l editor -d 'Editor to use' -r -a 'antigravity atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed' # AI command options complete -c git -n '__fish_git_gtr_using_command ai' -l ai -d 'AI tool to use' -r -a 'aider auggie claude codex continue copilot cursor gemini none opencode' diff --git a/completions/gtr.bash b/completions/gtr.bash index 3902c5e..0983376 100644 --- a/completions/gtr.bash +++ b/completions/gtr.bash @@ -55,7 +55,7 @@ _git_gtr() { if [[ "$cur" == -* ]]; then COMPREPLY=($(compgen -W "--editor" -- "$cur")) elif [ "$prev" = "--editor" ]; then - COMPREPLY=($(compgen -W "atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed" -- "$cur")) + COMPREPLY=($(compgen -W "antigravity atom cursor emacs idea nano none nvim pycharm sublime vim vscode webstorm zed" -- "$cur")) else local branches all_options branches=$(git branch --format='%(refname:short)' 2>/dev/null || true) diff --git a/docs/configuration.md b/docs/configuration.md index 91abc11..69aba6c 100644 --- a/docs/configuration.md +++ b/docs/configuration.md @@ -134,10 +134,10 @@ git gtr config set gtr.provider github ## Editor Settings ```bash -# Default editor: cursor, vscode, zed, or none +# Default editor: antigravity, cursor, vscode, zed, or none gtr.editor.default = cursor -# Workspace file for VS Code/Cursor (relative path from worktree root) +# Workspace file for VS Code/Cursor/Antigravity (relative path from worktree root) # If set, opens the workspace file instead of the folder # If not set, auto-detects *.code-workspace files in worktree root # Set to "none" to disable workspace lookup entirely @@ -146,13 +146,14 @@ gtr.editor.workspace = project.code-workspace **Setup editors:** +- **Antigravity**: Install from [antigravity.google](https://antigravity.google), `agy` command available after installation - **Cursor**: Install from [cursor.com](https://cursor.com), enable shell command - **VS Code**: Install from [code.visualstudio.com](https://code.visualstudio.com), enable `code` command - **Zed**: Install from [zed.dev](https://zed.dev), `zed` command available automatically **Workspace files:** -VS Code and Cursor support `.code-workspace` files for multi-root workspaces, custom settings, and recommended extensions. When opening a worktree: +VS Code, Cursor, and Antigravity support `.code-workspace` files for multi-root workspaces, custom settings, and recommended extensions. When opening a worktree: 1. If `gtr.editor.workspace` is set to a path, opens that file (relative to worktree root) 2. If set to `none`, disables workspace lookup (always opens folder) diff --git a/lib/adapters.sh b/lib/adapters.sh index d40ca36..7a1dcc6 100644 --- a/lib/adapters.sh +++ b/lib/adapters.sh @@ -17,6 +17,7 @@ # # Loading: file override (adapters/editor/.sh) → registry → generic PATH fallback _EDITOR_REGISTRY=" +antigravity|agy|standard|Antigravity 'agy' command not found. Install from https://antigravity.google|workspace atom|atom|standard|Atom not found. Install from https://atom.io| cursor|cursor|standard|Cursor not found. Install from https://cursor.com or enable the shell command.|workspace emacs|emacs|terminal|Emacs not found. Install from https://www.gnu.org/software/emacs/|background @@ -252,7 +253,7 @@ _editor_define_terminal() { } } -# Resolve workspace file for VS Code/Cursor editors +# Resolve workspace file for VS Code/Cursor/Antigravity editors # Returns the workspace file path if found, empty otherwise resolve_workspace_file() { local worktree_path="$1" diff --git a/lib/commands/help.sh b/lib/commands/help.sh index 5f469cc..b7d020b 100644 --- a/lib/commands/help.sh +++ b/lib/commands/help.sh @@ -56,8 +56,8 @@ Special: Use '1' to open the main repo root: git gtr editor 1 Available editors: - atom, cursor, emacs, idea, nano, nvim, pycharm, sublime, vim, vscode, - webstorm, zed, none (or any command in your PATH) + antigravity, atom, cursor, emacs, idea, nano, nvim, pycharm, sublime, vim, + vscode, webstorm, zed, none (or any command in your PATH) Examples: git gtr editor my-feature # Uses default editor @@ -602,10 +602,10 @@ CONFIGURATION OPTIONS: gtr.worktrees.prefix Worktree folder prefix (default: "") gtr.defaultBranch Default branch (default: auto) gtr.editor.default Default editor - Options: cursor, vscode, zed, idea, pycharm, - webstorm, vim, nvim, emacs, sublime, nano, - atom, none - gtr.editor.workspace Workspace file for VS Code/Cursor + Options: antigravity, atom, cursor, emacs, + idea, nano, nvim, pycharm, sublime, vim, + vscode, webstorm, zed, none + gtr.editor.workspace Workspace file for VS Code/Cursor/Antigravity (relative path, auto-detects, or "none") gtr.ai.default Default AI tool Options: aider, auggie, claude, codex, continue,