Permalink
Browse files

Reweighted columns to make it more likely that useful information is …

…at the front. Tweak glob_packages so it doesn't crash in odd circumstances
  • Loading branch information...
1 parent 9e480d9 commit 9c2d32fff6274ad49013efe5f51688e635dcd297 @sublimator committed Feb 9, 2013
Showing with 3 additions and 3 deletions.
  1. +1 −1 helpers.py
  2. +1 −1 list_settings.py
  3. +1 −1 list_shortcut_keys.py
View
2 helpers.py
@@ -96,7 +96,7 @@ def view_related_packages(view):
dirs = []
# TODO: handle zips
- if fn and normpath(fn).startswith(pkg_path):
+ if fn and normpath(fn).startswith(pkg_path) and os.path.exists(fn):
folder = split(fn[len(pkg_path)+1:])[0].replace('\\', '/')
folder = folder.split('/')[0]
dirs.append(folder)
View
2 list_settings.py
@@ -40,7 +40,7 @@ def run(self, args=[]):
print (completions)
- display = format_for_display(settings, cols=(1,2,3))
+ display = format_for_display(settings, cols=(2,3,1))
ch = temporary_event_handler( lambda *a: [(c,c) for c in completions],
'on_query_completions')
def on_select(i):
View
2 list_shortcut_keys.py
@@ -119,6 +119,6 @@ def on_select(i):
window.run_command("open_file_enhanced", {"file" : (fn),
"regions" : regions})
- display = format_for_display(args, cols = (3, 0, 4))
+ display = format_for_display(args, cols = (3, 4, 0, ))
display = list(map(list, list(zip(display, [a[-2] for a in args]))))
window.show_quick_panel(display, on_select, 1)

0 comments on commit 9c2d32f

Please sign in to comment.