|
3 | 3 | 
|
4 | 4 | 
|
5 | 5 |
|
| 6 | +## Using community snippets (RECOMMENDED) |
| 7 | + |
| 8 | +The community Talon files now support their own snippet format, which is now preferred. |
| 9 | + |
| 10 | +If you'd like to use these snippets for wrapping and inserting with Cursorless instead of the legacy Cursorless snippets, add the following line to your `settings.talon` file: |
| 11 | + |
| 12 | +```talon |
| 13 | +tag(): user.cursorless_use_community_snippets |
| 14 | +``` |
| 15 | + |
| 16 | +Note that this line will also disable any Cursorless snippets defined in your Cursorless customization CSVs. You will need to migrate your Cursorless snippets to the new community snippet format [described in community](https://github.com/talonhub/community/blob/main/core/snippets/README.md). If you'd be interested in a tool to help with this migration, please leave a comment on [cursorless-dev/cursorless#2149](https://github.com/cursorless-dev/cursorless/issues/2149), ideally with a link to your custom snippets for us to look at. |
| 17 | + |
| 18 | +## Cursorless experimental snippets (DEPRECATED) |
| 19 | + |
6 | 20 | Cursorless has its own experimental snippet engine that allows you to both insert snippets and wrap targets with snippets. Cursorless ships with a few built-in snippets, but users can also use their own snippets.
|
7 | 21 |
|
8 | 22 | ## Using snippets
|
@@ -88,16 +102,6 @@ Note that each snippet can use `insertionScopeTypes` to indicate that it will au
|
88 | 102 | | `"snippet funk"` | Function; phrase becomes name | Function | ✅ |
|
89 | 103 | | `"snippet link"` | Markdown link; phrase becomes link text | | ✅ |
|
90 | 104 |
|
91 |
| -## Using community snippets |
92 |
| - |
93 |
| -The community Talon files now support their own snippet format. If you'd like to use these snippets for wrapping / cursorless insertion instead of snippets defined in Cursorless, add following line to your `settings.talon` file: |
94 |
| - |
95 |
| -```talon |
96 |
| -tag(): user.cursorless_use_community_snippets |
97 |
| -``` |
98 |
| - |
99 |
| -Note that this line will also disable any Cursorless snippets defined in your Cursorless customization CSVs. You will need to migrate your Cursorless snippets to the new community snippet format [described in community](https://github.com/talonhub/community/blob/main/core/snippets/README.md). If you'd be interested in a tool to help with this migration, please leave a comment on [cursorless-dev/cursorless#2149](https://github.com/cursorless-dev/cursorless/issues/2149), ideally with a link to your custom snippets for us to look at. |
100 |
| - |
101 | 105 | ## Customizing spoken forms
|
102 | 106 |
|
103 | 107 | As usual, the spoken forms for these snippets can be [customized by csv](../customization.md). The csvs are in the files in `cursorless-settings/experimental` with `snippet` in their name.
|
|
0 commit comments