mirror of
https://github.com/VSCodeVim/Vim.git
synced 2024-09-20 00:27:41 +03:00
Oops, don't forget about Linux users!
This commit is contained in:
parent
ba5d525817
commit
e6b718d1e3
@ -18,6 +18,7 @@ import { AngleBracketNotation } from './src/notation';
|
||||
interface VSCodeKeybinding {
|
||||
key: string;
|
||||
mac?: string;
|
||||
linux?: string;
|
||||
command: string;
|
||||
when: string;
|
||||
}
|
||||
@ -195,6 +196,8 @@ export async function activate(context: vscode.ExtensionContext) {
|
||||
*/
|
||||
if (process.platform === "darwin") {
|
||||
keyToBeBound = keybinding.mac || keybinding.key;
|
||||
} else if (process.platform === "linux") {
|
||||
keyToBeBound = keybinding.linux || keybinding.key;
|
||||
} else {
|
||||
keyToBeBound = keybinding.key;
|
||||
}
|
||||
|
@ -12,7 +12,7 @@ import { QuoteMatcher } from './../matching/quoteMatcher';
|
||||
import { TagMatcher } from './../matching/tagMatcher';
|
||||
import { Tab, TabCommand } from './../cmd_line/commands/tab';
|
||||
import { Configuration } from './../configuration/configuration';
|
||||
import { waitForCursorUpdatesToHappen, allowVSCodeToPropagateCursorUpdatesAndReturnThem } from '../util';
|
||||
import { allowVSCodeToPropagateCursorUpdatesAndReturnThem } from '../util';
|
||||
import * as vscode from 'vscode';
|
||||
import * as clipboard from 'copy-paste';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user