Skip to content

tui: pick a dialog's answer with the arrow keys and enter - #1281

Merged
cdalar merged 1 commit into
mainfrom
tui-dialog-arrow-select
Oct 27, 2026
Merged

cdalar merged 1 commit into
mainfrom
tui-dialog-arrow-select

Conversation

@cdalar

@cdalar cdalar commented Oct 27, 2026

Copy link
Copy Markdown
Owner

The y/N questions and the choice popups only took their letter keys;
an arrow closed them as a no. Their keys are now buttons: left/right
(and tab/shift+tab) move the highlight, enter presses it. The highlight
starts on no / cancel, so enter alone still declines, as in destroy's
own [y/N]. The letter keys and esc work as before.

Tests: go test ./cmd/ and golangci-lint run ./cmd/ pass. The new test cases fail if the highlight starts on yes.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Ba6Vc5qUoi5e5eKonG13ve

The y/N questions and the choice popups only took their letter keys;
an arrow closed them as a no. Their keys are now buttons: left/right
(and tab/shift+tab) move the highlight, enter presses it. The highlight
starts on no / cancel, so enter alone still declines, as in destroy's
own [y/N]. The letter keys and esc work as before.
@cdalar
cdalar merged commit d6f9fcc into main Oct 27, 2026
12 checks passed
@codecov

codecov Bot commented Oct 27, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 50.85%. Comparing base (d3b0020) to head (0e3969a).

Additional details and impacted files
@@            Coverage Diff             @@
##             main    #1281      +/-   ##
==========================================
+ Coverage   50.75%   50.85%   +0.10%     
==========================================
  Files          83       83              
  Lines        9866     9888      +22     
==========================================
+ Hits         5007     5029      +22     
  Misses       4859     4859              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant

⌂ 换网址