Skip to content

Commit

Permalink
Resolve #4420 Add \left|..\right| snippet
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Oct 2, 2024
1 parent 191b7f6 commit 77aab8c
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 0 deletions.
5 changes: 5 additions & 0 deletions data/at-suggestions.json
Original file line number Diff line number Diff line change
Expand Up @@ -324,5 +324,10 @@
"prefix": "@[",
"body": "\\left[ ${1:${TM_SELECTED_TEXT}} \\right]",
"description": "left[ ... right]"
},
"|": {
"prefix": "@|",
"body": "\\left| ${1:${TM_SELECTED_TEXT}} \\right|",
"description": "left| ... right|"
}
}
8 changes: 8 additions & 0 deletions data/macros.json
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,14 @@
},
"detail": "\\left\\{ ... \\right\\}, shortcut @{"
},
{
"name": "left",
"arg": {
"format": "|",
"snippet": "left|${1}\\right|"
},
"detail": "\\left| ... \\right|, shortcut @|"
},
{
"name": "frame",
"arg": {
Expand Down

0 comments on commit 77aab8c

Please sign in to comment.