5/11/2023 0 Comments Textmate m1![]() This is a plain text file that’s formatted in a way that’s reminiscent of JSON. The Cocoa text system keybindings are saved in ~/Library/KeyBindings/DefaultKeyBinding.dict. So, to hold onto some connection with my older use of ⌃⌘C, I chose to combine Control and Command to the three keys. 2 And ⌘-Comma is the standard shortcut for opening an app’s preferences window. ⌘-Period has been used to cancel commands for as long as the Mac has been around. Of course, I can’t just combine the Command key with these to run my macros. The relationship between the names of these keys and their function is tenuous, but the key to “make what’s to the left larger.” More important is that the order of the keys from left to right is the order I associate with case changing: Lowercase, Uppercase, Capitalize. I chose three keys at the other end of the lower row:, and ?. They work because they’re all in a row, they’re in the same order as we usually list the functions, and two of the keys have a nominal relationship to their function. I took inspiration from the X, C, and V keys used for Cut, Copy, and Paste. Writing the commands was simple enough (I’ll show them later)-what was tricky was deciding where to bind them. And if I were going to add an uppercase keybinding, I might as well add a lowercase one while I was at it. ![]() For example, I’ve run into situations when I needed ALL CAPS, but I didn’t press the Caps Lock key long enough for it to activate, and I’d type path in a shell script instead of PATH. As I was doing so, I thought about extending them. So anyway, after a couple of days of using my new MacBook Air, I realized that my typing of capitalized words hadn’t improved, and I needed to install both my BBEdit capitalization macro and my keybindings file. His huge set of keybindings is unquestionably the best set of examples you can find on the topic, but I still think Jacob Rus’s old web pages ( here and here) are the best tutorials. If you know about keybindings, it’s probably through Brett Terpstra. On the Mac, I can extend this correction to (some) other apps through the Cocoa text system and keybindings. The editor goes back to the beginning of the word, capitalizes it, and then resets the cursor to where it was before I typed ⌃⌘C.I realize that I’ve typed part of a word-or maybe the entire word-and didn’t capitalize it.Emacs, NEdit, 1 TextMate, BBEdit-they’ve all been given a way for me to correct my miscapitalizations. For as long as I’ve used scriptable text editors, I’ve written macros to correct for this tendency. Sometimes, as I try to correct for that tendency, my pinkies linger too long on the Shift key, and I end up with words that have their first two letters CApitalized. Usually, my pinkies lift off the Shift key a little too soon, and the word ends up all lower case. I’ve used the setting up of my M1 MacBook Air to fiddle with my longstanding capitalization keybinding.Īs I’ve explained before, I have a problem typing capitalized words. Because it takes some time to find and import your old scripts and settings, the small amount of extra time it takes to tweak them doesn’t seem like much of a burden. Setting up a new computer from scratch is the perfect opportunity to rethink the way you’ve been working.
0 Comments
Leave a Reply. |