Hi Joost,
On Wednesday Feb 17 2016, Joost Kremers wrote:
> I'd like to suggest a small patch to `mu4e~read-char-choice' that will
> allow mu4e to accept lower-case characters to match upper-case choice
> options if there is no relevant lower-case option.
>
> Some background: I have three contexts corresponding to my mail
> accounts, which are called "Fastmail", "Work" and "Gmail". In situations
> where mu4e asks me to select a context, I'm presented with a prompt
> "[F]astmail, [W]ork, [G]mail", and I have to type `<shift>-f',
> `<shift>-w' or `<shift>-g' to select one. Instead, I'd like to be able
> to just type `f', `w' or `g'.
Think of all the key presses saved! :-)
> The attached patch makes this possible, while still keeping the ability
> to have e.g., `f' and `F' stand for different options. Basically, if you
> type a lower-case letter, `mu4e~read-char-choice' checks if it occurs as
> an option. If not, it converts the choice to upper-case and checks if
> that exists. So for example the call:
I've generalized the idea a bit -- if there's no exact match, we try to
match case-insensitively. It's in git - sorry, it's not your patch, but
in spirit it's there.
Kind regards,
Dirk.
--
Dirk-Jan C. Binnema Helsinki, Finland
e:dj...@djcbsoftware.nl w:
www.djcbsoftware.nl
pgp: D09C E664 897D 7D39 5047 A178 E96A C7A1 017D DA3C