1
- from talon import Context , Module , actions , app
1
+ from talon import Module , actions , app
2
2
3
3
from .csv_overrides import init_csv_and_watch_changes
4
4
5
5
mod = Module ()
6
6
mod .list ("cursorless_insert_snippet_action" , desc = "Cursorless insert snippet action" )
7
7
8
+ # Deprecated tag; we should probably remove this and notify users that they
9
+ # should get rid of it, but I don't think it's worth the effort right now
8
10
mod .tag (
9
11
"cursorless_experimental_snippets" ,
10
12
desc = "tag for enabling experimental snippet support" ,
@@ -34,12 +36,6 @@ def cursorless_insertion_snippet(m) -> str:
34
36
return m .cursorless_insertion_snippet_single_phrase .split ("." )[0 ]
35
37
36
38
37
- experimental_snippets_ctx = Context ()
38
- experimental_snippets_ctx .matches = r"""
39
- tag: user.cursorless_experimental_snippets
40
- """
41
-
42
-
43
39
# NOTE: Please do not change these dicts. Use the CSVs for customization.
44
40
# See https://www.cursorless.org/docs/user/customization/
45
41
wrapper_snippets = {
@@ -87,7 +83,6 @@ def on_ready():
87
83
},
88
84
allow_unknown_values = True ,
89
85
default_list_name = "wrapper_snippet" ,
90
- ctx = experimental_snippets_ctx ,
91
86
)
92
87
init_csv_and_watch_changes (
93
88
"experimental/insertion_snippets" ,
@@ -96,7 +91,6 @@ def on_ready():
96
91
},
97
92
allow_unknown_values = True ,
98
93
default_list_name = "insertion_snippet_no_phrase" ,
99
- ctx = experimental_snippets_ctx ,
100
94
)
101
95
init_csv_and_watch_changes (
102
96
"experimental/insertion_snippets_single_phrase" ,
@@ -105,14 +99,12 @@ def on_ready():
105
99
},
106
100
allow_unknown_values = True ,
107
101
default_list_name = "insertion_snippet_single_phrase" ,
108
- ctx = experimental_snippets_ctx ,
109
102
)
110
103
init_csv_and_watch_changes (
111
104
"experimental/miscellaneous" ,
112
105
{
113
106
"phrase_terminator" : {"over" : "phraseTerminator" },
114
107
},
115
- ctx = experimental_snippets_ctx ,
116
108
)
117
109
118
110
0 commit comments