dokieli icon indicating copy to clipboard operation
dokieli copied to clipboard

Scripts for multiple docs in one container

Open rhiaro opened this issue 10 years ago • 1 comments

Related to #82

If you use New / Save As to create a document in a container that you've previously created documents in, and choose to copy the scripts/css across, it overwrites scripts/css that had been copied there before.

  • This is redundant / unnecessary if they're the same.
  • If they're different, could result in unintended changes to earlier docs (eg. if CSS had been customised, or things have been updated, or the user is creating docs from different places with different versions of the code).

It would be nice to assume multiple docs in one container should share the same scripts/css so they're not duplicated, but isn't necessarily a safe assumption. If someone does a Save As from somewhere running an out-of-date version of the JS, which overwrites what was there already, that could cause problems.

Starting to get complicated UI-wise, but could have a prompt saying 'we already found scripts and media, reuse, overwrite or rename?'

rhiaro avatar Jan 10 '16 00:01 rhiaro

I think that the focus should be on informing the user about an existing resource and let them pick if they want to overwrite or not. If we have the functionality in place, it can be enabled where it makes sense. This is a common interaction in desktop software.

I think this is another user preference which should make its way into application/user configuration. That way, the user has a global preference so if they don't want to be bothered every time, they won't.

I agree that there may be multiple articles in the same directory and giving some warning to the user about the overwrite will help prevent that - at least at that point they are making the decision.

csarven avatar Jan 10 '16 08:01 csarven