Skip to content

Upgrade clet text to use Terminal.Gui.Editor; merge with multiline-text#128

Open
Copilot wants to merge 2 commits into
developfrom
copilot/upgrade-clet-text-editor
Open

Upgrade clet text to use Terminal.Gui.Editor; merge with multiline-text#128
Copilot wants to merge 2 commits into
developfrom
copilot/upgrade-clet-text-editor

Conversation

Copy link
Copy Markdown
Contributor

Copilot AI commented May 14, 2026

clet text used a single-line TextField. This upgrades it to Editor for multi-line input, which makes it functionally identical to multiline-text — so the two are merged.

text vs edit — kept separate. text is an input clet (returns string); edit is a viewer clet (file editor with menus/save/load/syntax highlighting, no return value). Different abstractions, different use cases.

Changes

  • TextCletTextFieldEditor, gains OK button, --rows support (default 5), cancellation pre-check
  • MultilineTextClet removed — aliases multiline-text / mt absorbed into TextClet
  • BuiltInClets — one fewer registration (19 → 18)
  • TestsMultilineTextCletTests and integration tests removed; TextCletTests gains alias coverage; BuiltInCletsTests count updated; CletMetadataTests row removed; multiline/rows integration tests ported to TextCletIntegrationTests
  • Docs — spec, README, help files updated; multiline-text.md removed

Copilot AI assigned Copilot and tig May 14, 2026
Copilot AI linked an issue May 14, 2026 that may be closed by this pull request
…to text

TextClet now uses Editor instead of TextField, providing multi-line editing.
MultilineTextClet is removed; its aliases (multiline-text, mt) are absorbed
into TextClet. EditorClet (clet edit) remains separate as a viewer clet
since it serves a fundamentally different use case (file editing with menus,
save/load, syntax highlighting vs. text input returning a string result).

Agent-Logs-Url: https://github.com/gui-cs/clet/sessions/c2627fa0-76b9-4a7e-8a9b-5d6e55254e6e

Co-authored-by: tig <585482+tig@users.noreply.github.com>
Copilot AI changed the title [WIP] Upgrade clet text to use Terminal.Gui.Editor Upgrade clet text to use Terminal.Gui.Editor; merge with multiline-text May 14, 2026
Copilot finished work on behalf of tig May 14, 2026 19:11
Copilot AI requested a review from tig May 14, 2026 19:11
@tig tig marked this pull request as ready for review May 14, 2026 19:48
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.

Upgrade clet text to use Terminal.Gui.Editor

2 participants