Dieter Eickstaedt
eef6431d7c
feat: Timeout for Confirm Command ( #383 )
...
* feat: Timeout for Confirm Command
* fix: comment
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-06-30 09:20:33 -04:00
ChrHan
46dee843db
fix(prompt): fix default selection of prompt, timer and exit code ( #148 )
...
* fix(prompt): fix default selection of prompt, timer and exit code
* chore(comment): remove unused comment
* fix(confirm): ensure timer is located at fixed selection
* chore(confirm): remove inefficient assignment
* fix: default timeout selection
---------
Co-authored-by: Maas Lalani <maas@lalani.dev>
2023-02-27 19:16:08 -05:00
Maas Lalani
36ef76185c
fix(confirm): esc should not exit with 130
2023-01-13 12:08:06 -05:00
Maas Lalani
832c4fc917
feat: ctrl+c / esc aborts action
2022-12-13 15:47:32 -05:00
Maas Lalani
f69fc23242
fix: don't allow selecting negative value if it is an empty string
2022-10-06 13:30:05 -04:00
Kevin Pham
a4d4793829
fix(confirm): an empty --negative will not be displayed
...
This change will hide the normally "No" button when the text is empty. In most cases, this will serve as an acknowledgement and the affirmative message would likely change.
This seems to be better than displaying an empty button.
Resolves #145
2022-10-06 13:30:05 -04:00
Maas Lalani
c1a1a73a0e
feat: add timeout on confirm options & messages ( #111 )
...
Co-authored-by: Christoper Hans <4262799+ChrHan@users.noreply.github.com>
2022-08-08 13:57:55 -04:00
Maas Lalani
1479184f3f
fix: satisfy all linters
2022-08-05 02:33:40 -04:00
Maas Lalani
197e52a362
feat: escape as abort option (like ctrl+c)
2022-08-02 21:00:42 -04:00
Maas Lalani
671777aa59
feat: ability to change default value of confirmation
2022-07-29 12:13:35 -04:00
Christian Rocha
c78ac9cf6b
chore(confirm): bind n and N to the negative response
2022-07-27 12:47:18 -07:00
Christian Rocha
43b8733f93
chore(confirm): also select with tab/shift+tab
2022-07-27 12:47:18 -07:00
Maas Lalani
942bf8091d
feat: Add y/Y shorthand for affirmative action
2022-07-26 16:28:58 -04:00
Maas Lalani
ff63ec43f9
feat: remove gum confirm vertical option
2022-07-26 16:17:32 -04:00
Maas Lalani
108a680385
feat: gum confirm
2022-07-26 15:43:26 -04:00