Skip to content

Instantly share code, notes, and snippets.

View michaelkonecny's full-sized avatar

Michael Konečný michaelkonecny

  • Czech Republic
  • 06:29 (UTC +01:00)
View GitHub Profile
@michaelkonecny
michaelkonecny / close_deleted_files.py
Created October 10, 2017 15:02
Sublime Text plugin - close tabs containing deleted files on refocus
"""
When a view is focused, goes through all open tabs and closes those, whose files don't exist anymore.
Tested in Sublime Text 3.0
"""
import sublime_plugin
import sublime
import time
import os