Skip to content

Comments

feat(app): open notes in textarea overlay with ctrl+e editor escalation#443

Merged
cpcloud merged 2 commits intomainfrom
feat/notes-textarea-editor
Feb 21, 2026
Merged

feat(app): open notes in textarea overlay with ctrl+e editor escalation#443
cpcloud merged 2 commits intomainfrom
feat/notes-textarea-editor

Conversation

@cpcloud
Copy link
Owner

@cpcloud cpcloud commented Feb 21, 2026

Summary

  • Replace single-line status bar input for notes fields with a huh.NewText() textarea overlay, giving proper multi-line editing
  • Add ctrl+e to launch $EDITOR/$VISUAL from the textarea; on save, the textarea reopens with updated text for review before committing the change
  • Three call sites updated: service log notes, document notes, and vendor jobs notes (via delegation)
  • Read-only note preview (Enter on notes column) unchanged

Steps to reproduce

  1. Open a maintenance item's service log detail
  2. Move cursor to the Notes column
  3. Press e to edit -- should open a textarea overlay (not a status bar input)
  4. Type multi-line text, press ctrl+s to save
  5. In the textarea, press ctrl+e -- should open $EDITOR with the note text
  6. Edit in the external editor, save and quit -- textarea reopens with updated text
  7. Press ctrl+s to commit the change

closes #423

cpcloud and others added 2 commits February 21, 2026 15:18
…nd vendors

Add a Docs drilldown column to maintenance items, quotes, and vendors
following the same pattern used by projects, appliances, incidents, and
service logs. Each entity gets a column enum entry, column spec, doc count
in its row builder, handler Load integration with CountDocumentsByEntity,
inline edit fallthrough, a detailDef, and routing.

Introduces a formKind discriminator on detailRoute so nested detail views
(e.g. appliance → maintenance → docs) route to the correct document def
instead of the parent tab's document def.

Scoped variants (applianceMaintenanceRows, vendorQuoteRows,
projectQuoteRows) and their handlers are also updated.

closes #427

Co-Authored-By: Claude Opus 4.6 <[email protected]>
Replace single-line status bar input for notes fields with a proper
huh.NewText() textarea overlay. Add ctrl+e to launch $EDITOR/$VISUAL
for extended editing; on save, the textarea reopens with updated text
for review before committing the change.

Three call sites updated: service log notes, document notes, and
vendor jobs notes (via delegation to inlineEditServiceLog).

closes #423

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@cpcloud cpcloud force-pushed the feat/notes-textarea-editor branch from 4c91efa to 901c153 Compare February 21, 2026 20:20
@cpcloud cpcloud merged commit 78400e2 into main Feb 21, 2026
11 checks passed
@cpcloud cpcloud deleted the feat/notes-textarea-editor branch February 21, 2026 20:22
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.

bug: multi-line Notes in Docs displayed incorrectly

1 participant