panwriter icon indicating copy to clipboard operation
panwriter copied to clipboard

Feautre request: auto-reload when file changes on file system

Open calvh opened this issue 4 years ago • 5 comments

Enhancement suggestion:

Add support for live preview (e.g., when editing file in another editor, automatically refresh changes, or add an option to do so)

calvh avatar Jul 29 '21 19:07 calvh

I'm curious: why would you want to edit the file in another editor? Which one?

mb21 avatar Jul 30 '21 09:07 mb21

I normally use Vim for text editing, so would love to have a markdown viewer with pandoc support

calvh avatar Jul 31 '21 23:07 calvh

have a look at https://github.com/jgm/pandoc/wiki/Pandoc-Extras and search for vim... maybe any of those projects suit your needs?

mb21 avatar Aug 01 '21 08:08 mb21

Hi, came here for exactly this feature request.

My use case, however, is that I synchronize a directory of markdown files using syncthing. So when I modify a markdown file on my phone while waiting in line for lunch, I would like those modifications to show up on the laptop a little whiles later.

For now, even just a notification saying that the file on-disk has changed would be sufficient to remind me to open the file again. Would that be within the spirit of panwriter?

hsgg avatar Jun 14 '23 20:06 hsgg

notification saying that the file on-disk has changed would be sufficient to remind me to open the file again. Would that be within the spirit of panwriter?

yes, good idea! that should be easy to implement...

auto-reloading would make sense if we would switch file handling to be macOS-like... (what was introduced with macOS Lion)... but I think that's still not common on Windows and Linux? And there are no cross-platform APIs I know of that make it easy...

mb21 avatar Jun 15 '23 07:06 mb21