1
0
mirror of https://github.com/BoostIo/Boostnote synced 2026-01-07 05:59:20 +00:00

Adds vim keymap setting

This commit is contained in:
asmsuechan
2017-01-08 17:44:41 +09:00
parent e4212e796a
commit 7f4c58a84a
6 changed files with 28 additions and 2 deletions

View File

@@ -25,6 +25,7 @@ export const DEFAULT_CONFIG = {
},
editor: {
theme: 'default',
keyMap: 'sublime',
fontSize: '14',
fontFamily: 'Monaco, Consolas',
indentType: 'space',

View File

@@ -34,7 +34,8 @@ class UiTab extends React.Component {
fontFamily: this.refs.editorFontFamily.value,
indentType: this.refs.editorIndentType.value,
indentSize: this.refs.editorIndentSize.value,
switchPreview: this.refs.editorSwitchPreview.value
switchPreview: this.refs.editorSwitchPreview.value,
keyMap: this.refs.editorKeyMap.value
}
config.preview = {
fontSize: this.refs.previewFontSize.value,
@@ -181,6 +182,22 @@ class UiTab extends React.Component {
</select>
</div>
</div>
<div styleName='group-section'>
<div styleName='group-section-label'>
Editor Keymap
</div>
<div styleName='group-section-control'>
<select value={config.editor.keyMap}
ref='editorKeyMap'
onChange={(e) => this.handleUIChange(e)}
>
<option value='sublime'>default</option>
<option value='vim'>vim</option>
</select>
</div>
</div>
<div styleName='group-header2'>Preview</div>
<div styleName='group-section'>
<div styleName='group-section-label'>