-
Notifications
You must be signed in to change notification settings - Fork 161
Expand file tree
/
Copy pathplugin.py
More file actions
33 lines (28 loc) · 792 Bytes
/
plugin.py
File metadata and controls
33 lines (28 loc) · 792 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
"""
A ctags plugin for Sublime Text.
"""
import sublime
if int(sublime.version()) < 3143:
print("CTags requires Sublime Text 3143+")
else:
import sys
# Clear module cache to force reloading all modules of this package.
prefix = __package__ + "." # don't clear the base package
for module_name in [
module_name
for module_name in sys.modules
if module_name.startswith(prefix) and module_name != __name__
]:
del sys.modules[module_name]
del prefix
del sys
# Publish Commands and EventListeners
from .plugins.cmds import (
CTagsAutoComplete,
NavigateToDefinition,
RebuildTags,
SearchForDefinition,
ShowSymbols,
TestCtags,
)
from .plugins.edit import apply_edit