usethis icon indicating copy to clipboard operation
usethis copied to clipboard

Should be clearer when cancelling

Open hadley opened this issue 1 year ago • 2 comments

> use_git()
✔ Setting active project to "/Users/hadleywickham/Desktop/knitr-error".
✔ Initialising Git repo.
✔ Adding ".Rhistory", ".Rdata", ".httr-oauth", ".DS_Store", and ".quarto" to
  .gitignore.
ℹ There are 4 uncommitted files:
• .gitignore
• knitr-error.Rproj
• manifest.json
• test.qmd
! Is it ok to commit them?

1: Not now
2: Yeah
3: Absolutely not

Selection: 1

It took me a while to notice that this had failed because I accidentally typed 1 instead of 2.

hadley avatar Jul 30 '24 12:07 hadley

This would require some thought because the underlying helpers (ui_yep() and ui_nah()) are used lots of places (probably 20-30) and I don't think we would always want to do more than we're doing now. Nor would we always want to say the same thing in response to a particular choice.

jennybc avatar Jul 30 '24 16:07 jennybc

I think we could reliably say "Terminating execution" or similar though.

hadley avatar Jul 30 '24 19:07 hadley