Skip to content

Commit

Permalink
docs: add examples in keybindings and shortcuts
Browse files Browse the repository at this point in the history
Fixes #2
  • Loading branch information
AllanChain committed Sep 29, 2023
1 parent 8a029de commit 19d7815
Showing 1 changed file with 16 additions and 13 deletions.
29 changes: 16 additions & 13 deletions src/settings.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,30 +37,33 @@ export const settingsConfig: SettingSchemaDesc[] = [
type: 'enum',
default: '<none>',
enumPicker: 'select',
enumChoices: [
'<none>',
'Control',
'Shift',
'Alt',
'Control+Shift',
'Control+Alt',
'Shift+Alt',
]
enumChoices: ['<none>', 'Control', 'Shift', 'Alt', 'Control+Shift', 'Control+Alt', 'Shift+Alt'],
},
{
title: 'Key bindings',
description:
'Configure [MathLive keybindings](https://cortexjs.io/mathlive/guides/shortcuts/#key-bindings)',
'Configure [MathLive keybindings](https://cortexjs.io/mathlive/guides/shortcuts/#key-bindings).' +
'\n\nBy default, this plugin includes `ctrl+b` to insert `\\mathbf` as an example. ' +
"You can add your own and delete this example if you don't want it.",
key: 'keybindings',
type: 'object',
default: [],
default: [
{
key: 'ctrl+b',
command: ['insert', '\\mathbf{#@}'],
},
],
},
{
title: 'Inline shortcuts',
description:
'Configure [MathLive inline shortcuts](https://cortexjs.io/mathlive/guides/shortcuts/#inline-shortcuts)',
'Configure [MathLive inline shortcuts](https://cortexjs.io/mathlive/guides/shortcuts/#inline-shortcuts).' +
'\n\nBy default, this plugin inserts `\\mathrm{Logseq}` when you type `Logseq` as an example. ' +
"You can add your own and delete this example if you don't want it.",
key: 'inlineShortcuts',
type: 'object',
default: {},
default: {
Logseq: '\\mathrm{Logseq}',
},
},
]

0 comments on commit 19d7815

Please sign in to comment.