Skip to content

Instantly share code, notes, and snippets.

View glaucocustodio's full-sized avatar
🇧🇷

Glauco Custódio glaucocustodio

🇧🇷
View GitHub Profile
@glaucocustodio
glaucocustodio / SwitchToFile.py
Created November 14, 2012 16:00 — forked from jbjornson/SwitchToFile.py
Show a input panel to switch to a currently open file
# -------------------------------------------
# You will need to create a key mapping for this, something like:
# { "keys": ["alt+e"], "command": "switch_to_file" }
# -------------------------------------------
class SwitchToFileCommand(sublime_plugin.WindowCommand):
def run(self):
self.display_list = []
self.views = []
for view in self.window.views():
path = view.file_name()