Obviously, you don't want to manually create all your snippets in each version, so what's the solution?įortunately, TextExpander includes two syncing options that have you covered. This is also true if you set up TextExpander on another Mac. None of your groups or snippets will import from your Mac. Before long, you'll have to purchase the mobile version as well so that you can access your snippets when you're working from your iPad or iPhone.īy default, when you download the mobile version, it will simply be an empty app. The longer you own TextExpander, the more you'll find that it worms its way into your workflow so deeply that you almost can't imagine working without it. If you don't like the results you're getting, just hit the "Use Default Delay" button to return to the normal behavior. Tip: Things can get a little screwy when you start messing with the clipboard delay. The problem is that, when I go to paste in the original text, things don't work out quite like I want. Next, I type out my abbreviation for the tag that I want to use, expand it, then paste in the original piece of text, thereby wrapping it in the tag. The process is as follows: First, I select something, then I cut it to the clipboard. Often, I use it to wrap some existing text snippet in a tag. One of my only peeves with TextExpander has to do with how it restores the clipboard. In this section, we'll take a look at some of the ways that I set up and tweak TextExpander for the best possible experience. Advanced Tricks - We'll finish off with a look at some of TextExpander's most complex features and learn to use them effectively to save tons of time and effort.Simple Tricks - We'll start off our TextExpander tricks with some features that seasoned users will likely be familiar with, but new users may have looked over.Trigger Advice - In this section, I share some general advice and best practices for setting up effect triggers to expand your snippets.Setup - Here you'll find some tweaks and changes that you can make to optimize your TextExpander experience.The following tutorial is split up into four sections: But are you using TextExpander to its full ability or are you barely scraping the surface of what it can do? This tutorial takes a deep dive into this incredibly versatile tool and teaches you everything you need to know to become a TextExpander master. Regular expressions and TextExpander are a fantastic combination.If you're a TextExpander user, then you know that it can have a drastic positive impact on your productivity. I use regular expressions to save myself a ton of time on repetitive text manipulation. Replace all lines which start with "- " with "\t" Here’s the snippet I use to do that: // Start with the clipboard content …and turn them into HTML list items: Suggested snippets exclude most single dictionary wordsĪdds new notification preference for snippet suggestionsįixes secure input notifications for Chrome Fixes secure input notifications for Chrome Adds new notification preference for snippet suggestions I use a JavaScript regular expression to take text lists such as this: - Suggested snippets exclude most single dictionary words Enter your abbreviation, and voilà, you get your stripped URL. Set an abbreviation, then copy the link above to your clipboard. Strip the HTML query everything after the ? up toĢ. Var result = TextExpander.pasteboardText Make a new snippet in TextExpander, and set the Content: popup to JavaScript, then enter this as the snippet content: // Start with the clipboard content Here’s an example of what you’ve got:įor fun, let’s also handle the case when you’ve got the URL in HTML format, such as:ġ. You want to strip everything from the question mark (?) to the closing quotation mark, if present. This is the perfect job for a regular expression, because there’s a pattern. Let’s say that you frequently copy URLs to the clipboard and that these URLs have a bunch of tracking junk at the end in the form of a query string. Blogger and podcaster Jason Snell writes that regular expressions saved him “hundreds of hours of drudgery”. Regular Expressions can be incredibly useful when searching and replacing patterns in text. This is specifically for TextExpander 5 and TextExpander touch 3.5 and later. Use regular expressions on your Mac, iPad, and iPhone with TextExpander JavaScript snippets.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |