Posts Tagged “snippet”

  • Swearing politely with TextExpander

    I make a concerted effort to not curse online. I've broken that rule more often in recent years, but never cursing online for 20 years served me well. Especially these days on Facebook, where my family (and friends who don't know me as well but actually see me face to face) frequent, it tends to be bad form. (Rory Vaden discusses this in Take the Stairs, and he and I dive in a bit on Systematic 126).…

  • Logging snippets for Sublime Text

    Following most of the same patterns as TextMate snippets, Sublime Text snippets can be a great timesaver. One of the things I've been doing recently is assigning keyboard shortcuts to snippets instead of tab expansions, allowing me to apply them to selected text with the $SELECTION placeholder. That, combined with some text mutation offers some serious timesaving options. To illustrate, I thought I'd share a couple of very handy logging snippets.…

  • Automating dynamic date math in TextExpander

    Here's a TextExpander trick for automating dynamic portions of snippets. It's a way to allow the power of shell scripting inside of regular text snippets, avoiding extra fill-ins or running two snippets. First, a short backstory.…

  • A couple of new TextExpander snippets

    I added a couple of simple TextExpander snippets to the Tools set. The first pair grabs the current (foreground) url from Chrome or Safari and inserts it, the second pair does the same but shortens with Bit.ly.…

  • New TextExpander tools for bitly and CloudApp

    I added a couple of new snippets to the Tools section of the TextExpander tools this morning. One expands bit.ly urls, and one grabs the direct link to a Cloud.app upload.…

  • TextExpander Tools updated

    I've posted a much-needed update to my TextExpander Tools collection. About 60% of the snippets have been updated/repaired. You can find them all and subscribe or download them (and customize the prefixes) with my TE-snippet tool. If you're currently subscribed to any of the Snippet groups, your snippets will update automatically. I didn't change any shortcuts, but I removed some snippets that relied on no-longer-existing services and added a few new ones.…

  • Auto-pairing for MarsEdit and TextEdit using TextExpander

    Chetan Kunte recently sent me a TextExpander experiment he was working on, and I thought I'd post it and my explorations of it. It's designed to add auto-pairing for bracket and quote characters to MarsEdit, and it's based on a bit of information that I hadn't been aware of before.…

  • TextExpander tools for AppleScript editing

    I added a new group to the TextExpander Tools collection this morning: a set of snippets for working in AppleScript editor. The group is pretty barebones right now, but handy nonetheless. Feel free to submit any additions or expansions you come up with, I'll gladly include them in the set (and credit you publicly).…

  • Placeholder image TextMate Snippet

    Yesterday, I posted a quick TextExpander snippet for inserting placeholder images into an HTML layout using placehold.it. I took a minute today to convert this to a TextMate snippet as well, and wanted to share it as I find it immensely useful.…

  • Clippable updated to remove source code line numbers

    I made a couple of minor changes to the Clippable bookmarklet, mostly in the way it handles SyntaxHighlighter code blocks. The SyntaxHighlighter plugin is used (too) often to format and color code source snippets in websites. The result when clipping a page is that the code you get still has line numbers, but no option to view the raw source without going back to the web page. Then you end up manually editing out the line numbers if you want to copy and paste the code, which can be a pain in…