1
0
mirror of https://github.com/BoostIo/Boostnote synced 2025-12-13 17:56:25 +00:00

Merge pull request #218 from asmsuechan/feature-vim-keymap

Adds vim keymap setting
This commit is contained in:
Sota Sugiura
2017-01-14 17:03:20 +09:00
committed by GitHub
9 changed files with 35 additions and 2 deletions

View File

@@ -94,6 +94,10 @@
p
line-height 1.2
.note-for-keymap
margin-left: 10px
font-size: 12px
colorDarkControl()
border-color $ui-dark-borderColor
background-color $ui-dark-backgroundColor

View File

@@ -31,7 +31,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,
@@ -178,6 +179,23 @@ 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>
<span styleName='note-for-keymap'>Please reload boostnote after you change the keymap</span>
</div>
</div>
<div styleName='group-header2'>Preview</div>
<div styleName='group-section'>
<div styleName='group-section-label'>