Skip to content

Select threads with x as well as space - #359

Open
jwahdatehagh wants to merge 1 commit into
basecamp:mainfrom
jwahdatehagh:tui-select-with-x
Open

Select threads with x as well as space#359
jwahdatehagh wants to merge 1 commit 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 and section-header hints updated accordingly.

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

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

Review in cubic

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.
@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":
Comment thread internal/tui/mail.go
case "n", "N":
return v.startCollectionPicker()
case "x":
case "z":
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.

2 participants