Skip to content

Commit 036a31a

Browse files
committed
docs: add headings to settings
1 parent e5ebd93 commit 036a31a

File tree

1 file changed

+28
-0
lines changed

1 file changed

+28
-0
lines changed

src/app.ts

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,27 @@ import { getChosenBlocks, p, scrollToBlock } from './utils'
2626
const DEV = process.env.NODE_ENV === 'development'
2727

2828
const settingsSchema: SettingSchemaDesc[] = [
29+
{
30+
key: 'headingCommands',
31+
type: 'heading',
32+
title: '🔧 Commands',
33+
description: `
34+
<p><i>To change shortcut for the particular command:</i></p>
35+
<p><ol>
36+
<li>Open «Settings» → «Keymap».</li>
37+
<li>Copy this emoji «🪚» (for Windows use «🔪») and insert it to search input.</li>
38+
<li>Change any shortcut you want</li>
39+
</ol></p>
40+
`.trim(),
41+
default: null,
42+
},
43+
{
44+
key: 'headingFeatures',
45+
type: 'heading',
46+
title: '⛓️ Features',
47+
description: '',
48+
default: null,
49+
},
2950
{
3051
key: 'enableHomeEnd',
3152
title: 'Enable improved «Home» / «End» keys processing?',
@@ -55,6 +76,13 @@ const settingsSchema: SettingSchemaDesc[] = [
5576
enumChoices: ['Yes', 'No'],
5677
default: 'Yes',
5778
},
79+
{
80+
key: 'headingViews',
81+
type: 'heading',
82+
title: '🔭 Views',
83+
description: 'TODO',
84+
default: null,
85+
},
5886
]
5987
const settings_: any = settingsSchema.reduce((r, v) => ({ ...r, [v.key]: v}), {})
6088

0 commit comments

Comments
 (0)