terminal_markdown_viewer icon indicating copy to clipboard operation
terminal_markdown_viewer copied to clipboard

Read from stdin

Open hXtreme opened this issue 5 years ago • 2 comments

Allowing mdv to read from stdin when no file is provided would allow users to pipe markdown text in a more intuitive fashion.

hXtreme avatar Mar 16 '20 00:03 hXtreme

You actually can do this already. An example cat README | mdv - Essentially you need to add - after mdv.

Aerex avatar Apr 09 '20 00:04 Aerex

yes I'm aware that it can be done in that way. What I'm asking is that mdv should default to stdin when no file is provided, much like other programs such as awk, grep, less, ...

hXtreme avatar Apr 09 '20 03:04 hXtreme