Skip to content

Type to narrow the label and folder picker - #294

Merged
g0shed merged 3 commits into
mainfrom
label-picker-search
Dec 3, 2026
Merged

g0shed merged 3 commits into
mainfrom
label-picker-search

Conversation

@g0shed

@g0shed g0shed commented Dec 3, 2026

Copy link
Copy Markdown
Contributor

The label and folder picker now opens with a search entry in focus, so you can file mail without leaving the keyboard.

  • Typing narrows the list. The match is case-insensitive and finds the text anywhere in the name, so work also finds Work/Tax.
  • Up and Down move the highlight over the matches. The first match is highlighted by default, and rows that cannot take a pick (the folder the mail is already in) are skipped.
  • Enter applies the highlighted row exactly as a click does, for label accounts and folder accounts, and for mail from several accounts.
  • Escape closes the picker.
  • When nothing matches, the picker says "No label matches that." or "No folder matches that."
  • The entry is named "Find a label" or "Find a folder" for screen readers. The entry that already existed for folders hidden from the sidebar keeps its "Search all folders" wording.
  • With the Gmail shortcut set, v opens the same picker. v was free there. The default set is unchanged.

The new strings are translated in every language. The filtering and the Up/Down stepping are plain functions with unit tests. I checked the picker in the demo in light and dark: typed filter, Down moving the highlight, and the empty result.

Fixes #280

The picker opens with a search entry in focus. Typing narrows the rows, Up and Down move the highlight, and Enter applies it as a click does. Gmail's shortcuts get v for it.
@g0shed
g0shed merged commit 8e5368f into main Dec 3, 2026
23 checks passed
@g0shed
g0shed deleted the label-picker-search branch December 3, 2026 22:12
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.

Move/Label command == Gmail

1 participant