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

Monitor into pager #62

Open
YodaEmbedding opened this issue Jun 19, 2018 · 2 comments
Open

Monitor into pager #62

YodaEmbedding opened this issue Jun 19, 2018 · 2 comments

Comments

@YodaEmbedding
Copy link

YodaEmbedding commented Jun 19, 2018

To view the output in a pager, one can do:

mdv sample.md | less -r

However, this does not support automatic refreshing.


Request: I would like monitoring while paging:

mdv -m -p sample.md

Notice the proposed option -p, which pipes output into a pager. When the monitored content is changed, the pager display is refreshed.

It would be particularly useful if the current line number is maintained every time a refresh is triggered.

This may or may not require an internal implementation of a pager, depending upon if there are pagers which support bidirectional communication.

@AXGKl
Copy link
Member

AXGKl commented Oct 2, 2023

sry for the 5 years.

I don't get the request. How could the pipe source know what's happening at the other end 🤔

Anybody has some example code for that?

@YodaEmbedding
Copy link
Author

YodaEmbedding commented Oct 2, 2023

I've updated the post to clarify. "Bidirectional" piping is one possible implementation idea, if pager programs support it. If not, you may need to use a modified implementation of a pager.

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

2 participants