CodeWhale icon indicating copy to clipboard operation
CodeWhale copied to clipboard

Composer: more room to edit pasted text before sending

Open Lstarsky0 opened this issue 1 month ago • 2 comments

0.10.3 status — 2026-10-25

The clipped-draft external-editor hint landed on main in 9f4dce1fc5. It follows the native composer’s actual visible row budget, preserves queue/busy hints, and names F4 (fn+F4 on macOS); Ctrl+Shift+O remains supported. The combined UI batch passed 479 existing local tests. Isolated terminal observations covered fit-versus-clipped resizing, Unicode, a 20,400-character editable paste, and a real F4 round trip through VISUAL with the full edited draft restored. The retained-attachment-preview branch has source review only. This is unreleased 0.10.3 candidate source; no provider call or hosted CI is claimed.


Before you start

  • [x] I searched existing issues and this is not a duplicate. 我已搜索过现有 issue。

What problem does this solve? 要解决什么问题?

I often paste a chunk of text into the composer and then want to fix something in the middle of it before sending. That's hard today:

  • The composer stops growing at a fixed height (the composer_density cap: 9 rows by default, 12 on spacious), so I only see a small slice of what I pasted and lose my place while moving around in it.
  • A paste over 16k chars still becomes [Pasted content attached · N chars] with a short preview (the fallback #3263 kept), so there's nothing left to edit inline.

There's Ctrl+Shift+O / F4 to open the draft in $EDITOR, but it's easy to miss, and it means leaving the TUI for a small edit.

What should Codewhale do? 希望 Codewhale 怎么做?

Any one of these would help:

  • Let the composer grow past the density cap when the draft is long, or let me resize it, say up to half the screen.
  • Mention the external-editor shortcut in the composer hint when the draft gets long or right after a big paste.
  • For a paste that turns into an attachment, a way to open and edit it before sending.

Where? 在哪里?

TUI (terminal interface)

Workarounds or other tools (optional)

composer_density = "spacious", and Ctrl+Shift+O / F4 to edit the draft in $EDITOR.

Contributing

  • [ ] I would like to open a pull request for this. 我愿意提交 PR。

Lstarsky0 avatar Oct 22 '26 14:10 Lstarsky0

Reopened: commit 1cefbca1fc closed this automatically because its message used a closing verb inside a negated sentence, which was unintended; composer growth landed there, but the long-draft hint (Ctrl+Shift+O / F4) is still outstanding.

Hmbown avatar Oct 25 '26 10:10 Hmbown

yes this is a really great point - will work on this!

Hmbown avatar Oct 26 '26 00:10 Hmbown