forked from LaiZhou/OpenCode_UI
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathget_started.html
More file actions
59 lines (50 loc) · 3.6 KB
/
get_started.html
File metadata and controls
59 lines (50 loc) · 3.6 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
<h1>OpenCode UI</h1>
<p>
<b>OpenCode UI</b> is an open-source AI coding agent integration that brings the power of <a href="https://opencode.ai">opencode.ai</a> directly into your JetBrains IDE development workflow.
</p>
<p>
<b>Download:</b> <a href="https://github.com/LaiZhou/OpenCode_UI/releases/tag/1.0.9">Get the latest version (1.0.9)</a>
</p>
<h2>Key Features</h2>
<ul>
<li><b>Quick Launch:</b> Connect to existing OpenCode server (e.g., OpenCode Desktop) or create new terminal with a single shortcut (Cmd+Esc / Ctrl+\). Supports automatic authentication and optional password input. Connection settings are remembered automatically.</li>
<li><b>Context Sharing:</b> Seamlessly send code selections or file references (with line numbers) from your editor or project view directly to the AI agent (Opt+Cmd+K).</li>
<li><b>Diff Review:</b> Automatically review AI-generated code changes in chronological order. Title shows progress (e.g., "1 of 5"). Accept writes and stages changes; Reject restores the baseline. Both actions auto-advance to the next file.</li>
<li><b>Notifications:</b> Get system-level alerts when AI tasks complete, so you can focus on other work while OpenCode runs.</li>
<li><b>Auto-Resume:</b> New terminals automatically restore your last session context - pick up right where you left off.</li>
<li><b>Smart Links:</b> Click file paths in the terminal (e.g., <code>@src/main.kt#L10-20</code>) to jump directly to the code.</li>
</ul>
<p>
<b>Tip:</b> To receive desktop notifications when AI tasks complete, please ensure your OS allows notifications for the JetBrains IDE.
(Mac: <i>System Settings > Notifications > IntelliJ IDEA</i>)
</p>
<br>
<p>Follow these steps to set up and start using the OpenCode plugin:</p>
<ol>
<li>Install a <b>compatible JetBrains IDE</b> (version 2025.2 or later).</li>
<li><b>Install the OpenCode CLI:</b> This plugin acts as a bridge to the CLI tool. Ensure you have it installed:
<br><code>npm install -g opencode</code>
</li>
<li><b>Ensure Git is installed:</b> The plugin uses local git commands for managing changes.</li>
<li>Launch your IDE and ensure the plugin is enabled.</li>
<li>Press <code>Cmd + Esc</code> (Mac) or <code>Ctrl + \</code> (Windows/Linux) to launch your first session.</li>
</ol>
<h2>Usage and Shortcuts</h2>
<ul>
<li><b>Connect/Launch:</b> <code>Cmd + Esc</code> (Mac) / <code>Ctrl + \</code> (Win/Linux) - Opens connection dialog to connect to existing server or create new terminal.</li>
<li><b>Add Context:</b> <code>Opt + Cmd + K</code> (Mac) / <code>Ctrl + Alt + K</code> (Win/Linux) - Sends file references/selection to the terminal.</li>
</ul>
<h2>Diff Viewer Guide</h2>
<ul>
<li><b>Order:</b> Diffs are presented in the order they were generated (chronological). Title shows progress (e.g., "1 of 5").</li>
<li><b>Navigation:</b> Use <code>←</code> / <code>→</code> arrows to switch between modified files.</li>
<li><b>Jump Changes:</b> Use <code>↑</code> / <code>↓</code> to jump between specific changes in the current file.</li>
<li><b>Accept:</b> Writes AI changes to disk, stages the file (git add), and auto-advances to the next file.</li>
<li><b>Reject:</b> Restores the file to its pre-edit state and auto-advances to the next file.</li>
<li><b>Local Modified:</b> The diff title shows <code>(Local Modified)</code> when your file differs from AI output.</li>
</ul>
<p><i>The plugin automatically creates snapshots in your IDE's Local History for safety.</i></p>
<h2>Plugin Compatibility</h2>
<p>
<b>Complementary Plugins:</b> This plugin requires the <b>Terminal</b> plugin (bundled by default).
</p>