It’s unseasonably warm for Christmas here in Minnesota. It’s 50° out. To mark the weird occasion, I created a quick plugin for SearchLink that lets you run a search like: !current 55987 And get: Weather for Winona, Minnesota on 2023-12-25 at 12:53 PM: 51.8 and Light rain The plugin only outputs ‘embed’ style, it won’t…
I do most of my automation and string manipulation scripting using Ruby. I know it’s not the most popular language these days, but it’s the one I know the best (thanks to my days of hacking on TextMate bundles) and it’s usually the fastest way for me to solve a problem. I have reams of…
The Kaleidoscope giveaway has ended, and I have a winner to announce! The winners! Congratulations to Ken Bavier! You should have received an email with details, please let me know if you didn’t hear anything! But I didn’t win! If you didn’t win, sorry, but Kaleidoscope is still worth checking out. You can still save…
Ok, this one will probably wrap up this little run of key binding tricks. It’s been fun, though, and I’d love to answer any questions I can in the forum. If you’ve ever examined my master DefaultKeyBinding.dict (or even looked at the readme), you’ll see that I make use of a lot of multi-stroke key…
I guess it’s keybinding week this week. I’ve talked about the kill ring and repeat binding, but I’ve been digging in and revamping my own DefaultKeyBinding.dict file, so I keep wanting to share some of the cooler things it can do because I know the file in the project is pretty massive and hard to…
Thanks to HoudahSpot for sponsoring BrettTerpstra.com this week! I’ve been using it for years and swear by it as a way to find files that Spotlight can’t, quickly and easily. HoudahSpot is a powerful tool for finding and managing files on your Mac, with features beyond Spotlight. Have you shifted — by choice or by…
Another trick for readers interested in honing their keyboard-fu on macOS. In Vim, most operations have can have a count specified in the keystrokes for the command, e.g. 3dd to delete 3 lines. You can do similar in any Cocoa text field (all Apple apps, plus most native apps). You just need to specify a…
So you may have seen my KeyBindings project before. It’s an insanely large collection of keybinding tricks that work in any macOS text field. Well, any native cocoa field. You won’t have much luck in Electron or other non-native text editors. But for most uses, including in Safari, Mail, Notes, nvUltra, and most of the…
I’m excited to offer the next giveaway, a 1-year subscription ($96 value) for Kaleidoscope. There is no better program for diffing on macOS. From code to prose to images, see what changed with fine granularity. Plus great new Git integration! From the developer: Spot the differences in text and image files, or even folders full…
This post will only be of interest to people writing scripts in Ruby. Seriously, zero utility if you’re not using Ruby. Though I would be curious how you accomplish the same thing in other languages like Rust and Python, because I’ve never gotten too deep with string manipulation in anything other than Ruby, Swift, and…