Home Download Buy Blog Forum Support

Filter Though Command / Insert Command Output

Filter Though Command / Insert Command Output

Postby Josh on Thu Sep 08, 2011 3:58 am

This is a TextMate feature that I haven't seen in Sublime. Is there a way to emulate this?
Josh
 
Posts: 2
Joined: Thu Sep 08, 2011 3:56 am

Re: Filter Though Command / Insert Command Output

Postby Rhywun on Fri Sep 09, 2011 12:25 am

Can you explain the feature a little more? I don't understand what it is.
Rhywun
 
Posts: 39
Joined: Fri Jun 24, 2011 3:19 am
Location: Brooklyn

Re: Filter Though Command / Insert Command Output

Postby Jay Levitt on Wed Sep 28, 2011 2:24 pm

Yep, sublimator got it. There are two handy commands in TextMate:

- Execute Selection Inserting Result. Not sure if this is smart about what "execute" means; quick testing on a ruby file just runs the selection through bash.

- Filter Through Command, which brings up this pane:

Screen shot 2011-09-28 at 10.22.01 AM.png
Filter Through Command
Screen shot 2011-09-28 at 10.22.01 AM.png (55.22 KiB) Viewed 797 times
Jay Levitt
 
Posts: 52
Joined: Sun Sep 25, 2011 6:22 pm

Re: Filter Though Command / Insert Command Output

Postby gferguson on Sat Dec 31, 2011 10:11 pm

I really miss the "Execute Selection Inserting Result" command from TextMate.

It's the feature that lets us run code, and TextMate autofills in the "# =>" markers with the returned values. I can have a file like this:

Code: Select all
asdf = "foo" # =>
sdfg = "bar" # =>
puts asdf + sdfg


and run the "Execute Selection Inserting Result" command, and get:

Code: Select all
asdf = "foo" # => "foo"
sdfg = "bar" # => "bar"
puts asdf + sdfg
# >> foobar


It's great for quickly showing whether something worked right, or documenting the results.
gferguson
 
Posts: 1
Joined: Sat Dec 31, 2011 9:59 pm


Return to General Discussion

Who is online

Users browsing this forum: BestGreek, W3C [Validator] and 34 guests