The Artima Developer Community
Sponsored Link

Ruby Buzz Forum
Little TextMate tricks

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Obie Fernandez

Posts: 608
Nickname: obie
Registered: Aug, 2005

Obie Fernandez is a Technologist for ThoughtWorks
Little TextMate tricks Posted: Nov 26, 2006 11:30 PM
Reply to this message Reply

This post originated from an RSS feed registered with Ruby Buzz by Obie Fernandez.
Original Post: Little TextMate tricks
Feed Title: Obie On Rails (Has It Been 9 Years Already?)
Feed URL: http://jroller.com/obie/feed/entries/rss
Feed Description: Obie Fernandez talks about life as a technologist, mostly as ramblings about software development and consulting. Nowadays it's pretty much all about Ruby and Ruby on Rails.
Latest Ruby Buzz Posts
Latest Ruby Buzz Posts by Obie Fernandez
Latest Posts From Obie On Rails (Has It Been 9 Years Already?)

Advertisement

I figure out new little tricks with TextMate almost everyday. In preparing the previous blog entry about upgrading to Ruby 1.8.5, I wanted to grab my command-line history in the shell where I had done the upgrade. Mostly to see if it would work, I piped the output of history to mate:

history | mate

Yep, it worked fine. (POLS?)

The history output had numbers along the left side, which I wanted to get rid of. It took me a minute to remember that holding the alt/option key triggers column-based selection. I then cut and paste the history commands over to a TextMate window were I was writing the blog post. To my dismay, a bunch of extra trailing whitespace came over also. I tend to get pretty anal about details like that, so I wanted to get rid of it. (I realize now that I could have used Bundles > Text > Converting / Stripping > Remove Trailing Spaces in Document.) However, I didn't think of that at the time. What I did think of was to use Text > Filter Through Command... with sed, and it worked fairly well (using sed 's/\w+$//' as the command).

I find myself using Text > Filter Through Command... more and more often. What do you use it for?

Read: Little TextMate tricks

Topic: Back to DBI Previous Topic   Next Topic Topic: Emacs: the editor of mediocre UNIX programmers?

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use