Skip to content

Commit 4f9de34

Browse files
author
Sascha Goldhofer
committed
Documentation
1 parent 5721b11 commit 4f9de34

File tree

3 files changed

+16
-8
lines changed

3 files changed

+16
-8
lines changed

FuzzyFilePath.md

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,27 @@
33
@version 0.2.7
44
@author Sascha Goldhofer <[email protected]>
55

6-
76
## tasks
87

8+
- possibly create file caches of all project directories simultaneously
9+
- Cleanup @TODO flags
10+
- suddenly Testrunner causes plugin host to expire
11+
12+
### release
13+
914
- Test changes
1015
- Test windows paths
16+
- Add documentation for multiple folder support
1117

12-
- cache states where appropriate
13-
- possibly create file caches of all project directories simultaneously
14-
- Cleanup @TODO flags
18+
### features
1519

1620
- growing list of triggers is getting unmaintainable
1721
- Probably group by main-scope in object for faster retrieval and namespacing
1822
- create an object with ids for a specific trigger and use a list of ids for triggers to use (selecting object)
23+
- further support trigger objects in the scope-list
1924
- add custom triggers without overriding the default scopes
2025

26+
### ideas
27+
2128
- maybe support different triggers based on inserted filepath? (i.e. absolute if matches node_mod...)
22-
- suddenly Testrunner causes plugin host to expire
2329
- possibly send ffp states to serve for better debugging

common/verbose.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import FuzzyFilePath.common.settings as settings
22

3-
IGNORE = ["CurrentFile", "QueryCompletionListener", "search", "Expression"]
3+
IGNORE = ["CurrentFile", "QueryCompletionListener", "search", "Expression", "cache"]
44

55
def log(*args):
66
if settings.get("log"):

current_state.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
file_caches = {} # caches any file indices of each project folder
2020
state = {} # saves current views state like filename, project_folder, cache and settings
2121

22+
2223
def update():
2324
""" call me anytime a new view has gained focus. This includes activation of a new window, which should have an
2425
active view
@@ -64,7 +65,6 @@ def update():
6465
valid = True
6566

6667
# @TODO cache
67-
# @TODO read settings retrieved from folder settings
6868
state["file"] = file
6969
state["folders"] = folders
7070
state["project_folder"] = project_folder
@@ -94,10 +94,12 @@ def get_view():
9494
""" legacy: return the current view """
9595
return state.get("view")
9696

97+
9798
def enable():
9899
global is_enabled
99100
is_enabled = True
100101

102+
101103
def get_file_cache(folder):
102104
if not folder in file_caches:
103105
valid_file_extensions = get_valid_extensions(settings.get("trigger"))
@@ -132,7 +134,7 @@ def find_file(file_name):
132134

133135

134136
def get_valid_extensions(triggers):
135-
""" Returns a list of all extensions found in scope triggers """
137+
""" Returns a list of all file extensions found in scope triggers """
136138
extensionsToSuggest = []
137139
for scope in triggers:
138140
ext = scope.get("extensions", [])

0 commit comments

Comments
 (0)