[MlMt] [MAYBE SPAM] Comments in MM .plist files?

Jolin Warren jolinwarren+mailmate at oakandapple.org
Wed Sep 28 03:01:46 EDT 2022


You can put comments in the KeyBindings files using `/* comment */`. 
Here’s the beginning of my keybinding file (I think originally based 
on some MailMate template I found) and it works fine:

~~~
{
	/*
	 * |              Keybindings                 |
	 * | Shortcut | Code    | Description         |
	 * | -------- | ------- | ------------------- |
	 * | a        | a       | -                   |
	 * | ⌃ a      | ^a      | Control-a           |
	 * | ⌥ a      | ~a      | Option-a            |
	 * | ⇧ a      | A       | Shift-a             |
	 * | ⌘ a      | @a      | Command-a           |
	 * |          |         |                     |
	 * | ⇧ F2     | $\UF705 | Shift-F2            |
	 * | Num 2    | #2      | 2 on numeric keypad |
	 *
	 * →The $ should only be used to bind to the shift key (⇧) for 
‘special keys’ (that don’t have a character equivalent)
	 * →Note that the order of multiple modifiers is important. It must 
be in this order: #^~$@
	 * →A list of funcion, arrow, etc keycodes can be found at 
<http://xahlee.info/kbd/osx_keybinding_key_syntax.html>
	 *
	 * MailMate selectors: 
<https://manual.mailmate-app.com/key_binding_selectors>
	 *
	 * Some selectors taken from 
<https://github.com/chauncey-garrett/mailmate/blob/master/KeyBindings/gmail-extended.plist>
	 *
	 */

	"."			 = "toggleReadState:"; // toggle read/unread state (i.e. the 
“//Seen” flag)
	","			 = ( "markAsRead:", "nextMessage:" );

~~~


-- 
=> Jolin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freron.com/pipermail/mailmate/attachments/20220928/c7d2de0f/attachment.htm>


More information about the mailmate mailing list