Tired of ads? Enjoy an ad-free experience by signing up.
Rick Martin Ā· Ā· 4 min read

How We Live-Blogged GMIC With TextMate

TextMateA few people have been asking about how we live-blogged the Global Mobile Internet Conference last week, so I thought I’d share a little. I toyed with TextMate Snippets last year and I thought that this GMIC live-blog might be another case where I could use it.

Spoilers: Here are the end results> Live-blog day 1 | Live-blog day 2

Here’s what I wanted to do starting out:

  • Have anchor links (or Winerlinks) for each update, each with a unique timestamp
  • Provide a ā€˜Tweet This’ option after quotable quotes

On day 1, I used the following TextMate Snippets (read: keyboard shortcuts that produce long reusable strings of text) to achieve those two requirements.

For the anchor links:

This string appears when I type ā€˜t+[TAB].’ Then when I type the timestamp in the ā€˜1:enumerate’ area, the other two instances of ā€˜$1’ are filled in simultaneously, and then I press [tab] to skip to the ā€˜$0’ placemark. Ta-da! Anchor links achievement unlocked!

Possible improvement: ISO time? Update: Improvement made! Now with ISO time automagically input. šŸ™‚

For the ā€˜Tweet This’ link I type ā€˜w+[TAB]’ to insert the following string, which is just a Twitter status link tacked onto my anchor link snippet. When I write the live blog content (in the ā€˜2:enumerate’ area, it gets mirrored and types into the Twitter status link. Cool! Note that there’s another ā€˜$1’ at the end of the URL to link directly to the anchor tag. Now we can send the link to this particular live blog update to Twitter. (and the peasants rejoice!)

Yes, I had to determine our live-blog URL before it was actually published, but that’s easy enough. The problem here lies in having a Twitter status link that includes a Penn-Olson URL with hashtag. It just won’t work (i.e. paste it into the browser and it doesn’t fill out the Tweet for you).

Stay ahead in Asia’s tech landscape

You've reached your 2 free content limit for the month. Sign up for free to read the full story.

šŸ„ For casual readers / šŸ‘¶ Free

Basic

US$0

Free forever

Get instant access to this article and more every month

0 premium content

Unlimited news briefs

5

5 articles

Ad-free reading experience

Just US$0 per day

āŒ›Sign up in 20s. No payment details needed.

šŸ“– For learners / šŸ‘ Starter

Lite

US$4.92/month

Billed annually at US$59/year

Get instant access to this article and more every month

4

4 premium content

Unlimited news briefs & articles

Ad-free reading experience

Just US$0.17 per day

Cancel anytime

Our subscriber community includes professionals from these companies:

Stay updated on the go with our mobile app.

Get latest insights with smoother, more personalized experience through TIA mobile app.

Community Writer

Rick Martin

Rick Martin lives in Tokyo where he writes about technology in Japan, China, and around Asia. After writing full-time for TechInAsia from 2011 to January 2013, he moved on to pastures new at The Bridge. He can be reached via his website, 1Rick.com