Re: [MlMt] How to change key bindings in Composer window?
Hi Benny, Thanks for your reply, and investing the time to try the key definitions! I'm glad to report the mystery is now solved. I've used the same key bindings file for years and years, so I felt certain the syntax and definitions had to be correct [1, 2]. When you said there was nothing in MailMate that would override this, I started searching for other possibilities and found the issue: I also use KeyboardMaestro, and some time ago [3], had defined shortcuts to move me to the beginning and end of the message list in MailMate -- using the same keys, because meta-< and meta-> are the Emacs keys for "go to beginning of buffer" and "go to end of buffer", and that was what made sense for my muscle memory. The KeyboardMaestro keys were overriding the MM keys. Thanks again, MH [1] I use a largish key bindings file to implement Emacs-like keys in as many application as I can. [2] The use of parens around the key definitions seems to be a valid alternative syntax. Thanks for pointing out the use of double quotes, though; I did try that too just to make sure, before figuring out the KM conflict. [3] I had defined them when I first tried MM long ago and was back then trying to adjust things to work for me, but I stopped for a while and only recently picked up MM again and full converted to using it. But of course, I forgot what I had done in KM before. On 3 Jun 2018, at 3:42, Benny Kjær Nielsen wrote: On 2 Jun 2018, at 20:33, Mike Hucka wrote: So, this is interesting. Most of my key bindings from ~/Library/KeyBindings/DefaultKeyBinding.dict work, but the two that don't seem to act properly are: "~<"= (moveToBeginningOfDocument:); "~>"= (moveToEndOfDocument:); It might not matter, but to make it less likely to be parsed wrongly I would write: "~<"= "moveToBeginningOfDocument:"; "~>"= "moveToEndOfDocument:"; Is there something special that MailMate does with respect to those two particular functions? Not as far as I can see. I tried reproducing the issue, but I cannot make the key bindings above work at all. (I use ⌘⇡ and ⌘⇣.) I also tried in TextEdit with no success. What happens is that instead of moving to the beginning/end of the document, they cause the cursor to move to the beginning/end of paragraphs. That does seem to imply that MailMate is involved, but right now I have no idea how. Just for the record, I believe [this old resource](https://www.hcs.harvard.edu/~jrus/site/cocoa-text.html) is still the best one on system key bindings, but you probably already found that one. -- Benny https://freron.com/become_a_mailmate_patron/ ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate
Re: [MlMt] How to change key bindings in Composer window?
On 2 Jun 2018, at 20:33, Mike Hucka wrote: So, this is interesting. Most of my key bindings from ~/Library/KeyBindings/DefaultKeyBinding.dict work, but the two that don't seem to act properly are: "~<"= (moveToBeginningOfDocument:); "~>"= (moveToEndOfDocument:); It might not matter, but to make it less likely to be parsed wrongly I would write: "~<"= "moveToBeginningOfDocument:"; "~>"= "moveToEndOfDocument:"; Is there something special that MailMate does with respect to those two particular functions? Not as far as I can see. I tried reproducing the issue, but I cannot make the key bindings above work at all. (I use ⌘⇡ and ⌘⇣.) I also tried in TextEdit with no success. What happens is that instead of moving to the beginning/end of the document, they cause the cursor to move to the beginning/end of paragraphs. That does seem to imply that MailMate is involved, but right now I have no idea how. Just for the record, I believe [this old resource](https://www.hcs.harvard.edu/~jrus/site/cocoa-text.html) is still the best one on system key bindings, but you probably already found that one. -- Benny https://freron.com/become_a_mailmate_patron/ ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate
Re: [MlMt] How to change key bindings in Composer window?
So, this is interesting. Most of my key bindings from ~/Library/KeyBindings/DefaultKeyBinding.dict work, but the two that don't seem to act properly are: "~<"= (moveToBeginningOfDocument:); "~>"= (moveToEndOfDocument:); Is there something special that MailMate does with respect to those two particular functions? What happens is that instead of moving to the beginning/end of the document, they cause the cursor to move to the beginning/end of paragraphs. Thanks, MH On 2 Jun 2018, at 1:06, Benny Kjær Nielsen wrote: On 31 May 2018, at 5:49, Mike Hucka wrote: I've been able to change my key bindings in many Mac applications by using a custom ~/Library/KeyBindings/DefaultKeyBinding.dict file, but the bindings do not appear to have effect when editing new mail message text in the Composer window. (Or at least, some of the key bindings do not work for me as expected.) Hmm, that should work. I have some customizations to, e.g., write ⌘ and that works for me. For example: ~~~ { "^m" = { "^a"= ("insertText:", "\U2318"); /* C-a command (apple) */ } } ~~~ ⌃m followed by ⌃a enters the ⌘-symbol. I know about, and already use, a MailMate key bindings definition file in ~/Library/Application Support/MailMate/Resources/KeyBindings/, and it does work -- for MailMate actions outside the Composer window. Is there a way to affect the key bindings in the editing panel of the Composer window? If the keys are not swallowed by the NSTextView then MailMate key bindings should work, but it can be tricky to find something which is not swallowed. (I don't have much guidance for you on that.) -- Benny https://freron.com/become_a_mailmate_patron/ ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate
Re: [MlMt] How to change key bindings in Composer window?
On 31 May 2018, at 5:49, Mike Hucka wrote: I've been able to change my key bindings in many Mac applications by using a custom ~/Library/KeyBindings/DefaultKeyBinding.dict file, but the bindings do not appear to have effect when editing new mail message text in the Composer window. (Or at least, some of the key bindings do not work for me as expected.) Hmm, that should work. I have some customizations to, e.g., write ⌘ and that works for me. For example: ~~~ { "^m" = { "^a"= ("insertText:", "\U2318"); /* C-a command (apple) */ } } ~~~ ⌃m followed by ⌃a enters the ⌘-symbol. I know about, and already use, a MailMate key bindings definition file in ~/Library/Application Support/MailMate/Resources/KeyBindings/, and it does work -- for MailMate actions outside the Composer window. Is there a way to affect the key bindings in the editing panel of the Composer window? If the keys are not swallowed by the NSTextView then MailMate key bindings should work, but it can be tricky to find something which is not swallowed. (I don't have much guidance for you on that.) -- Benny https://freron.com/become_a_mailmate_patron/ ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate
[MlMt] How to change key bindings in Composer window?
I've been able to change my key bindings in many Mac applications by using a custom ~/Library/KeyBindings/DefaultKeyBinding.dict file, but the bindings do not appear to have effect when editing new mail message text in the Composer window. (Or at least, some of the key bindings do not work for me as expected.) I know about, and already use, a MailMate key bindings definition file in ~/Library/Application Support/MailMate/Resources/KeyBindings/, and it does work -- for MailMate actions outside the Composer window. Is there a way to affect the key bindings in the editing panel of the Composer window? MH ___ mailmate mailing list mailmate@lists.freron.com https://lists.freron.com/listinfo/mailmate