Skip to content

feat(ask): add popup buffer input option#188

Open
e-cal wants to merge 4 commits intonickjvandyke:mainfrom
e-cal:feat/ask-buffer
Open

feat(ask): add popup buffer input option#188
e-cal wants to merge 4 commits intonickjvandyke:mainfrom
e-cal:feat/ask-buffer

Conversation

@e-cal
Copy link
Contributor

@e-cal e-cal commented Feb 26, 2026

Add a config option to make the input a popup buffer (like 99).

image

Copilot AI review requested due to automatic review settings February 26, 2026 16:34
Copy link
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Adds a new opts.ask.capture configuration to choose between the existing vim.ui.input-based ask prompt and a new centered floating “popup buffer” input mode for multi-line editing.

Changes:

  • Introduces opts.ask.capture = "input" | "buffer" and opts.ask.buffer options for the new buffer-based input mode.
  • Implements floating buffer UI for ask input with live context highlighting, configurable keymaps, and optional submit-on-write behavior.
  • Documents the new configuration in the README.

Reviewed changes

Copilot reviewed 3 out of 3 changed files in this pull request and generated 3 comments.

File Description
lua/opencode/ui/ask/init.lua Adds buffer-based ask capture mode and updates config merging for input mode.
lua/opencode/config.lua Adds defaults for ask.capture and ask.buffer configuration.
README.md Documents how to enable and configure buffer capture mode.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

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.

2 participants