Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
welefen committed Apr 12, 2012
1 parent fa6468e commit 080eacd
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion KeymapManager.py
Expand Up @@ -31,6 +31,7 @@ def run(self, edit):
dirs.sort(key=lambda x: x.lower())
plugins = []
ignored_packages = settings.get("ignored_packages")
single_max_nums = int(settings.get("single_max_nums"))
for name in dirs:
if name in ignored_packages:
continue
Expand All @@ -55,7 +56,7 @@ def run(self, edit):
i = 0
for item in jsonData:
#only show 3 items if num max than 3
if i >= 3:
if single_max_nums > 0 and i >= single_max_nums :
break
if "keys" not in item or "command" not in item:
continue
Expand Down
Binary file modified KeymapManager.pyc
Binary file not shown.
3 changes: 2 additions & 1 deletion KeymapManager.sublime-settings
@@ -1,3 +1,4 @@
{
"ignored_packages": ["CSS", "Vintage", "User", "Default", "KeymapManager"]
"ignored_packages": ["CSS", "Vintage", "User", "Default", "KeymapManager"],
"single_max_nums": 3
}

0 comments on commit 080eacd

Please sign in to comment.