mirror of
https://github.com/cursorless-dev/cursorless.git
synced 2024-10-04 21:07:21 +03:00
Add link wrap gif (#536)
* Add link wrap gif * Add link snippet * Change link wrap support and documentation
This commit is contained in:
parent
a465b78997
commit
04fcbfeaa3
17
cursorless-snippets/link.cursorless-snippets
Normal file
17
cursorless-snippets/link.cursorless-snippets
Normal file
@ -0,0 +1,17 @@
|
||||
{
|
||||
"link": {
|
||||
"definitions": [
|
||||
{
|
||||
"scope": {
|
||||
"langIds": [
|
||||
"markdown"
|
||||
]
|
||||
},
|
||||
"body": [
|
||||
"[$text](${url:$CLIPBOARD})"
|
||||
]
|
||||
}
|
||||
],
|
||||
"description": "Link"
|
||||
}
|
||||
}
|
@ -27,6 +27,7 @@ wrapper_snippets = {
|
||||
"if else": "ifElseStatement.consequence",
|
||||
"if": "ifStatement.consequence",
|
||||
"try": "tryCatchStatement.body",
|
||||
"link": "link.text",
|
||||
}
|
||||
|
||||
|
||||
|
BIN
docs/user/experimental/images/linkWrap.gif
Normal file
BIN
docs/user/experimental/images/linkWrap.gif
Normal file
Binary file not shown.
After Width: | Height: | Size: 38 KiB |
@ -1,6 +1,7 @@
|
||||
# Wrapper snippets
|
||||
|
||||
![Wrapper snippet demo](images/tryWrapFine.gif)
|
||||
![Link wrap](images/linkWrap.gif)
|
||||
|
||||
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.
|
||||
|
||||
@ -39,6 +40,7 @@ Each snippet wrapper has a default scope type. When you refer to a target, by de
|
||||
| `"else wrap"` | If-else statement; target goes in else branch | Statement |
|
||||
| `"if else wrap"` | If-else statement; target goes in if branch | Statement |
|
||||
| `"try wrap"` | Try-catch statement | Statement |
|
||||
| `"link wrap"` | Markdown link | |
|
||||
|
||||
## Customizing spoken forms
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user