I use a similar approach for my links in my blog posts, which are written in Markdown. By the way, you can make also a nice snippet for an introduction and information email for new students that includes all the necessary links. You can also use it to define snippets for essential links for new students, e.g., where they can find forms or more information they need. one that we organizing), project homepages, links to download code we share, links to download PDFs of our papers, etc. This could be my own homepage, a link to our research group homepage, one for a conference or workshop (e.g. I define a lot of times shortcuts for links to webpages. "ddate" will expand to the current date in the format "February 15, 2015".Some people use "x" or "y" to start snippets, which is another clever way. Other people use "." or " " as a prefix, but this can be an issue if you use TextExpander on your iOS devices, since you would have to switch your keyboard to numbers/symbols to get to the period and semicolon, which is an extra step and defies the whole idea of being faster. Since, most of the words don't start with two of the same letters (beside maybe "aardvark" or Spanish words like "llamar") you can avoid to trigger a snippet without wanting it. The most general rule for me is to double the first letter to make a snippet. Doubling the first letter to avoid confusion However, I also hope that this blog post inspires you to come up with your own "rules," which fit even better to your workflow. It is easier to remember a couple of general rules than every single snippet. The idea is, if I can't remember a snippet, I type it the way I would define it (i.e., according to my rules). Here are a couple of rules that I use to have a consistent way to define snippets. You have been warned :-)Ī "drawback" of this is that you will end up with tons of snippets, which makes it hard to remember them all. You will get all kinds of ideas and, after a while, you will not be able to live without it anymore. However, when you start making your first snippets and you have experienced the magic of it, you will be hooked. TextExpander is also one of these applications that at the beginning you think you will not have a lot of use for. Every time I have to work on another computer that does not have my snippets on it, it almost feels impossible for me to get anything done. I’m not sure how useful this script would be to everyday TextExpander users, but it’s really handy for anyone who’s writing about a TextExpander library.TextExpander is one of my favorite applications. Useful for short snippets only.ġ4: usage = '''Usage: tetable tefileġ6: Create a table that describes a TextExpander library.ġ9: -m, -markdown Markdown table (default)Ģ5: # Get the arguments from the command line.Ģ7: optlist, args = getopt.getopt(sys.argv, 'hmtw', )Ĥ9: basename, extension = os.path.splitext(infile)ĥ5: # Make sure it's a TextExpander file.ĥ7: print("%s is not a TextExpander file." % infile)Ħ4: print("Couldn't open %s to read from." % infile)ħ0: 'markdown':'| To insert | Type |\n|:-:|:-:|'}Ĩ3: for i in range(len(te)):Ĩ4: print row % (te, te)īecause of how I work, I made Markdown the default output format, but you could change that by changing Line 34. textexpander snippet file and generate a Markdown tableĦ: that describes its contents. Here’s the source code for tetable: python:ĥ: Read a. I used it to make the table in this post. Depending on the option you give it, tetable will produce either a Markdown, tab-separated, or HTML table. textexpander extension) and prints out a table of the library’s snippets and abbreviations. It’s called tetable, and it reads a TextExpander library file (a file with a. Speaking of teprefix, I’ve added a new script to my tedist GitHub library. Foot and inch marks-which can also be used for minutes and seconds in angular measures-have their own symbols.) (There’s a half-bright group of people who know that curly quotes (’ and ”) are wrong for feet and inches but seem to think that straight quotes (' and ") are OK. If you use a different abbreviation prefix, you can use my teprefix script to change the prefix to whatever you like. The abbreviations follow my usual pattern of starting with a semicolon. The symbols and their abbreviations are as follows: To insert It’s called “Numeric” and it’s what I use to insert fractions and other numeric and sort-of-numeric symbols. Here’s another simple but useful TextExpander snippet library. Next post Previous post A few more simple TextExpander snippets
0 Comments
Leave a Reply. |