I've remapped the search in the main view from the key s to /. Because the main view is kind of hardcoded, I've hacked around to replace the line \t* enter a [s]earch query\n with \t* [/] enter a search query\n. The replacement itself works fine, however neither the / gets propertized nor the clickable area is set correctly. Judging from the defun of mu4e~main-action-str it is looking for word boundaries, can it be patched to use other ascii glyphs (with the exception of brackets obviously), too?
\t* enter a [s]earch query\n
\t* [/] enter a search query\n
I've changed it a bit, now you should be able to use non-alphanum characters there
The code looks correct so far from the approach, but the regexp does no longer match anything. I've tested a bit and replacing \\[\\(\\.\\)\\] with \\[\\(.\\)\\] seems to do the trick. Can you verify this?
Hmmm.... it seems indeed that the regexp was incorrect -- but it worked for me, somehow. Anyway, I have updated the code.
That regexp does the face matching, the other part of the issue is that the mouse-over face doesn't extend correctly because it's looking for \\w. I've used another regex which extends the mouse-over to include the opening bracket this way, maybe you can include that, too?
I'm not sure if this is related, but my mu4e main buffer looks like:
* mu4e - mu for emacs version 0.9.9.5 C
* [*]ump to some maildir
* enter a [*]earch query
* [*]ompose a new message
* [* ] Unread messages
* [* ] Today's messages
* [* ] Last 7 days
* [* ] Messages with images
* [*]pdate email & database
* [*]bout mu4e
Any idea what might be causing this?
There was some interaction between some versions of emacs / mu4e which triggered this... however, it works fine if you upgrade your mu4e to a later version.