Confirm change at leaving a file

Related feature requests: