Skip to content

create intellij plugin#27

Merged
guodong-sq merged 2 commits intomainfrom
guodong/intellij_plugin
Mar 10, 2026
Merged

create intellij plugin#27
guodong-sq merged 2 commits intomainfrom
guodong/intellij_plugin

Conversation

@guodong-sq
Copy link
Copy Markdown
Collaborator

This plugin brings wt natively into IntelliJ. Switch worktrees from the IDE and the project updates instantly: no reload, no re-index, no waiting. It works through an atomic symlink swap under the project path. The plugin triggers a full VFS rescan, reloads open editors, rescans the index, and refreshes the file tree, diff views, and git status, all within seconds, all without reopening the project.

100% compatible with the shell CLI. The plugin reads and writes the exact same config files (~/.wt/repos/*.conf, ~/.wt/current, wt.* git config keys). Run wt switch in your terminal or click in the IDE, both sides see the change immediately. No sync, no import, no drift.

What you get

  • Instant worktree switching — atomic symlink swap triggers a VFS rescan so files, diffs, and git status all update in place
  • Full worktree lifecycle — create, switch, remove, and bulk-clean merged worktrees without leaving the IDE
  • Live external change detection — run wt switch or wt context switch in your terminal, the plugin reloads automatically
  • Shared IDE settings across worktrees — export/import .idea and .ijwb metadata to a vault so every worktree gets the same run configs, code style, and inspections
  • Status bar widget — always know which worktree and branch you're on

Shell script changes

Small update to lib/wt-common for interop completeness:

  • wt_read_git_config() now reads wt.contextName → sets WT_CONTEXT_NAME
  • Context banner shows 📌 when context comes from git local config (vs global ~/.wt/current)

Co-authored-by: Claude Code <noreply@anthropic.com>
Ai-assisted: true
@guodong-sq guodong-sq merged commit 176654f into main Mar 10, 2026
4 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant