デフォルトだとツールバーがないので、Text wrapper plusを導入した。
JSONを書き換えると、自分の好きなようにツールバーをカスタムできる。
良い時代になったなぁ
{
"disabled": false,
"toolbar": true,
"toolbarShortcut": "",
"heading-2": {
"label": "H2",
"binding": "",
"template": "## $^",
"icon": ""
},
"heading-3": {
"label": "H3",
"binding": "",
"template": "### $^",
"icon": ""
},
"horizontal-rule": {
"label": "Horizontal rule",
"binding": "",
"template": "\n---\n",
"icon": ""
},
"wrap-bold": {
"label": "Bold",
"binding": "mod+b",
"template": "**$^**",
"icon": ""
},
"wrap-italic": {
"label": "Italic",
"binding": "mod+i",
"template": "*$^*",
"icon": ""
},
"wrap-strike": {
"label": "Strikethrough",
"binding": "",
"template": "~~$^~~",
"icon": ""
},
"wrap-underline": {
"label": "Underline",
"binding": "mod+u",
"template": "$^",
"icon": ""
},
"wrap-inline-code": {
"label": "Inline code",
"binding": "",
"template": "`$^`",
"icon": ""
},
"wrap-code-block": {
"label": "Code block",
"binding": "",
"template": "```\n$^\n```",
"icon": ""
},
"wrap-quote": {
"label": "Quote",
"binding": "",
"template": "> $^",
"icon": ""
},
"wrap-cloze": {
"label": "Wrap with cloze",
"binding": "",
"template": "{{cloze $^}}",
"icon": ""
},
"wrap-red-hl": {
"label": "Red highlight",
"binding": "",
"template": "[[#red]]==$^==",
"icon": ""
},
"wrap-green-hl": {
"label": "Green highlight",
"binding": "",
"template": "[[#green]]==$^==",
"icon": ""
},
"wrap-blue-hl": {
"label": "Blue highlight",
"binding": "",
"template": "[[#blue]]==$^==",
"icon": ""
},
"wrap-yellow-hl": {
"label": "Yellow highlight",
"binding": "",
"template": "[[#yellow]]==$^==",
"icon": ""
},
"wrap-orange-hl": {
"label": "Orange highlight",
"binding": "",
"template": "[[#orange]]==$^==",
"icon": ""
},
"wrap-pink-hl": {
"label": "Pink highlight",
"binding": "",
"template": "[[#pink]]==$^==",
"icon": ""
},
"wrap-purple-hl": {
"label": "Purple highlight",
"binding": "",
"template": "[[#purple]]==$^==",
"icon": ""
},
"wrap-cyan-hl": {
"label": "Cyan highlight",
"binding": "",
"template": "[[#cyan]]==$^==",
"icon": ""
},
"wrap-gray-hl": {
"label": "Gray highlight",
"binding": "",
"template": "[[#gray]]==$^==",
"icon": ""
},
"wrap-red-text": {
"label": "Red text",
"binding": "",
"template": "[[$red]]==$^==",
"icon": ""
},
"wrap-green-text": {
"label": "Green text",
"binding": "",
"template": "[[$green]]==$^==",
"icon": ""
},
"wrap-blue-text": {
"label": "Blue text",
"binding": "",
"template": "[[$blue]]==$^==",
"icon": ""
},
"wrap-yellow-text": {
"label": "Yellow text",
"binding": "",
"template": "[[$yellow]]==$^==",
"icon": ""
},
"wrap-orange-text": {
"label": "Orange text",
"binding": "",
"template": "[[$orange]]==$^==",
"icon": ""
},
"wrap-pink-text": {
"label": "Pink text",
"binding": "",
"template": "[[$pink]]==$^==",
"icon": ""
},
"wrap-purple-text": {
"label": "Purple text",
"binding": "",
"template": "[[$purple]]==$^==",
"icon": ""
},
"wrap-cyan-text": {
"label": "Cyan text",
"binding": "",
"template": "[[$cyan]]==$^==",
"icon": ""
},
"wrap-gray-text": {
"label": "Gray text",
"binding": "",
"template": "[[$gray]]==$^==",
"icon": ""
},
"insert-link": {
"label": "Link selected text",
"binding": "",
"template": "[$^](https://)",
"icon": ""
},
"embed-image": {
"label": "Embed image URL or path",
"binding": "",
"template": "",
"icon": ""
},
"embed-video": {
"label": "Embed video URL or path",
"binding": "",
"template": "",
"icon": ""
},
"attach-file-link": {
"label": "File link from URL or path",
"binding": "",
"template": "[file]($^)",
"icon": ""
},
"wrap-attachment": {
"label": "Attachment link",
"binding": "",
"template": "[$^]($^)",
"icon": ""
},
"insert-table": {
"label": "Insert table",
"binding": "",
"template": "| 見出し1 | 見出し2 |\n| --- | --- |\n| $^ | |",
"icon": ""
},
"bullet-list": {
"label": "Bullet list item",
"binding": "",
"template": "- $^",
"icon": ""
},
"numbered-list": {
"label": "Numbered list item",
"binding": "",
"template": "1. $^",
"icon": ""
},
"todo-list": {
"label": "Todo checkbox",
"binding": "",
"template": "- [ ] $^",
"icon": ""
},
"done-list": {
"label": "Done checkbox",
"binding": "",
"template": "- [x] $^",
"icon": ""
},
"repl-bullet-lines": {
"label": "Turn lines into bullets",
"binding": "",
"regex": "(?m)^(.+)$",
"replacement": "- $1",
"icon": ""
},
"repl-todo-lines": {
"label": "Turn lines into todos",
"binding": "",
"regex": "(?m)^(.+)$",
"replacement": "- [ ] $1",
"icon": ""
},
"align-left": {
"label": "Align left",
"binding": "",
"template": "\n$^\n",
"icon": ""
},
"align-center": {
"label": "Align center",
"binding": "",
"template": "\n$^\n",
"icon": ""
},
"align-right": {
"label": "Align right",
"binding": "",
"template": "\n$^\n",
"icon": ""
},
"repl-clear": {
"label": "Remove formatting",
"binding": "mod+shift+x",
"regex": "\\[\\[(?:#|\\$)(?:red|green|blue|yellow|orange|pink|purple|cyan|teal|gray)\\]\\]|==([^=]*)==|~~([^~]*)~~|\\^\\^([^\\^]*)\\^\\^|\\*\\*([^\\*]*)\\*\\*|\\*([^\\*]*)\\*|_([^_]*)_|\\$([^\\$]*)\\$|`([^`]*)`|([^<]*)",
"replacement": "$1$2$3$4$5$6$7$8$9",
"icon": ""
}
}