Skip to content

Instantly share code, notes, and snippets.

@phillcoxon
Created September 30, 2015 02:05
Show Gist options
  • Select an option

  • Save phillcoxon/09760a88e08928cf84d8 to your computer and use it in GitHub Desktop.

Select an option

Save phillcoxon/09760a88e08928cf84d8 to your computer and use it in GitHub Desktop.
MailMate Custom Keybindings
{
// Jeremy's person key bindings for MailMate
//http://jeremy.cowgar.com/2014/09/22/my-mailmate-keybindings/
// Email Creation
"c" = "newMessage:";
"r" = "replyAll:";
"R" = "replySender:";
"f" = "forwardMessage:";
// Sending
"@\U000A" = "send:"; // ⌘+return
"@\U000D" = "send:"; // ⌘+enter
"@\\" = ( "sendAndMoveParentToMailbox:", "/Delegated" );
// Filtering
"s" = "moveToJunk:";
"h" = (
"copyToMailbox:", "/Spam.TrainGood",
"moveToMailbox:", "INBOX" );
"x" = "deleteMessage:";
"X" = ( "moveThreadToMailbox:", "trash" );
"m" = "moveToMailbox:";
"M" = "moveThreadToMailbox:";
"d" = ( "moveToMailbox:", "/Deferred" );
"D" = ( "moveThreadToMailbox:", "/Deferred" );
"e" = ( "moveToMailbox:", "/Delegated" );
"E" = ( "moveThreadToMailbox:", "/Delegated" );
"a" = "archive:";
// Navigation
"." = "rootOfThread:";
"," = "lastOfThread:";
"/" = "searchAllMessages:";
"j" = "nextMessage:";
"k" = "previousMessage:";
"J" = "nextThread:";
"K" = "previousThread:";
"g" = {
"g" = "goToMailbox:";
" " = ( "goToMailbox:", "INBOX");
"i" = ( "goToMailbox:", "INBOX" );
"f" = ( "goToMailbox:", "FLAGGED" );
"a" = ( "goToMailbox:", "ALL_MESSAGES" );
"A" = ( "goToMailbox:", "ARCHIVE" );
"d" = ( "goToMailbox:", "F5DEB018-5694-4805-AB01-6EF1E94CDAB8" ); // Deferred
"e" = ( "goToMailbox:", "016DB3A1-1BE6-4468-A04D-468A727D11FB" ); // Delegated
"w" = ( "goToMailbox:", "4BC9DBA9-ED59-4D90-A66F-5472477ED9D4" ); // Waiting on Reply
"s" = ( "goToMailbox:", "Spam" );
};
// Message State
"!" = "toggleFlag:";
"n" = "toggleReadState:";
"-" = "toggleMuteState:";
// Miscellaneous
"u" = "undo:";
"z" = "redo:";
"o" = "showThread:";
// Phill's additions
// Based on http://lists.freron.com/mailmate/2014-April/002466.html and http://lists.freron.com/mailmate/2015-January/003578.html
"0" = ( "removeTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", "removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" ); // clear
"1" = ( "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", "removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" ); // red
"2" = ( "setTag:", "\\Flagged", "setTag:", "$MailFlagBit0", "removeTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" ); // orange
"3" = ( "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", "setTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" ); // yellow
"4" = ( "setTag:", "\\Flagged", "setTag:", "$MailFlagBit0", "setTag:", "$MailFlagBit1", "removeTag:", "$MailFlagBit2" ); // green
"5" = ( "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", "removeTag:", "$MailFlagBit1", "setTag:", "$MailFlagBit2" ); // blue
"6" = ( "setTag:", "\\Flagged", "setTag:", "$MailFlagBit0", "removeTag:", "$MailFlagBit1", "setTag:", "$MailFlagBit2" ); // purple
"7" = ( "setTag:", "\\Flagged", "removeTag:", "$MailFlagBit0", "setTag:", "$MailFlagBit1", "setTag:", "$MailFlagBit2" ); // grey
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment