fixes #1507 and removes workspace settings that should not be there

This commit is contained in:
xconverge 2017-04-13 19:29:10 -07:00
parent d0e7ffc27d
commit a6f360f8da
2 changed files with 6 additions and 12 deletions

13
.vscode/settings.json vendored
View File

@ -8,16 +8,5 @@
},
"typescript.tsdk": "./node_modules/typescript/lib", // we want to use the TS server from our node_modules folder to control its version
"editor.tabSize": 2,
"editor.insertSpaces": true,
"vim.useCtrlKeys": true,
"vim.hlsearch": false,
"vim.insertModeKeyBindings": [
{
"before": ["j", "j"],
"after": ["<esc>"]
}
],
"vim.otherModesKeyBindingsNonRecursive": [ ]
"editor.insertSpaces": true
}

View File

@ -1,4 +1,5 @@
import { Configuration } from './configuration/configuration';
import * as _ from "lodash";
export class AngleBracketNotation {
@ -33,6 +34,10 @@ export class AngleBracketNotation {
return Configuration.leader;
}
if (_.includes(["<up>", "<down>", "<left>", "<right>"], key.toLocaleLowerCase())) {
key = key.toLocaleLowerCase();
}
for (const notationMapKey in this._notationMap) {
if (this._notationMap.hasOwnProperty(notationMapKey)) {
const regex = new RegExp(this._notationMap[notationMapKey].join('|'), 'gi');