feat(SublimeText2.UtilPackages): cache packages

This commit is contained in:
Iristyle
2013-04-04 08:54:47 -04:00
parent 1e6f643a1b
commit d65666cdfc
541 changed files with 26347 additions and 0 deletions

View File

@@ -0,0 +1,3 @@
[
{ "keys": ["ctrl+shift+t"], "command": "open_recent_files" }
]

View File

@@ -0,0 +1,8 @@
This package adds a shortcut to open the most recently closed files.
Keyboard shortcut is `Ctrl+Shift+T`. Press it multiple times to go further back through previously closed files.
Version 1.01
------------
- Plugin now will open up to the 20 latest files. There may be a brief flicker when opening subsequent files (by repeatedly pressing the shortcut key)

View File

@@ -0,0 +1,14 @@
import sublime
import sublime_plugin
class OpenRecentFilesCommand(sublime_plugin.WindowCommand):
def run(self):
w = sublime.active_window()
counter = 0
numViews = len(w.views())
while (counter < 20):
w.run_command('open_recent_file', {"index": counter})
if numViews < len(w.views()):
break
counter += 1

View File

@@ -0,0 +1 @@
{"url": "https://github.com/spadgos/sublime-OpenRecentFiles", "version": "2011.10.03.10.20.08", "description": "A package which adds Ctrl+Shift+T to open the most recent files."}