axiros / terminal_markdown_viewer

Styled Terminal Markdown Viewer
Other
1.8k stars 105 forks source link

Read from stdin #82

Open hXtreme opened 4 years ago

hXtreme commented 4 years ago

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

Aerex commented 4 years ago

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

hXtreme commented 4 years ago

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, ...