On 7. Nov 2018, at 13:44, Dr Eberhard W Lisse el@lisse.na wrote:
I occasionally want to pipe JSON (or XML, or other formats) like
csvjson file.csv | mate -
It does display the file but as plain text.
my hack would be
csvjson file.csv > /tmp/___q.json | mate -m untitled /tmp/___q.json && rm /tmp/___q.json
ergo write to a file with the desired extension first, then open it in TM as ‘untitled’ and finally remove the temporary file.
Option -t for mate doesn’t work either for me.
-Hans