Skip to content

Commit 04fcbfe

Browse files
authored
Add link wrap gif (#536)
* Add link wrap gif * Add link snippet * Change link wrap support and documentation
1 parent a465b78 commit 04fcbfe

File tree

4 files changed

+20
-0
lines changed

4 files changed

+20
-0
lines changed
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"link": {
3+
"definitions": [
4+
{
5+
"scope": {
6+
"langIds": [
7+
"markdown"
8+
]
9+
},
10+
"body": [
11+
"[$text](${url:$CLIPBOARD})"
12+
]
13+
}
14+
],
15+
"description": "Link"
16+
}
17+
}

cursorless-talon/src/actions/wrap.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@
2727
"if else": "ifElseStatement.consequence",
2828
"if": "ifStatement.consequence",
2929
"try": "tryCatchStatement.body",
30+
"link": "link.text",
3031
}
3132

3233

38 KB
Loading

docs/user/experimental/wrapper-snippets.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
# Wrapper snippets
22

33
![Wrapper snippet demo](images/tryWrapFine.gif)
4+
![Link wrap](images/linkWrap.gif)
45

56
In addition to wrapping with paired delimiters (eg `"square wrap"`, `"round wrap"`, etc), we experimentally support wrapping with snippets. Cursorless ships with a few built-in snippets, but users can also use their own snippets.
67

@@ -39,6 +40,7 @@ Each snippet wrapper has a default scope type. When you refer to a target, by de
3940
| `"else wrap"` | If-else statement; target goes in else branch | Statement |
4041
| `"if else wrap"` | If-else statement; target goes in if branch | Statement |
4142
| `"try wrap"` | Try-catch statement | Statement |
43+
| `"link wrap"` | Markdown link | |
4244

4345
## Customizing spoken forms
4446

0 commit comments

Comments
 (0)