Hello,
Is there a setting or a plugin to clear the non-saved state when changes are reverted manually?
By manually I mean that I remove the changes using backspace for example… and not using the ctrl+z.
It works this way in Atom editor.
Clear non-saved state when changes are reverted manually
rellect
#1
2 Likes
kingkeith
#2
you could request it as a feature to https://packagecontrol.io/packages/Change%20Tracker although it doesn’t look like it is really maintained or used
Do you know how Atom does it? (I don’t want to scan the entire source code to check ) calculating a checksum of the file on each modification seems a bit extreme to me, that’s all - and that’s the only way I can think of reliably
doing it atm
0 Likes
rellect
#3
I’m not sure how Atom does it.
What I had in mind is storing the modified lines and watch for modifications only on these lines, rather than the whole file.
0 Likes