Skip to content

Commit 2e5ba05

Browse files
Enable snippets by default (#1258)
## Checklist - [ ] I have added [tests](https://www.cursorless.org/docs/contributing/test-case-recorder/) - [ ] I have updated the [docs](https://github.com/cursorless-dev/cursorless/tree/main/docs) and [cheatsheet](https://github.com/cursorless-dev/cursorless/tree/main/cursorless-talon/src/cheatsheet) - [ ] I have not broken the cheatsheet --------- Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
1 parent 3538503 commit 2e5ba05

File tree

2 files changed

+3
-12
lines changed

2 files changed

+3
-12
lines changed

cursorless-talon/src/cursorless_snippets.talon

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
tag: user.cursorless
2-
tag: user.cursorless_experimental_snippets
32
-
43

54
{user.cursorless_insert_snippet_action} <user.cursorless_insertion_snippet>:

cursorless-talon/src/snippets.py

Lines changed: 3 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,12 @@
1-
from talon import Context, Module, actions, app
1+
from talon import Module, actions, app
22

33
from .csv_overrides import init_csv_and_watch_changes
44

55
mod = Module()
66
mod.list("cursorless_insert_snippet_action", desc="Cursorless insert snippet action")
77

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
810
mod.tag(
911
"cursorless_experimental_snippets",
1012
desc="tag for enabling experimental snippet support",
@@ -34,12 +36,6 @@ def cursorless_insertion_snippet(m) -> str:
3436
return m.cursorless_insertion_snippet_single_phrase.split(".")[0]
3537

3638

37-
experimental_snippets_ctx = Context()
38-
experimental_snippets_ctx.matches = r"""
39-
tag: user.cursorless_experimental_snippets
40-
"""
41-
42-
4339
# NOTE: Please do not change these dicts. Use the CSVs for customization.
4440
# See https://www.cursorless.org/docs/user/customization/
4541
wrapper_snippets = {
@@ -87,7 +83,6 @@ def on_ready():
8783
},
8884
allow_unknown_values=True,
8985
default_list_name="wrapper_snippet",
90-
ctx=experimental_snippets_ctx,
9186
)
9287
init_csv_and_watch_changes(
9388
"experimental/insertion_snippets",
@@ -96,7 +91,6 @@ def on_ready():
9691
},
9792
allow_unknown_values=True,
9893
default_list_name="insertion_snippet_no_phrase",
99-
ctx=experimental_snippets_ctx,
10094
)
10195
init_csv_and_watch_changes(
10296
"experimental/insertion_snippets_single_phrase",
@@ -105,14 +99,12 @@ def on_ready():
10599
},
106100
allow_unknown_values=True,
107101
default_list_name="insertion_snippet_single_phrase",
108-
ctx=experimental_snippets_ctx,
109102
)
110103
init_csv_and_watch_changes(
111104
"experimental/miscellaneous",
112105
{
113106
"phrase_terminator": {"over": "phraseTerminator"},
114107
},
115-
ctx=experimental_snippets_ctx,
116108
)
117109

118110

0 commit comments

Comments
 (0)