simplify icon indicating copy to clipboard operation
simplify copied to clipboard

"Select Unread" shortcut stops working when doing a search like: `label:X in:inbox`

Open macintacos opened this issue 4 months ago • 5 comments

I have "select unread" mapped to the key combination xu. This doesn't seem to work at all when I turn Simplify on and am in a search for something like "label:X in:inbox". I confirmed that, when I turned Simplify off, that shortcut works just fine.

Notable: the xu shortcut seems to work just fine in other contexts, like for example searches for just the label. It seems to not like the in:inbox search or something.

macintacos avatar Aug 20 '25 14:08 macintacos

Also, I just switched to a Firefox-based browser (Zen), but can confirm I also see this on Chrome

macintacos avatar Aug 20 '25 15:08 macintacos

I assume you have done this mapping with Gmail's custom keyboard shortcuts option? And I assume you removed or changed the shortcut for select a message (the default is x) so you can chain xu to select unread?

Simplify does not play nicely with Gmail's custom keyboard shortcuts. But there may be a bug I can fix here as it sounds like it works in all views but the inbox (probably because of bundles). I think I was intercepting and replacing select keyboard shortcuts in a bundled view so I can support selecting a bundle of messages.

leggett avatar Aug 20 '25 20:08 leggett

@leggett appreciate the response!

I assume you have done this mapping with Gmail's custom keyboard shortcuts option? And I assume you removed or changed the shortcut for select a message (the default is x) so you can chain xu to select unread?

I honestly don't know if if my shortcuts are non-default, Gmail doesn't really make that obvious in their UI. However, I'm not entirely sure that the shortcut itself is relevant - the shortcut I'm referring to executes the "Select unread conversations" Gmail action, which is not some automation that I came up with or something like that to chain selections together, it's native to Gmail:

Image

I just confirmed with a coworker that the default shortcut is different from mine (I think it's *t or something like that), but again, not sure if that's relevant.

But there may be a bug I can fix here as it sounds like it works in all views but the inbox (probably because of bundles).

I think you actually are right about this! I just turned off bundles, and everything seems to work perfectly. I'll use this as a "workaround" for now.

macintacos avatar Aug 21 '25 16:08 macintacos

There are a lot of keyboard shortcuts that I detect, intercept, and make work as you would expect or enhance. To do that, I have to know what the shortcuts are in advance.

The simplest example and most difficult to support is J/K or up/down when messages are bundled to go between messages in list view or conversation view. That's because I change the order of messages that you see but Gmail still think the messages are in the original order.

There is also shift+up/down to select multiple messages (a Simplify shortcut) and things like auto-select where I select the conversation with keyboard focus and apply the action for the pressed keyboard shortcut.

x is Gmail's shortcut for select a message and I intercept it and change what it does when you have focus on a bundle (as the intent is to select all the messages in the bundle which Gmail obviously does not natively support).

So your shortcut xu is getting caught when you are in a bundled view. I should catch it only when focus is on a bundle but that would still mean your custom shortcut (xu) sometimes doesn't work as you expect.

There is still a bug here (the default *u doesn't work in a bundled inbox either and should) and I will fix that but issues main remain with other custom Gmail keyboard shortcuts.

Make sense?

leggett avatar Aug 21 '25 18:08 leggett

Totally makes sense, really appreciate the clarity!

macintacos avatar Aug 21 '25 18:08 macintacos