Micro: Pipes

Created on 21 Feb 2020  路  2Comments  路  Source: zyedidia/micro

Dear @zyedidia, I鈥檇 like to launch micro to write a few lines and pass them on w/o creating a file.
Not sure if it is currently possible, nevertheless I tried micro - | curl -F "upfile=@-" https://... w/o success, because micro insists on naming a file after Ctrl+Q is pressed.

What do you think about that?

Most helpful comment

The issue is closed because it is resolved. Micro will now write to stdout when it closes if stdout is connected to a pipe. If the editor is started with stdout connected to a pipe, the buffer will be unsaveable. See the referenced commit for details.

All 2 comments

Is this being closed because it is resolved or another reason? I like the fact that you could pipe out but.. most programs will ask for a save name/path before saving. Wouldnt /dev/stdout work as far as saving/piping out?

The issue is closed because it is resolved. Micro will now write to stdout when it closes if stdout is connected to a pipe. If the editor is started with stdout connected to a pipe, the buffer will be unsaveable. See the referenced commit for details.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Mohamed3on picture Mohamed3on  路  3Comments

KhodeN picture KhodeN  路  3Comments

Calinou picture Calinou  路  3Comments

AndreyTheHacker picture AndreyTheHacker  路  3Comments

johnmbaughman picture johnmbaughman  路  3Comments