[MlMt] Debugging custom keystrokes (another newbie question)

Robert Goldman rpgoldman at sift.net
Fri Nov 10 10:11:24 EST 2017


Thank you very much!  One thing I didn't understand before is the 
file-ordering matter.  From your email it sounds like the *first* 
binding of a key wins when there are multiple bindings.  Is that 
correct?  I had assumed that it would be the *last* binding, so I put my 
key bindings in the list after the Postbox ones.

Once again, I very much appreciate the time you have taken to help with 
this.

Best regards,
Robert


On 10 Nov 2017, at 8:55, Benny Kjær Nielsen wrote:

> On 7 Nov 2017, at 16:54, Robert Goldman wrote:
>
>> It's quite simple, and it was mostly copied from the manual and from 
>> GitHub resources.  This is all it is:
>> ```
>> {
>>     "^@\U000D" = "send:"; // Cmd + Return
>>     "^@\U000A" = "send:"; // Cmd + Enter
>>     // spacebar like Thunderbird
>>     " " = "scrollPageDownOrNextUnreadMessage:";
>>     // tag commands
>>     "t" = {
>> 	"p" = ( "setTag:", "Primrose" );
>>         };
>> }
>> ```
>>
>> and it's in a file called `rpg-bindings.plist` in 
>> `~/Library/Application Support/MailMate/Resources/KeyBindings/`
>
> Ok, I had not problems with this file.
>
>> When I try using the `t-p` combination in the messages window, it 
>> seems like some other keybinding interfere, and I get a thread 
>> display (I believe this is coming from the Postbox bindings).
>
> Yes, if you switch the order of the files then it should work. Note, 
> that by default `t` is already taken by a setting in the Tags 
> preferences pane, but apparently you have changed/disabled that.
>
>> When I try Cmd + Return in a compose buffer, I just get a beep.
>
> The key binding above is Ctrl + Cmd + Return. Maybe that's the 
> problem?
>
>> I have probably just done something obvious and stupid, but I can't 
>> for the life of me figure out what... I don't even know how to tell 
>> if my file is failing to parse (although `plutil` says it is OK), or 
>> if the file is simply never being read.
>
> As promised MailMate now logs when loading/parsing fails.
>
> -- 
> Benny


> _______________________________________________
> mailmate mailing list
> mailmate at lists.freron.com
> https://lists.freron.com/listinfo/mailmate
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20171110/b4e761ba/attachment.html>


More information about the mailmate mailing list