TextExpander Snippets

I love using TextExpander through the day to reduce the amount of redundant typing and copy/pasta I do. It's an excellet tool that makes life a lot easier!

On the iPhone I use it with Editorial app as well so I can leverage my snippets on the go.

#Snippets

A collection of Snippets.

I have this split up into 3 separate snippets:

  • chrome.currtab.full.title
  • chrome.currtab.full.url
  • md:chrome.currtab.link

#chrome.currtab.full.title

This captures the current tab in Chrome's Title.

Content: JavaScript Label: chrome.currtab.full.title Abbreviation: chrometitle;

function getCurrTabTitle(doc) {
return doc.name();
}
var currTab = Application('Google Chrome').windows[0].activeTab;
getCurrTabTitle(currTab);

#chrome.currtab.full.url

This captures the current tab in Chrome's URL.

Content: JavaScript Label: chrome.currtab.full.url Abbreviation: chromeurl;

function getCurrTabLink(doc) {
return doc.url();
}
var currTab = Application('Google Chrome').windows[0].activeTab;
getCurrTabLink(currTab);

This uses the previous two snippets to compose the current tab in Chrome in Markdown link format.

Content: Plain Text Label: md:chrome.currtab.link Abbreviation: link;

[%snippet:chrometitle;%](%snippet:chromeurl;%)
Enjoy this article? Share it on Twitter!
View the source on GitHub
chaseonsoftware.com is powered by GatsbyJS, GitHub & Netlify.
Deployed commit of chaseonsoftware.com is 4dbe92
👋 Say Hi!