Skip to content

feat(command): ✨ add TextBox prompt type#711

Draft
JOTSR wants to merge 1 commit into
c4spar:mainfrom
JOTSR:feat/prompt_text_box
Draft

feat(command): ✨ add TextBox prompt type#711
JOTSR wants to merge 1 commit into
c4spar:mainfrom
JOTSR:feat/prompt_text_box

Conversation

@JOTSR

@JOTSR JOTSR commented May 31, 2024

Copy link
Copy Markdown
Contributor

Summary

Add multiline prompt type (TextBox).

Motivation

Allow direct multiline prompt in terminal (without editing features).

Changes

  • Add prompt/textbox.ts.

Todo

  • Support erase and text navigation.
  • Fix stdin issue (fast closed after first prompt')
  • Implement fully (all methods).
  • Add tests.
  • Add doc.

Maybe choose a better name: "textbox", "textblock", "textarea", ...

@JOTSR

JOTSR commented May 31, 2024

Copy link
Copy Markdown
Contributor Author

@c4spar Before continuing to work on this feature (tests, improve code, and docs), does this feat right for you ?

@JOTSR
JOTSR marked this pull request as draft May 31, 2024 12:24
@JOTSR

JOTSR commented Jun 1, 2024

Copy link
Copy Markdown
Contributor Author

Demo

Default options

image

Custom endDelimiter

image

@c4spar

c4spar commented Jun 2, 2024

Copy link
Copy Markdown
Owner

Sounds good to me 👍 TextBox and TextArea are fine for me. Another name could be MultilineInput.

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