Sublime Forum

Clear non-saved state when changes are reverted manually

#1

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.

2 Likes

#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 :wink: ) 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

#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

#4

this thread may be a useful starting point for tracking changes:

1 Like