icecoder / ICEcoder

Browser code editor awesomeness
http://icecoder.net
Other
1.41k stars 348 forks source link

If file changed via find & replace and is open, open it and put current in diff pane #990

Open mattpass opened 2 years ago

mattpass commented 2 years ago

It would be so much better if we could tweak... When performing a replace/replace all in selected/all files, if the document is open, show a message that the document has changed, would you like to load the saved version and put your in editor version the diff pane.

This is the most suitable solution, whether your in editor version is saved or not - as your saved/unsaved version is put aside and the version from drive loaded and diff mode started so you can see what changed, make edits and handle as you then wish.

The current solution we have to handle clashing saved versions via the datetime check provides much of what we need here.