Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

On OSX TextMate have the alias mate which you can use with the pipe to open other program's stdout.

How can I achieve the same effect in Windows 7 with Notepad++?

Ex.: git diff master|edit

share|improve this question
add comment

1 Answer

up vote 3 down vote accepted

No, Windows does not have equivalent functionality to /dev/stdin or /dev/fd on Unixes. (It would be stdin, not stdout, from Notepad++'s point of view.) While GUI programs can read from stdin, they must be specially written to do so.


@echo off & setlocal
set f=%temp%\stdin-%random%%random%%random%.txt
more > "%f%"
start /wait notepad++ "%f%"
del "%f%"
share|improve this answer
    
And there's no way to write a wrapper? –  Lohoris May 14 '12 at 8:08
    
@Lohoris: See update. –  grawity May 14 '12 at 8:12
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.