Skip to content

Commit

Permalink
Commented out vim mode
Browse files Browse the repository at this point in the history
  • Loading branch information
christianalfoni committed Feb 28, 2016
1 parent 04f8efa commit b37467d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 7 deletions.
3 changes: 1 addition & 2 deletions app/components/CodeEditor/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -39,11 +39,10 @@ class CodeEditor extends React.Component {
this.setModeAndLinter();
this.codemirror.setValue(this.props.files[this.props.selectedFileIndex].content);
}

if (this.props.vimMode) {
console.log("component updated");
this.codemirror.setOption('keyMap', 'vim');
} else {
console.log("component updated else");
this.codemirror.setOption('keyMap', 'default');
}
}
Expand Down
4 changes: 3 additions & 1 deletion app/components/Toolbar/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import Boilerplates from '../Boilerplates';
showInfo: 'bin.showInfo',
showLog: 'bin.showLog',
showBoilerplatesSelector: 'bin.showBoilerplatesSelector',
shouldCheckLog: 'bin.shouldCheckLog'
shouldCheckLog: 'bin.shouldCheckLog',
showBoilerplatesSelector: 'bin.showBoilerplatesSelector',
vimModeEnabled: 'bin.vimMode'
})
Expand Down Expand Up @@ -60,13 +60,15 @@ class Toolbar extends React.Component {
value={this.props.newFileName}/>
</div>
<div className={styles.column}>
{/*
<div className={styles.buttonWrapper}>
Vim Mode
<input
type="checkbox"
checked={this.props.vimModeEnabled}
onClick={() => this.props.signals.bin.vimModeClicked()}/>
</div>
*/}
<div className={styles.buttonWrapper}>
<ToolbarButton
title='Run'
Expand Down
5 changes: 1 addition & 4 deletions app/modules/Bin/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,12 +92,9 @@ export default (options = {}) => {
boilerplateClicked,
linterRequested,
linterLoaded,
<<<<<<< HEAD
logToggled,
logReceived
=======
logReceived,
vimModeClicked
>>>>>>> origin/master
});

};
Expand Down

0 comments on commit b37467d

Please sign in to comment.