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 mode #7

Open
afranke opened this issue Jan 23, 2020 · 3 comments
Open

Monitor mode #7

afranke opened this issue Jan 23, 2020 · 3 comments

Comments

@afranke
Copy link

afranke commented Jan 23, 2020

It is quite common for people to want to preview the result as they edit a document. This could be done by having e.g. two terminal windows side by side, one with the editor and the other with mdr running. mdr would need to monitor the file for change.

  • That could be enabled with a --monitor flag (or something else if there is already something commonly used in other software that I am not aware of) and we probably don’t want mdr to be in this mode by default.
  • Scroll position needs to stay the same across reloads.
  • If for some reason the file is broken on reload (e.g. it was deleted, or it is breaking the markdown parser in any way) then it would be better to keep the previous state displayed (but maybe display a warning so authors know what’s up.
@MichaelMure
Copy link
Owner

Make sense to me. --watch maybe ?

@afranke
Copy link
Author

afranke commented Jan 23, 2020

--watch sounds good. No idea if anything else uses it, but it works for me.

@ghost
Copy link

ghost commented May 16, 2022

Optionally, a hotkey for explicit reloading of currently rendered file would be nice, when the program isn't running with monitor mode on.

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