File tree Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Expand file tree Collapse file tree 1 file changed +6
-4
lines changed Original file line number Diff line number Diff line change 25
25
desc = "The directory to use for cursorless settings csvs relative to talon user directory" ,
26
26
)
27
27
28
+ default_ctx = Context ()
29
+ default_ctx .matches = r"""
30
+ tag: user.cursorless_default_vocabulary
31
+ """
28
32
29
33
def init_csv_and_watch_changes (
30
34
filename : str ,
@@ -147,12 +151,10 @@ def check_for_duplicates(filename, default_values):
147
151
def is_removed (value : str ):
148
152
return value .startswith ("-" )
149
153
150
-
151
154
def create_default_vocabulary_dicts (
152
155
default_values : dict [str , dict ], pluralize_lists : list [str ]
153
156
):
154
- ctx = Context ()
155
- ctx .matches = "tag: user.cursorless_default_vocabulary"
157
+
156
158
default_values_updated = {}
157
159
for key , value in default_values .items ():
158
160
updated_dict = {}
@@ -162,7 +164,7 @@ def create_default_vocabulary_dicts(
162
164
if active_key :
163
165
updated_dict [active_key ] = value2
164
166
default_values_updated [key ] = updated_dict
165
- assign_lists_to_context (ctx , default_values_updated , pluralize_lists )
167
+ assign_lists_to_context (default_ctx , default_values_updated , pluralize_lists )
166
168
167
169
168
170
def update_dicts (
You can’t perform that action at this time.
0 commit comments