Skip to content

Add external editor ($EDITOR) handoff for long text #11

Description

@AlexSkrypnyk

Summary

Let the textarea widget open the user's configured $EDITOR for long multi-line input and capture the result on return.

Details

Inline multi-line editing is fine for a few lines but painful for paragraphs or structured text.

Add an opt-in option on the textarea widget (or a companion editor widget) that suspends the TUI, opens the user's $EDITOR to compose the content, and captures the saved buffer back into the answer when the editor exits.

Acceptance criteria

  • An opt-in option suspends the TUI, launches the $EDITOR, and restores the TUI on exit.
  • The saved buffer becomes the field value; an empty or aborted edit is handled gracefully.
  • The terminal state is restored cleanly whether the editor exits normally or is cancelled.
  • When no editor is available or the run is headless, the field falls back to inline textarea behaviour.
  • Unit tests cover the launch/capture path with a stubbed editor and the fallback path.
  • The option is documented in the README textarea section.

Metadata

Metadata

Assignees

No one assigned

    Labels

    A3Board worker 3enhancementNew feature or request

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions