Permalink
Browse files

Version 0.5.1

- More explicit match for finding project files
  • Loading branch information...
1 parent c654074 commit 24d1723c4b41e54cf6b8cd23e8a48c0123e3f81c @facelessuser committed Mar 26, 2012
Showing with 8 additions and 4 deletions.
  1. +2 −1 favorites.py
  2. +3 −0 readme.md
  3. +3 −3 refresh.txt
View
3 favorites.py
@@ -7,6 +7,7 @@
from os.path import exists, basename, getmtime, join, normpath, splitext
import json
import sys
+import re
lib = join(sublime.packages_path(), 'FavoriteFiles')
if not lib in sys.path:
@@ -91,7 +92,7 @@ def get_project(cls, win_id):
pass
# Throw out empty project names
- if project == None or project == "" or not exists(project):
+ if project == None or re.match(".*\\.sublime-project", project) == None or not exists(project):
project = None
return project
View
3 readme.md
@@ -25,6 +25,9 @@ The above copyright notice and this permission notice shall be included in all c
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
+# Version 0.5.1
+- More explicit match for finding project files
+
# Version 0.5.0
- Abandon storing favs in project settings file, but store the settings in a file in the same directory as project settings.
- Force refresh of session if project cannot be found and try to locate project again.
View
6 refresh.txt
@@ -1,8 +1,8 @@
- ______ _ __ _______ __
+ ______ _ __ _______ __
/ ____/___ __ ______ _____(_) /____ / ____(_) /__ _____
/ /_ / __ `/ | / / __ \/ ___/ / __/ _ \ / /_ / / / _ \/ ___/
- / __/ / /_/ /| |/ / /_/ / / / / /_/ __/ / __/ / / / __(__ )
- /_/ \__,_/ |___/\____/_/ /_/\__/\___/ /_/ /_/_/\___/____/
+ / __/ / /_/ /| |/ / /_/ / / / / /_/ __/ / __/ / / / __(__ )
+ /_/ \__,_/ |___/\____/_/ /_/\__/\___/ /_/ /_/_/\___/____/
Attemping to refresh session...

0 comments on commit 24d1723

Please sign in to comment.