Browse Source

remove show_open_files setting as the bug was fixed

master
Randy Lai 6 years ago
parent
commit
19446390de
  1. 5
      Project Manager.sublime-settings
  2. 17
      README.md
  3. 2
      pm.py

5
Project Manager.sublime-settings

@ -9,10 +9,7 @@
// import sys; sys.modules['Project Manager'].pm.get_node() in your sublime console
// "use_local_projects_dir": true
// it is used to fix a sublime bug:
// https://github.com/SublimeTextIssues/Core/issues/62#issuecomment-42258131
// The work-around is to make sure that all of your projects are configured either
// to Hide Open Files or Show Open Files in the sidebar.
// force to `Hide Open Files` or `Show Open Files` in the sidebar.
// "show_open_files": true
// show recent projects first

17
README.md

@ -63,23 +63,6 @@ To use a different directory for your projects rather than `Packages/User/Projec
```
### Show Open Files
It is know that Subliem Text has a [bug](https://github.com/SublimeTextIssues/Core/issues/62) in showing open files. Project Manager includes a fix to this issue.
The default value of `show_open_files ` in Project Manager is `false`. It will make sure that the all the Projects will hide the open file. However, if your view setting is not consistent with the default value (i.e. the view is showing open files), you will still get the issue.
If you want to show open files, you have to do
```
{
"show_open_files": true,
}
```
in Project Manager settings.
### License
Project Manager is MIT licensed.

2
pm.py

@ -231,7 +231,7 @@ class Manager:
j = JsonFile(wsfile)
if not os.path.exists(wsfile):
j.save({})
else:
elif self.settings.has("show_open_files"):
show_open_files = self.settings.get("show_open_files", False)
data = j.load({})
data["show_open_files"] = show_open_files

Loading…
Cancel
Save