Maas Lalani
b4fd896729
docs: Add a tutorial for building a script
2022-07-21 11:55:52 -04:00
Maas Lalani
6ee9247b94
refactor(variables): place on new lines
2022-07-21 11:27:36 -04:00
Maas Lalani
9d39056a84
revert(progress): remove progress (for now)
...
Remove progress until we find a better way to control the progress bar from the bash script so that it is actually useful.
2022-07-21 11:09:57 -04:00
Maas Lalani
ee453222b4
docs: update gum write gif
2022-07-20 17:04:44 -04:00
Maas Lalani
b682144090
docs: join gif
2022-07-20 16:58:04 -04:00
Maas Lalani
2259a97b46
docs: demo.sh gif
2022-07-20 16:12:32 -04:00
Maas Lalani
a4f01b5354
docs(examples): fix demos
2022-07-20 16:09:38 -04:00
Maas Lalani
c96aa6f0e5
docs: combined demo
2022-07-20 15:21:25 -04:00
Maas Lalani
42c501d2d2
docs: nutritional info
2022-07-20 15:16:55 -04:00
Maas Lalani
95a154f6bc
new dolly gifs
2022-07-20 13:53:15 -04:00
Maas Lalani
4f1d174175
feat: add -s short flag for spinner
2022-07-20 13:26:44 -04:00
Maas Lalani
56ad131ed4
docs: table of contents like navigation
2022-07-18 15:41:24 -04:00
Maas Lalani
d6b895b7f1
Update README.md
2022-07-18 14:35:54 -04:00
Ayman Bagabas
8037a22f99
feat: generate man pages
...
Use mango-kong to generate man pages
2022-07-18 12:03:47 -04:00
Maas Lalani
3e950970bb
docs: update flags --color to --x.foreground
2022-07-16 00:23:05 -04:00
Maas Lalani
00ba1f77a7
docs(examples): Convert to GIF (ffmpeg) script
2022-07-15 18:33:04 -04:00
Maas Lalani
473cab8216
docs: add placeholder art
2022-07-15 17:26:33 -04:00
Maas Lalani
74ef277486
docs: customization flags
2022-07-15 16:12:50 -04:00
Maas Lalani
9b2e4add3e
docs: add screenshots for tmux session picker and commit picker
2022-07-15 11:24:27 -04:00
Maas Lalani
ac4c08078a
docs: gum format screenshots
2022-07-15 11:16:47 -04:00
Maas Lalani
ab825d95ac
docs(format): Add gum format
docs
2022-07-15 11:01:19 -04:00
Maas Lalani
5d147f48e2
refactor(format): Move functions to formats.go and add map between type and function
2022-07-14 17:09:18 -04:00
Maas Lalani
e17e45aa9b
docs: move information to format/README.md
2022-07-14 16:33:16 -04:00
Maas Lalani
4dd438bad1
fix: don't wordwrap code
2022-07-14 16:13:43 -04:00
Maas Lalani
0223da8b6c
feat: gum format --type emoji|markdown|code|template
2022-07-14 15:27:26 -04:00
Maas Lalani
71b8363f97
feat: add gum format
command to format text
2022-07-14 13:51:26 -04:00
Maas Lalani
5a1195dda5
fix: choose prefixes and pink gum
text
2022-07-14 10:37:22 -04:00
Maas Lalani
0f4b98c2ad
docs(demos): Add editor and commit demos
2022-07-13 16:29:53 -04:00
Maas Lalani
4d98a8fa6f
feat(choose): Add paginator to chooser
...
Display paginator only if number of options > height specified
2022-07-13 15:49:15 -04:00
Maas Lalani
a26995e17f
docs: style
and join
screenshots
2022-07-13 14:46:29 -04:00
Maas Lalani
7907c40005
docs: resize demo gifs
2022-07-13 13:22:37 -04:00
Maas Lalani
eae3cf8c64
docs: Add examples of gum choose --limit and --no-limit
2022-07-13 13:14:59 -04:00
Maas Lalani
54f85439fa
feat(choose): --no-limit flag alias
...
Adds a --no-limit flag as an alias to set the limit to the number of options available.
2022-07-13 12:10:38 -04:00
Maas Lalani
01404ef586
feat(choose): Ability to choose multiple choices --limit
...
This commit introduces the ability to choose multiple options from the list of choices in `gum choose` by adding a `--limit` flag.
2022-07-13 11:45:52 -04:00
Maas Lalani
5de4df66d2
refactor: add package comments describing behavior
2022-07-13 09:55:36 -04:00
Maas Lalani
67f923de35
docs: Add gifs to README
2022-07-12 23:47:07 -04:00
Maas Lalani
912157521c
docs: group style flags so that they appear at the bottom
2022-07-12 22:48:44 -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
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
569c2cc622
refactor: embed style struct for reusability in styling other components
2022-07-12 10:07:29 -04:00
Maas Lalani
89892f85e3
docs(magic): Add example of magic trick
...
The magic example shows the user a bash magic trick by asking them to choose a card and then showing them their card.
A script never reveals its secrets. (unless you look at ./examples/magic.sh)
2022-07-11 18:11:48 -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
11e7e18256
docs(examples): Add example of conventional commit script
...
This change adds an example script of how to prompt the user for the necessary information for a conventional commit.
2022-07-11 17:07:53 -04:00
Maas Lalani
593cf711be
feat: Allow setting initial value for input
and write
2022-07-11 16:53:13 -04:00
Maas Lalani
46ddc28ae5
feat: gum choose
, pick from a list of choices
...
gum choose allows the user to be prompted for a choice from a list of choices.
For example, let's ask the user to pick a card from a deck.
gum choose --height 15 {Ace,King,Queen,Jack,Ten,Nine,Eight,Seven,Six,Five,Four,Three,Two}" of "{Spades,Hearts,Clubs,Diamonds}
2022-07-11 16:26:23 -04:00
Maas Lalani
dab3792d5f
docs: examples pick commit hash from history
2022-07-11 13:54:45 -04:00
Maas Lalani
e72857b737
docs: Add some examples of how to use gum
in workflows
...
This commit adds usage examples to the README.md on how users can use
gum in their workflows. In fact, this commit message is being created
through the `gum write` command as shown in the example!
2022-07-11 13:35:06 -04:00
Maas Lalani
aca8dcbc89
docs: fix bubbles components links
2022-07-11 10:41:16 -04:00