Skip to content

feat: :q/:quit/:wq quit from the command palette#24

Merged
oribarilan merged 1 commit into
mainfrom
feat/quit-command
Jun 8, 2026
Merged

feat: :q/:quit/:wq quit from the command palette#24
oribarilan merged 1 commit into
mainfrom
feat/quit-command

Conversation

@oribarilan

Copy link
Copy Markdown
Owner

Registers q, quit, and wq as command palette entries that exit OpenCode. Since : already opens the palette, typing :q and pressing Enter quits the app — matching vim muscle memory.

Uses api.command.register() to add the commands under a "Vim" category. The onSelect handler dispatches app.exit via setTimeout (same pattern all other dispatches use).

Closes #19

Register q, quit, and wq as palette commands that dispatch app.exit.
Since : already opens the palette, typing :q and pressing Enter exits
the app — matching the vim muscle memory.

Closes #19
@oribarilan oribarilan merged commit 55d0342 into main Jun 8, 2026
1 check passed
@oribarilan oribarilan deleted the feat/quit-command branch June 8, 2026 11:31
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.

Feature: quit command

1 participant