Skip to content

Select threads with x as well as space - #359

Open
jwahdatehagh wants to merge 2 commits into
basecamp:mainfrom
jwahdatehagh:tui-select-with-x
Open

Select threads with x as well as space#359
jwahdatehagh wants to merge 2 commits into
basecamp:mainfrom
jwahdatehagh:tui-select-with-x

Conversation

@jwahdatehagh

@jwahdatehagh jwahdatehagh commented Aug 28, 2026

Copy link
Copy Markdown

The HEY desktop app toggles a thread's selection with x; the TUI only answered to space. For parity, x now toggles the selection too, in the box list and on the Previously Seen screen. The help bar shows the pair as space/x select.

x was previously the cover peek's key on a covered Imbox, so the peek moves to z: the section-header hints ("z to peek" / "z to cover") and the help bar move with it.

Tests cover x selecting (and not lifting the cover) in both lists, and the cover peek tests now exercise z. make check passes.


Summary by cubic

Makes x toggle a thread's selection in the box list and Previously Seen screen, matching the HEY desktop app; space still works. The cover peek key moves from x to z, with the help bar, section-header hints, docs, and notices updated accordingly.

  • x toggles selection without affecting the cover state.
  • Tests cover x selection in both lists and z cover peeking.

Written for commit f1aa5b1. Summary will update on new commits.

Review in cubic

@jwahdatehagh
jwahdatehagh requested a review from a team as a code owner August 28, 2026 13:45
Copilot AI balanced review requested due to automatic review settings August 28, 2026 13:45

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds x as a thread-selection shortcut and moves cover peeking to z.

Changes:

  • Supports x selection in mail and Previously Seen lists.
  • Updates cover controls and hints from x to z.
  • Adds tests for selection and cover behavior.

Tip

If you aren't ready for review, convert to a draft PR.
Click "Convert to draft" or run gh pr ready --undo.
Click "Ready for review" or run gh pr ready to reengage.

Reviewed changes

Copilot reviewed 5 out of 5 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
internal/tui/mail.go Updates key routing and help bindings.
internal/tui/mail_test.go Tests x selection and z cover toggling.
internal/tui/covers_test.go Updates expected cover hints.
internal/tui/content.go Changes rendered cover hints to z.
internal/tui/calendar_views.go Updates a related comment.

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread internal/tui/mail.go
case "c":
return v.startCompose()
case " ", "space":
case " ", "space", "x":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f1aa5b1: the no-selection notice now reads "Select threads with space or x before starting a bulk reply", and the assertion in bulk_reply_test.go pins the new text.

Comment thread internal/tui/mail.go
case "n", "N":
return v.startCollectionPicker()
case "x":
case "z":

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixed in f1aa5b1. The shortcuts moved from README.md to docs/tui.md on main; the rebase updated them there: the key table lists Space or x for selection, and the cover paragraph names z to peek and z again to close it.

jwahdatehagh and others added 2 commits September 9, 2026 16:12
The HEY desktop app selects a thread in the list with x; the TUI only
answered to space. x now toggles the selection in the box list and on
the Previously Seen screen, matching the app.

x was the cover peek's key, so the peek moves to z — the cover hints in
the section headers and the help bar move with it.
…k key

The bulk-reply notice, the cover picker footer and docs/tui.md still named the
old keys: space alone for selection and x for the peek. basecamp#399 fixed the picker
footer to name the real peek key; that key is z now, so the footer follows it.
@jeremy

jeremy commented Sep 9, 2026

Copy link
Copy Markdown
Member

Rebased onto main (f1aa5b1, pushed to the PR branch): the contributor's commit applied cleanly, and one follow-up commit reconciles it with what has landed since and with the two open review threads.

The x/z collision with #399. #399 fixed the cover picker's footer to name the real peek key: it said "Press v to look under it" while x was the key that lifted the cover. This PR moves the peek to z so that x can select, like the HEY desktop app. Keeping #399's behavior means keeping the footer truthful about which key peeks, not keeping the letter x — so the footer now says "Press z to look under it", which is both what #399 was for and what this PR intends. No test pinned the footer text; the peek/select tests in mail_test.go cover the behavior.

Review threads. The bulk-reply notice now says "Select threads with space or x", with its test updated; the shortcut docs moved from README.md to docs/tui.md on main, and both references there (the key table and the cover paragraph) now name x for selection and z for the peek.

make check passes locally on the rebased branch.

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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants