Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

read stdin/write stdout #24

Open
fbicknel opened this issue Jun 14, 2019 · 0 comments
Open

read stdin/write stdout #24

fbicknel opened this issue Jun 14, 2019 · 0 comments

Comments

@fbicknel
Copy link

It might be very helpful if toc-md could read stdin and write the result to stdout. This would make filtering a file in vim produce the TOC.

Seems safe (and desired) if you made this the default, but a command line argument would be helpful if you can't.

Example use (in vim):

:1,$!toc-md<return>

Or, from normal mode:

gg!Gtoc-md<return>

Thanks for reading!

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

No branches or pull requests

1 participant