Maas Lalani
01a66511a1
Hide Style Flags consistently ( #457 )
...
* refactor: hide style flags on error to not clutter usage
* docs(style): add comment regarding dynamically hiding flags
2023-11-28 14:17:57 -05:00
Maas Lalani
8f17aa3f9a
feat(write,input): add --cursor.mode=hide,blink,static
2023-06-05 16:08:40 -04:00
Maas Lalani
7f54b3b289
feat(write): width < 1 uses terminal width
2023-05-11 15:13:01 -04:00
Mikael Fangel
f46060ac43
Update write/command.go
...
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-03-09 12:59:53 -05:00
mikael
f8adcd649b
fixes errors with CR in write --value
2023-03-09 12:59:53 -05:00
Maas Lalani
2e4ddce3f7
fix: use program.Start
2022-10-17 20:23:59 -04:00
Kevin Pham
f13b5b6b82
feat(write): use --header to display a label above the textarea
2022-10-06 13:35:43 -04:00
Maas Lalani
1479184f3f
fix: satisfy all linters
2022-08-05 02:33:40 -04:00
Mathias Griffe
06e8546366
feat: Make input and write textarea CharLimit configurable through options
...
Removes the hardcoded 400 chars CharLimit (default for textarea), and make the CharLimit configurable through an Option.
2022-08-03 11:20:09 -04:00
Maas Lalani
b670c6d674
refactor: bubble up ErrAborted
2022-07-30 21:42:48 -04:00
Ayman Bagabas
eaef49cdbe
feat: autocompletion
2022-07-25 13:03:18 -04:00
Maas Lalani
7190822247
refactor(kong): Implement Run(...) error
interface
...
Instead of needing to run the commands manually in main.go, we can implement the `Run(...) error` method to satisfy the command interface so that `kong` can Run our commands for us.
2022-07-12 22:33:52 -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
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
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