Skip to content

Instantly share code, notes, and snippets.

@driesg
Last active December 30, 2015 05:59
Show Gist options
  • Save driesg/7786266 to your computer and use it in GitHub Desktop.
Save driesg/7786266 to your computer and use it in GitHub Desktop.
Custom keybindings for MailMate. Some my own, others from various sources
{
// Message Actions
"o" = "openMessages:"; // Don't really use this. ⌘o still works
"j" = "markAsJunk:";
"J" = "markAsNotJunk:";
"s" = "toggleFlag:";
"m" = "toggleReadState:";
"a" = ( "setTag:", "\\Seen", "archive:"); // archive and mark read
"A" = ( "selectWithFilter:", "#thread-id = ${#thread-id}","setTag:", "\\Seen", "archive:" ); // Select whole thread, mark as read and archive
"=" = ( "moveToMailbox:",'/Action');
"\U007F" = ( "setTag:", "\\Seen", "deleteMessage:" ); // ⌫ delete and mark as read
// Navigation/Mailbox actions
"g" = {
"a" = ( "goToMailbox:", "ALL_MESSAGES" );
"i" = ( "goToMailbox:", "INBOX" );
"s" = ( "goToMailbox:", "SENT" );
"f" = ( "goToMailbox:", "FLAGGED" );
"=" = ( "goToMailbox:", "BDC80A1A-8F60-4B3C-8EF4-0ECF19B62B58" ); // Action smart mailbox
"l" = "goToMailbox:"; // Don't really use this. ⌘t still works
"1" = ( "makeFirstResponder:", "mailboxesOutline" );
"2" = ( "makeFirstResponder:", "mainOutline" );
"3" = ( "makeFirstResponder:", "messageView" );
};
"c" = "showCorrespondence:";
"t" = "showThread:";
"v" = "moveToMailbox:";
"r" = "markThreadAsRead:";
"/" = "mailboxSearch:";
// Composer
"@S" = "sendAndArchiveParent:"; // ⌘⇧S
"@$=" = ( "sendAndMoveParentToMailbox:",'/Action'); // ⌘⇧=
"@]" = "increaseQuoteLevel:";
"@[" = "decreaseQuoteLevel:";
// Markdown shortcuts thanks to Brett Terpstra: https://github.com/ttscoff/KeyBindings/
// bold selection
"@b" = (selectWord:, setMark:, swapWithMark:, deleteToMark:, insertText:, "**", yank:, insertText:, " ", moveLeft:, insertText:, "**", moveRight:, deleteBackward:);
// italicize selection
"@i" = (selectWord:, setMark:, swapWithMark:, deleteToMark:, insertText:, "*", yank:, insertText:, " ", moveLeft:, insertText:, "*", moveRight:, deleteBackward:);
}
@sheriferson
Copy link

I added a few of your keybindings to my keybindings file, and just wanted to say thanks for making that available!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment