docs: show custom keymaps in mail picker prompt title (#22)#23
Conversation
Mirror the pattern already used by the calendar picker (calendar.lua line 169): embed the picker's hotkey hints directly in prompt_title so users can discover the mappings without reading the source or hunting for Telescope's <C-/> help popup. No behavior change, cosmetic only.
There was a problem hiding this comment.
Code Review
This pull request updates the prompt title in the Telescope mail extension to display helpful keybinding shortcuts. Feedback suggests correcting the label for the C-r keybinding from reply-all to reply to accurately reflect its actual implementation and prevent user confusion.
Important
The consumer version of Gemini Code Assist on GitHub is being sunset. Starting June 18, 2026, new organization installations will be blocked, and all code review activity will officially cease on July 17, 2026.
For more details on the timeline and next steps, please review the Help Documentation.
|
|
||
| pickers.new(opts, { | ||
| prompt_title = ' Notmuch Search', | ||
| prompt_title = ' Notmuch · C-r:reply-all C-o:browser C-t:tag C-y:msgid C-l:preview', |
There was a problem hiding this comment.
The prompt title labels <C-r> as reply-all. However, looking at the implementation of the <C-r> mapping (lines 74-125), it only extracts the From header and populates the To field of the reply draft, without including other recipients (like Cc). Therefore, it functions as a standard reply rather than a reply-all. Labeling it as reply would be more accurate and prevent user confusion.
prompt_title = ' Notmuch · C-r:reply C-o:browser C-t:tag C-y:msgid C-l:preview',
Closes #22
Mirrors the pattern already used by the calendar picker in
lua/nvim-mail/calendar.lua(line 169): embed the picker's hotkey hints directly inprompt_titleso users can discover the mappings without reading the source or hunting for Telescope's<C-/>help popup.Before
After
No behavior change, cosmetic only. All existing telescope tests still pass.