Open Cuperino opened 2 years ago
- [x] (Automate) Have QPrompt automatically reload externally modified files. Do this even for files that are in formats read only to QPrompt.
- [ ] (Safety) If the file has been modified inside of QPrompt, ask before reloading contents.
- [ ] (Convenience) Have option to force always reload a file for the current session.
- [ ] (Convenience) Process changes as an edit and not a file load to enable undoing.
- [ ] (Revert principle) Have the option to disable auto-reloading without closing the file.
Implemented auto reload behavior. For now it is on by default and can't be disabled.
Is there an example workflow to achieve this?
The way that it's currently implemented, you simply open a file in QPrompt and open the same file in another program that can edit this file; such as a text editor for text and HTML, or a markdown editor for .md files. Then you simply save your changes in the editor program and see them update automatically on QPrompt.
When reloading, your prompting position should be kept. You may see a small stutter if a file is updated while QPrompt is prompting. Any changes done to the file locally will be lost. Undo and redo history will also be lost.
If the file is located on a folder that can be accessed from other computers, QPrompt would reload it, incorporating changes pushed from someplace else. There are several ways in which shared folders can be configured, I personally have not tested QPrompt with any of them.
This feature is meant to be used as one of the bases for adding support for NDI.
Original suggestion from Michael Turnnell:
Takeaway: