Browse Source

make show_active_projects_first configurable

tags/0.7.14^0
Randy Lai 2 years ago
parent
commit
cd1b9d2ea2
No known key found for this signature in database GPG Key ID: C624A96B760AC797
2 changed files with 8 additions and 4 deletions
  1. +2
    -1
      project_manager.py
  2. +6
    -3
      project_manager.sublime-settings

+ 2
- 1
project_manager.py View File

@@ -219,7 +219,8 @@ class Manager:
if self.settings.get('show_recent_projects_first', True):
self.move_recent_projects_to_top(plist)

self.move_openning_projects_to_top(plist)
if self.settings.get('show_active_projects_first', True):
self.move_openning_projects_to_top(plist)
return list(map(itemgetter(0), plist)), list(map(itemgetter(1, 2), plist))

def move_recent_projects_to_top(self, plist):


+ 6
- 3
project_manager.sublime-settings View File

@@ -1,16 +1,19 @@
{
// A list of folders containing *.sublime-project files, e.g.,
// "projects_path": ["path/to/custom/Projects", "another_path/to/Projects"]
"projects_path":[],
"projects_path": [],

// Enable local projects directory, such a directory will be named as
// "Projects - computer_name", where computer_name is your computer hostname.
// It would be useful if Sublime Text settings are synced across different computers.
"use_local_projects_dir":false,
"use_local_projects_dir": false,

// Show recent projects first
// if false, the projects are sorted alphabetically
"show_recent_projects_first":true,
"show_recent_projects_first": true,

// Show active projects first
"show_active_projects_first": true,

// The string to use as the active indicator for the project list.
"active_project_indicator": "*",


Loading…
Cancel
Save