Skip to content

feat: add :w and :write actions to send the prompt - #60

Merged
oribarilan merged 5 commits into
oribarilan:mainfrom
Croos3r:feat/colon-w-send-prompt
Aug 23, 2026
Merged

feat: add :w and :write actions to send the prompt#60
oribarilan merged 5 commits into
oribarilan:mainfrom
Croos3r:feat/colon-w-send-prompt

Conversation

@Croos3r

@Croos3r Croos3r commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Implementation of the :w and :write actions:

I did not added any tests because :wq was not tested, but I can add some if needed.

The old behavior documented in #59 is now replaced by an exact match with :w so the frustrating :wq cannot be accessed like this.

I took the initiative to update the changelog, but feel free to update it if needed, I can also do it on your instructions.

Croos3r added 5 commits July 28, 2026 14:12
Previously typing :w in the command palette autocompleted to :wq and
quit OpenCode. Vim users hit :w reflexively to save, so map it to the
closest equivalent here: dispatch input.submit. :write is the long form.

The :wq quit command is unaffected.
Copilot AI review requested due to automatic review settings July 28, 2026 13:22

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@Croos3r Croos3r mentioned this pull request Jul 28, 2026
@oribarilan

Copy link
Copy Markdown
Owner

@Croos3r I was away on a vacation and only got to this now, sorry for the delay. This looks great, Thanks for the contribution!

@oribarilan
oribarilan merged commit f708699 into oribarilan:main Aug 23, 2026
1 check passed
@Croos3r
Croos3r deleted the feat/colon-w-send-prompt branch August 25, 2026 13:03
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.

3 participants