mirror of
https://github.com/jasonwilliams/vscode-helix.git
synced 2024-09-11 16:56:32 +03:00
341 lines
11 KiB
JSON
341 lines
11 KiB
JSON
{
|
|
"name": "vscode-helix-emulation",
|
|
"version": "0.6.2",
|
|
"displayName": "Helix For VS Code",
|
|
"description": "Helix emulation for Visual Studio Code",
|
|
"publisher": "jasew",
|
|
"author": "Jason Williams",
|
|
"license": "MIT",
|
|
"homepage": "https://github.com/jasonwilliams/vscode-helix",
|
|
"keywords": [
|
|
"vim",
|
|
"vi",
|
|
"helix"
|
|
],
|
|
"repository": {
|
|
"type": "git",
|
|
"url": "https://github.com/jasonwilliams/vscode-helix"
|
|
},
|
|
"bugs": {
|
|
"url": "https://github.com/jasonwilliams/vscode-helix/issues"
|
|
},
|
|
"categories": [
|
|
"Other",
|
|
"Keymaps"
|
|
],
|
|
"main": "./dist/index.js",
|
|
"browser": "./dist/browser.js",
|
|
"icon": "docs/img/helixLogo.png",
|
|
"files": [
|
|
"dist"
|
|
],
|
|
"engines": {
|
|
"vscode": "^1.83.1"
|
|
},
|
|
"activationEvents": [
|
|
"onStartupFinished"
|
|
],
|
|
"contributes": {
|
|
"commands": [
|
|
{
|
|
"command": "extension.helixKeymap.enterDisabledMode",
|
|
"title": "Disable Helix",
|
|
"enablement": "!extension.helixKeymap.disabledMode"
|
|
},
|
|
{
|
|
"command": "extension.helixKeymap.enableHelix",
|
|
"title": "Enable Helix",
|
|
"enablement": "extension.helixKeymap.disabledMode"
|
|
}
|
|
],
|
|
"keybindings": [
|
|
{
|
|
"key": "shift+5",
|
|
"command": "editor.action.selectAll",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "shift+j",
|
|
"command": "editor.action.joinLines",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "Escape",
|
|
"command": "extension.helixKeymap.escapeKey",
|
|
"when": "editorTextFocus"
|
|
},
|
|
{
|
|
"key": "Escape",
|
|
"command": "closeMarkersNavigation",
|
|
"when": "editorFocus && markersNavigationVisible"
|
|
},
|
|
{
|
|
"key": "ctrl+f",
|
|
"command": "extension.helixKeymap.scrollDownPage",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+b",
|
|
"command": "extension.helixKeymap.scrollUpPage",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+w",
|
|
"command": "extension.helixKeymap.enterWindowMode",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "backspace",
|
|
"command": "extension.helixKeymap.backspaceSearchMode",
|
|
"when": "editorTextFocus && (extension.helixKeymap.searchMode || extension.helixKeymap.selectMode)"
|
|
},
|
|
{
|
|
"key": "enter",
|
|
"command": "extension.helixKeymap.exitSearchMode",
|
|
"when": "editorTextFocus && (extension.helixKeymap.searchMode || extension.helixKeymap.selectMode)"
|
|
},
|
|
{
|
|
"key": "up",
|
|
"command": "extension.helixKeymap.previousSearchResult",
|
|
"when": "editorTextFocus && (extension.helixKeymap.searchMode || extension.helixKeymap.selectMode)"
|
|
},
|
|
{
|
|
"key": "down",
|
|
"command": "extension.helixKeymap.nextSearchResult",
|
|
"when": "editorTextFocus && (extension.helixKeymap.searchMode || extension.helixKeymap.selectMode)"
|
|
},
|
|
{
|
|
"key": "alt+o",
|
|
"command": "editor.action.smartSelect.expand",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "alt+i",
|
|
"command": "editor.action.smartSelect.shrink",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+i",
|
|
"command": "workbench.action.navigateForward",
|
|
"when": "(extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+d",
|
|
"command": "extension.helixKeymap.scrollDownHalfPage",
|
|
"when": "(extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+u",
|
|
"command": "extension.helixKeymap.scrollUpHalfPage",
|
|
"when": "(extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+o",
|
|
"command": "workbench.action.navigateBack",
|
|
"when": "(extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+n",
|
|
"command": "workbench.action.quickOpenSelectNext",
|
|
"when": "inQuickOpen && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+p",
|
|
"command": "workbench.action.quickOpenSelectPrevious",
|
|
"when": "inQuickOpen && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+o",
|
|
"command": "-workbench.action.files.openFile",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"key": "ctrl+i",
|
|
"command": "-editor.action.triggerSuggest",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"key": "ctrl+n",
|
|
"command": "-workbench.action.files.newUntitledFile",
|
|
"when": "true"
|
|
},
|
|
{
|
|
"key": "ctrl+n",
|
|
"command": "selectNextCodeAction",
|
|
"when": "codeActionMenuVisible"
|
|
},
|
|
{
|
|
"key": "ctrl+p",
|
|
"command": "selectPrevCodeAction",
|
|
"when": "codeActionMenuVisible"
|
|
},
|
|
{
|
|
"key": "ctrl+n",
|
|
"command": "selectNextSuggestion",
|
|
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
|
|
},
|
|
{
|
|
"key": "ctrl+p",
|
|
"command": "selectPrevSuggestion",
|
|
"when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
|
|
},
|
|
{
|
|
"key": "alt+;",
|
|
"command": "extension.helixKeymap.flipSelection",
|
|
"when": "!extension.helixKeymap.insertMode && editorTextFocus"
|
|
},
|
|
{
|
|
"key": "alt+k",
|
|
"command": "editor.action.moveLinesUpAction",
|
|
"when": "editorTextFocus && !extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "alt+j",
|
|
"command": "editor.action.moveLinesDownAction",
|
|
"when": "editorTextFocus && !extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "alt+d",
|
|
"command": "editor.action.addSelectionToNextFindMatch",
|
|
"when": "editorTextFocus && !extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "alt+m",
|
|
"command": "editor.action.moveSelectionToNextFindMatch",
|
|
"when": "editorTextFocus && !extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+v",
|
|
"command": "extension.helixKeymap.clipboardPasteAction",
|
|
"when": "editorTextFocus && extension.helixKeymap.searchMode"
|
|
},
|
|
{
|
|
"key": "j",
|
|
"command": "list.focusDown",
|
|
"when": "listFocus && !inputFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "k",
|
|
"command": "list.focusUp",
|
|
"when": "listFocus && !inputFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "l",
|
|
"command": "list.expand",
|
|
"when": "listFocus && !inputFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "h",
|
|
"command": "list.collapse",
|
|
"when": "listFocus && !inputFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "alt+.",
|
|
"command": "extension.helixKeymap.repeatLastMotion",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+w",
|
|
"command": "deleteWordLeft",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "alt+d",
|
|
"command": "deleteWordRight",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+u",
|
|
"command": "deleteAllLeft",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+l",
|
|
"command": "deleteAllRight",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+d",
|
|
"command": "deleteRight",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+h",
|
|
"command": "deleteLeft",
|
|
"when": "editorTextFocus && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "ctrl+x",
|
|
"command": "acceptSelectedSuggestion",
|
|
"when": "suggestWidgetHasFocusedSuggestion && suggestWidgetVisible && extension.helixKeymap.insertMode"
|
|
},
|
|
{
|
|
"key": "alt+OEM_8",
|
|
"command": "extension.helixKeymap.switchToUppercase",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+a",
|
|
"command": "extension.helixKeymap.increment",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
},
|
|
{
|
|
"key": "ctrl+x",
|
|
"command": "extension.helixKeymap.decrement",
|
|
"when": "editorTextFocus && (extension.helixKeymap.normalMode || extension.helixKeymap.visualMode)"
|
|
}
|
|
],
|
|
"configuration": {
|
|
"type": "object",
|
|
"title": "Helix Keymap Configuration",
|
|
"properties": {
|
|
"helixKeymap.yankHighlightBackgroundColor": {
|
|
"type": "string",
|
|
"default": "#F8F3AB",
|
|
"description": "Background color that flashes to show the range when yanking."
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"scripts": {
|
|
"build": "node build.mjs",
|
|
"build:prod": "node build.mjs --production",
|
|
"watch": "node build.mjs --watch",
|
|
"pack": "vsce package --no-dependencies",
|
|
"publish": "vsce publish --no-dependencies",
|
|
"vscode:prepublish": "npm run build:prod",
|
|
"lint": "prettier --check --plugin-search-dir=. src && eslint src",
|
|
"format": "prettier --write --plugin-search-dir=. src",
|
|
"typecheck": "tsc --noEmit",
|
|
"release": "bumpp && npm run publish"
|
|
},
|
|
"dependencies": {
|
|
"parsimmon": "^1.18.1",
|
|
"path-browserify": "1.0.1",
|
|
"os-browserify": "0.3.0",
|
|
"untildify": "4.0.0",
|
|
"process": "0.11.10",
|
|
"util": "0.12.5",
|
|
"lodash": "^4.17.21",
|
|
"diff-match-patch": "^1.0.5",
|
|
"queue": "^7.0.0"
|
|
},
|
|
"devDependencies": {
|
|
"@types/http-errors": "^1.8.0",
|
|
"@types/node": "^20.8.9",
|
|
"@types/vscode": "^1.83.1",
|
|
"@typescript-eslint/eslint-plugin": "^6.10.0",
|
|
"@typescript-eslint/parser": "^6.10.0",
|
|
"bumpp": "^8.2.1",
|
|
"eslint": "^8.27.0",
|
|
"eslint-config-prettier": "^9.0.0",
|
|
"esno": "^0.16.3",
|
|
"prettier": "^3.0.3",
|
|
"rimraf": "^3.0.2",
|
|
"string.prototype.matchall": "^4.0.2",
|
|
"typescript": "^5.2.2",
|
|
"esbuild": "^0.19.5",
|
|
"vsce": "^2.11.0"
|
|
}
|
|
}
|