textmate / rmate

Edit files from an ssh session in TextMate
http://blog.macromates.com/2011/mate-and-rmate/
514 stars 81 forks source link

Allow reading from stdin (similar to local `mate`) #26

Closed nanoant closed 11 years ago

nanoant commented 11 years ago

This change provides same functionality like local mate tool for reading from stdin, either when stdin is not a TTY or - input file is specified.

sorbits commented 11 years ago

Pulled, thanks — though when saving, rmate will save to a file named -.

The way mate deals with this is that it “saves” to stdout (when the “file” is stdin). This is also useful for example running something like ls|[r]mate|sh.