Commit graph

9 commits

Author SHA1 Message Date
Maas Lalani bf8d9964df
feat: allow initial values of input and write to be set via stdin 2022-07-12 16:30:17 -04:00
Maas Lalani 02e925ea57
refactor: use embedded style struct for all lipgloss styling
This commit uses the embedded style struct for styling in all components. The most notable example is `gum write` where there are many styles that are used and composed for each component of the command.
2022-07-12 16:08:33 -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 593cf711be
feat: Allow setting initial value for input and write 2022-07-11 16:53:13 -04:00
Christian Rocha be4027ce28
fix(write): honor --height argument 2022-07-08 22:39:21 -04:00
Maas Lalani ff1f02f470
fix(write): Placeholder color fix 2022-07-07 22:39:42 -04:00
Maas Lalani fa4f09a413
feat: Default accent color is 212 (Bubble Gum Pink) 2022-07-07 17:46:22 -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