feat(SublimeText2.UtilPackages): cache packages
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
[
|
||||
{ "keys": ["ctrl+shift+t"], "command": "open_recent_files" }
|
||||
]
|
@@ -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)
|
@@ -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
|
@@ -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."}
|
Reference in New Issue
Block a user