ctrl+shift+p filters: :st2 :st3 :win :osx :linux
Browse

Clear Dirty Flag

by 2shortplanks ST3

Sublime Text 3 Plugin to Clear the Dirty (unsaved) Flag

Details

  • 1.1.0
  • github.​com
  • github.​com
  • 10 years ago
  • 12 minutes ago
  • 10 years ago

Installs

  • Total 264
  • Win 167
  • Mac 69
  • Linux 28
Jul 9 Jul 8 Jul 7 Jul 6 Jul 5 Jul 4 Jul 3 Jul 2 Jul 1 Jun 30 Jun 29 Jun 28 Jun 27 Jun 26 Jun 25 Jun 24 Jun 23 Jun 22 Jun 21 Jun 20 Jun 19 Jun 18 Jun 17 Jun 16 Jun 15 Jun 14 Jun 13 Jun 12 Jun 11 Jun 10 Jun 9 Jun 8 Jun 7 Jun 6 Jun 5 Jun 4 Jun 3 Jun 2 Jun 1 May 31 May 30 May 29 May 28 May 27 May 26
Windows 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Mac 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Linux 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0

Readme

Source
raw.​githubusercontent.​com

ClearDirtyFlag

Sublime Text 3 plugin to clear the dirty flag (a.k.a. the “unsaved” round dot in the tab) on any view that has identical content to the on-disk version.

Sublime Text will mark a file as dirty if you edit it, even if you end up changing the content back to what is the on disk version. Similarly, if you switch back and forwards between git branches, lots of files will be potentially marked as dirty even though they're what you want.

If you ever find youself wondering “is this file really changed?” then this plugin is for you.

Usage

Execute the “Clear Dirty Flag” command from the command pallet. All views that have the dirty flag set will have it cleared if the file on disk matches what's in the view.

Author

Written by Mark Fowler mark@twoshortplanks.com

http://github.com/2shortplanks/ClearDirtyFlag