Skip to content

Commit 2287644

Browse files
committed
Merge branch 'develop'
2 parents 0cf3855 + 60e179e commit 2287644

71 files changed

Lines changed: 223 additions & 12 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

PACKAGES.md

Lines changed: 4 additions & 0 deletions

core/aliases.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,7 @@ def delete_alias_files(syntaxes):
8989

9090
def remove():
9191
shutil.rmtree(path.overlay_aliases_path(), ignore_errors=True)
92+
shutil.rmtree(path.overlay_cache_path(), ignore_errors=True)
9293

9394
sublime.set_timeout_async(remove)
9495

core/settings.py

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ def _on_change_package():
7171
themes.patch(_cached_settings)
7272

7373

74-
@debounce(2000)
7574
def _on_change_user():
7675
global _cached_packages
7776
settings = sublime.load_settings(USER_SETTINGS)
@@ -80,5 +79,10 @@ def _on_change_user():
8079
packages.remove(OVERLAY_ROOT)
8180
if packages != _cached_packages:
8281
_cached_packages = packages
83-
themes.patch(_cached_settings, on_demand=True)
84-
aliases.check(_cached_settings["aliases"], on_demand=True)
82+
83+
@debounce(2000)
84+
def update_overlay():
85+
themes.patch(_cached_settings, on_demand=True)
86+
aliases.check(_cached_settings["aliases"], on_demand=True)
87+
88+
update_overlay()

core/utils/path.py

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -22,24 +22,28 @@ def package_icons_path():
2222

2323

2424
def overlay_path():
25+
return os.path.join(sublime.packages_path(), OVERLAY_ROOT)
26+
27+
28+
def overlay_cache_path():
2529
return os.path.join(sublime.cache_path(), OVERLAY_ROOT)
2630

2731

2832
def overlay_aliases_path(file_name=""):
29-
return os.path.join(sublime.cache_path(), OVERLAY_ROOT, "aliases", file_name)
33+
return os.path.join(sublime.packages_path(), OVERLAY_ROOT, "aliases", file_name)
3034

3135

3236
def overlay_patches_path():
33-
return os.path.join(sublime.cache_path(), OVERLAY_ROOT, "patches")
37+
return os.path.join(sublime.packages_path(), OVERLAY_ROOT, "patches")
3438

3539

3640
def overlay_patches_general_path():
37-
return os.path.join(sublime.cache_path(), OVERLAY_ROOT, "patches", "general")
41+
return os.path.join(sublime.packages_path(), OVERLAY_ROOT, "patches", "general")
3842

3943

4044
def overlay_patches_specific_path():
41-
return os.path.join(sublime.cache_path(), OVERLAY_ROOT, "patches", "specific")
45+
return os.path.join(sublime.packages_path(), OVERLAY_ROOT, "patches", "specific")
4246

4347

4448
def overlay_aliases_resource_path(file_name=""):
45-
return "Cache/{}/aliases/{}".format(OVERLAY_ROOT, file_name)
49+
return "Packages/{}/aliases/{}".format(OVERLAY_ROOT, file_name)

icons/icons.json

Lines changed: 99 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,19 @@
292292
],
293293
"color": "red"
294294
},
295+
"file_type_authorized_keys": {
296+
"color": "purple",
297+
"syntaxes": [
298+
{
299+
"extensions": [
300+
"authorized_keys",
301+
"authorized_keys2"
302+
],
303+
"name": "Plain Text (Authorized Keys)",
304+
"scope": "source.authorized_keys"
305+
}
306+
]
307+
},
295308
"file_type_awk": {
296309
"color": "red",
297310
"syntaxes": [
@@ -514,12 +527,25 @@
514527
"syntaxes": [
515528
{
516529
"extensions": [
517-
"cfc",
530+
"cfc"
531+
],
532+
"name": "Plain Text (CFC)",
533+
"scope": "embedding.cfml, source.cfscript.cfc"
534+
},
535+
{
536+
"extensions": [
518537
"cfm",
519538
"cfml"
520539
],
521-
"name": "Plain Text (ColdFusion)",
522-
"scope": "source.cfscript.cfc, text.html.cfm, source.cfml.script, embedding.cfml"
540+
"name": "Plain Text (CFM)",
541+
"scope": "embedding.cfml, text.html.cfml, text.html.cfm"
542+
},
543+
{
544+
"extensions": [
545+
"cfs"
546+
],
547+
"name": "Plain Text (CFS)",
548+
"scope": "source.cfml.script"
523549
}
524550
]
525551
},
@@ -1684,6 +1710,19 @@
16841710
}
16851711
]
16861712
},
1713+
"file_type_known_hosts": {
1714+
"color": "graphite",
1715+
"syntaxes": [
1716+
{
1717+
"extensions": [
1718+
"known_hosts",
1719+
"known_hosts.old"
1720+
],
1721+
"name": "Plain Text (Known Hosts)",
1722+
"scope": "source.known_hosts"
1723+
}
1724+
]
1725+
},
16871726
"file_type_kotlin": {
16881727
"color": "blue",
16891728
"syntaxes": [
@@ -2330,6 +2369,27 @@
23302369
],
23312370
"color": "red"
23322371
},
2372+
"file_type_pem": {
2373+
"color": "blue",
2374+
"syntaxes": [
2375+
{
2376+
"extensions": [
2377+
"pem",
2378+
"asc",
2379+
"cer",
2380+
"cert",
2381+
"crt",
2382+
"id_dsa",
2383+
"id_ed25519",
2384+
"id_ed448",
2385+
"id_eddsa",
2386+
"id_rsa"
2387+
],
2388+
"name": "Plain Text (PEM Key)",
2389+
"scope": "source.pem"
2390+
}
2391+
]
2392+
},
23332393
"file_type_perl": {
23342394
"color": "graphite",
23352395
"syntaxes": [
@@ -2587,6 +2647,18 @@
25872647
],
25882648
"color": "sky"
25892649
},
2650+
"file_type_public_key": {
2651+
"color": "blue",
2652+
"syntaxes": [
2653+
{
2654+
"extensions": [
2655+
"pub"
2656+
],
2657+
"name": "Plain Text (Public Key)",
2658+
"scope": "source.pubkey"
2659+
}
2660+
]
2661+
},
25902662
"file_type_pug": {
25912663
"aliases": [
25922664
{
@@ -2991,6 +3063,30 @@
29913063
}
29923064
]
29933065
},
3066+
"file_type_ssh_config": {
3067+
"color": "graphite",
3068+
"syntaxes": [
3069+
{
3070+
"extensions": [
3071+
"ssh_config"
3072+
],
3073+
"name": "Plain Text (SSH Config)",
3074+
"scope": "source.ssh_config"
3075+
}
3076+
]
3077+
},
3078+
"file_type_sshd_config": {
3079+
"color": "graphite",
3080+
"syntaxes": [
3081+
{
3082+
"extensions": [
3083+
"sshd_config"
3084+
],
3085+
"name": "Plain Text (SSHD Config)",
3086+
"scope": "source.sshd_config"
3087+
}
3088+
]
3089+
},
29943090
"file_type_shell": {
29953091
"color": "green",
29963092
"syntaxes": [
577 Bytes
1 KB
1.52 KB
224 Bytes
372 Bytes

0 commit comments

Comments
 (0)