Add support for pipes
$ echo string | ./ted

What's wrong? I never said that it works with pipes
What should be done in this case? echo string | ted should be the same as echo string > ~/.config/ted/buffer and echo string | ted file.txt the same as echo string > file.txt? But and echo string | ted file1.txt file2.txt? The same as echo a | tee file1.txt > file2.txt?
Or should it just print an error message and die?
Or should it try to remove all files in /?
Fixed?
What should be done in this case?
echo string | tedshould be the same asecho string > ~/.config/ted/bufferandecho string | ted file.txtthe same asecho string > file.txt? But andecho string | ted file1.txt file2.txt? The same asecho a | tee file1.txt > file2.txt? Or should it just print an error message and die? Or should it try to remove all files in/?
It should paste the stdin in the file and start editing it, it already does that, but it hangs in the process