You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While writing up a helper to remove selected branches from git, I discovered that if you break out of a single-item choose list, gum returns nothing, but if you do break out of a multi-item choose, any selected options at the time the ctrl-c was received are returned.
Is this intentional? It was surprising, in that I was expecting to be able to cancel the action by breaking out and it instead proceed with the removal of my test branches.
gum choose <<EOF
Option A
Option B
Option C
EOF
CTRL-C returns nothing
gum choose <<EOF --no-limit
Option A
Option B
Option C
EOF
CTRL-C returns anything you might have selected before breaking.
The text was updated successfully, but these errors were encountered:
While writing up a helper to remove selected branches from git, I discovered that if you break out of a single-item choose list, gum returns nothing, but if you do break out of a multi-item choose, any selected options at the time the ctrl-c was received are returned.
Is this intentional? It was surprising, in that I was expecting to be able to cancel the action by breaking out and it instead proceed with the removal of my test branches.
CTRL-C returns nothing
CTRL-C returns anything you might have selected before breaking.
The text was updated successfully, but these errors were encountered: