Commit graph

7 commits

Author SHA1 Message Date
Mike Oertli 89f2928571 added clarity on completing a 'write'
added some comments and info in the readme regarding how to complete (or exit) a 'write'
2022-08-05 11:59:01 -04:00
Maas Lalani 1479184f3f fix: satisfy all linters 2022-08-05 02:33:40 -04:00
Maas Lalani b670c6d674 refactor: bubble up ErrAborted 2022-07-30 21:42:48 -04:00
Maas Lalani 5de4df66d2
refactor: add package comments describing behavior 2022-07-13 09:55:36 -04:00
Maas Lalani 3e8153e140
fix(write): Add CtrlD as a quitting key
Add tea.KeyCtrlD as a way to quit the write as it signifies EOF.
2022-07-11 17:18:06 -04:00
Maas Lalani 66ef277036
fix(write): Hide textarea when quitting
When the user is done editing the text in the textarea this change hides the textarea and prints only the value to not clutter the terminal.
2022-07-11 17:16:30 -04:00
Maas Lalani a0e2cda3cb
feat: Add gum write command
Write provides a shell script interface for the text area bubble. It can
be used to ask the user to write some long form of text (multi-line)
input. The text the user entered will be sent to stdout.

```
gum write > output.text
```
2022-07-07 13:29:11 -04:00