var t = `
` import Icon from './icon.js' export default { components: { Icon }, data() { return { settings: { name: 'settings', title: 'Settings', entries: [ {name: 'editorVimMode', title: 'Vim mode'}, {name: 'editorLineWrapping', title: 'Line wrapping'}, {name: 'editorConcealFormatting', title: 'Conceal formatting'}, {name: 'editorFoldGutter', title: 'Fold gutter'}, ] }, keymaps: [ { name: 'default', title: 'Default mode', entries: [ ['Tab', 'Enter editing mode (focus active note)', 'none'], ['C-s', 'Save note', 'all'], ['[[', 'Insert selected note link via Finder (mtime sorted)', 'edit'], ['Alt-k', 'Insert selected note link via Finder (mtime sorted)', 'edit'], ['Shift-Tab', 'Auto-indent current line or selection', 'edit'], ['C-]', 'Indent current line or selection', 'edit'], ['C-[', 'Dedent current line or selection', 'edit'], ['C-Enter', 'Toggle section fold', 'edit'], ['Esc', 'Exit editing mode (unfocus)', 'edit'], ] }, { name: 'vim', title: 'Vim mode', info: true, entries: [ ['Tab', 'Enter normal mode (focus active note)', 'none'], ['C-s', 'Save note and set normal mode', 'all'], ['C-h C-l C-6', 'Note tab keybinds passthrough', 'all'], ['space n ', 'Global keybinds passthrough', 'normal'], ['ge | gx', 'Open link under cursor', 'normal'], ['z | C-Enter', 'Fold, unfold, toggle sections', 'normal'], ['[[', 'Insert selected note link via Finder (mtime sorted)', 'insert'], ['Alt-k', 'Insert selected note link via Finder (mtime sorted)', 'insert'], [':set [no]wrap', 'Set line wrapping', 'command'], [':set [no]conceal', 'Set conceal formatting', 'command'], [':set [no]fold', 'Set fold gutter', 'command'], ] }, { name: 'table', title: 'Table formatting and navigation', info: true, entries: [ ['Tab', 'Format table and advance column (right)', 'table'], ['Shift-Tab', 'Navigate to previous column (left)', 'table'], ['Alt-Arrow', 'Navigate rows and columns', 'table'], ] }, ], } }, template: t }