Skip to content

docs: Mention md-tui support for reading from stdin#4268

Merged
ruben-arts merged 1 commit intoprefix-dev:mainfrom
pavelzw:md-tui
Aug 4, 2025
Merged

docs: Mention md-tui support for reading from stdin#4268
ruben-arts merged 1 commit intoprefix-dev:mainfrom
pavelzw:md-tui

Conversation

@pavelzw
Copy link
Collaborator

@pavelzw pavelzw commented Aug 4, 2025

You can also view the markdown file directly from stdin using [`md-tui`](https://github.com/henriklovhaug/md-tui).

```bash
pixi diff <(git show HEAD~20:pixi.lock) pixi.lock | pixi diff-to-markdown | mdt
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I get this error on zsh

Custom { kind: Other, error: "Failed to initialize input reader" }
Exception ignored on flushing sys.stdout:
BrokenPipeError: [Errno 32] Broken pipe

It works if I do

pixi diff <(git show HEAD~20:pixi.lock) pixi.lock | pixi diff-to-markdown > test.md 
mdt test.md

Copy link
Collaborator Author

@pavelzw pavelzw Aug 4, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

which mdt version do you use? 0.9.0 is not out yet on conda-forge, hopefully in ~30min

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

try again @ruben-arts

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perfect!

@pavelzw pavelzw marked this pull request as ready for review August 4, 2025 14:07
@ruben-arts ruben-arts merged commit a79cf45 into prefix-dev:main Aug 4, 2025
41 checks passed
@pavelzw pavelzw deleted the md-tui branch August 4, 2025 14:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants