Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

swap key windows #1

Open
Sologala opened this issue Jul 13, 2022 · 3 comments
Open

swap key windows #1

Sologala opened this issue Jul 13, 2022 · 3 comments

Comments

@Sologala
Copy link
Owner

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Keyboard Layout]
;"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,01,00,3a,00,38,00,1D,00,1D,00,38,00,00,00,00,00
"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,38,00,1D,00,1D,00,38,00,00,00,00,00
;"Scancode Map"=hex:00,00,00,00,00,00,00,00,03,00,00,00,3a,00,01,00,01,00,3a,00,00,00,00,00 交换esc 和 cap

@Sologala
Copy link
Owner Author

#NoEnv  ; Recommended for performance and compatibility with future AutoHotkey releases.
; #Warn  ; Enable warnings to assist with detecting common errors.
SendMode Input  ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir%  ; Ensures a consistent starting directory.
#NoTrayIcon

SetCapsLockState, AlwaysOff

/*   
| Shortcut                         | Output                           |
| -------------------------------- | -------------------------------- |
| CAPSLOCK + { w, a, s, d }        | { Up, Left, Down, Right }        |
| CAPSLOCK + { q, e }              | { Home, End }                    |
| CAPSLOCK + { r, f }              | { PageUp, PageDown }             |
*/
*/
CapsLock & w::
    Send {Up}
return

CapsLock & s::
    Send {Down}
return

CapsLock & a::
    Send {Left}
return

CapsLock & d::
    Send {Right}
return

CapsLock & q::
    Send {Home}
return

CapsLock & e::
    Send {End}
return

CapsLock & r:: send, {PgUp}
CapsLock & f:: send, {PgDn}

return
*/

/* 
| Shortcut                         | Output                           |
| -------------------------------- | -------------------------------- |
| CAPSLOCK + { h, j, k, l }         | { Left, Up, Down, Right }        |
| CAPSLOCK + { u, o }              | { Home, End }                    |
| CAPSLOCK + { y, h }              | { PageUp, PageDown }             |
*/

CapsLock & h::
    Send {Left}
return

CapsLock & j::
    Send {Down}
return

CapsLock & k::
    Send {Up}
return

CapsLock & l::
    Send {Right}
return

/*
CapsLock & u::
    Send {Home}
return

CapsLock & o::
    Send {End}
return

CapsLock & y:: send, {PgUp}
CapsLock & h:: send, {PgDn}
*/
return

@Sologala
Copy link
Owner Author

Sologala commented Jul 19, 2022

{
"workbench.list.automaticKeyboardNavigation": false,
"editor.lineNumbers": "relative",
// 绑定vim前导键
"vim.leader": "",
// 启用easymotion插件
"vim.easymotion": true,
// 启用系统粘贴板作为vim寄存器
"vim.useSystemClipboard": true,
// 由vim接管ctrl+any的按键,而不是vscode
"vim.useCtrlKeys": true,
// 突出显示与当前搜索匹配的所有文本
"vim.hlsearch": true,
// 点击鼠标进入选取模式
"vim.mouseSelectionGoesIntoVisualMode": true,
// 普通模式下的非递归按键绑定
// 下面定义的按键将交由vscode进行处理,而不是vscode-vim插件
"vim.handleKeys": {
"": false,
"": false,
// "": false,
"": false,
"": false,
"": false,
},
"vim.normalModeKeyBindingsNonRecursive": [
{
"before": [
"",
"f",
],
"commands": [
{
"command": "actions.findWithSelection",
"args": [
""
]
},
]
},
{
"before": [
";",
"w",
],
"commands": [
"workbench.action.files.save"
]
},
{
"before": [
";",
"d",
],
"commands": [
"workbench.action.closeActiveEditor"
]
},
{
"before": [
"",
],
"commands": [
"workbench.action.focusRightGroup"
]
},
{
"before": [
"H"
],
"after": [
"^"
]
},
{
"before": [
"L"
],
"after": [
"$"
]
},
{
"before": [
"z",
"z",
],
"commands": [
"editor.toggleFold"
]
},
{
"before": [
"R"
],
"commands": [
"workbench.action.nextEditorInGroup"
]
},
{
"before": [
"E",
],
"commands": [
"workbench.action.previousEditorInGroup"
]
},
],
// 插入模式下的非递归按键绑定
"vim.insertModeKeyBindings": [
{
"before": [
"j",
"k"
],
"after": [
""
]
},
],
"vim.visualModeKeyBindings": [
{
"before": [
"",
"f",
],
"commands": [
{
"command": "actions.findWithSelection",
"args": [
""
]
},
]
},
{
"before": [
"",
"F",
],
"commands": [
{
"command": "workbench.action.findInFiles",
"args": [
""
]
},
{
"command": "search.action.focusSearchList",
"args": [
""
]
}
]
},
{
"before": [
"H"
],
"after": [
"^"
]
},
{
"before": [
"L"
],
"after": [
"$"
]
},
{
// GO to defination
"before": [
"g",
"d"
],
"after": [
"editor.action.revealDefinition"
]
},
],
// 命令模式下的非递归按键绑定
"vim.commandLineModeKeyBindingsNonRecursive": [],
// 可视模式下的非递归按键绑定
"vim.operatorPendingModeKeyBindings": [],
"C_Cpp.intelliSenseEngine": "Disabled",
"clangd.path": "c:\Users\Administrator\AppData\Roaming\Code\User\globalStorage\llvm-vs-code-extensions.vscode-clangd\install\14.0.3\clangd_14.0.3\bin\clangd.exe",
"latex-workshop.latex.tools": [
{
"name": "xelatex",
"command": "xelatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "pdflatex",
"command": "pdflatex",
"args": [
"-synctex=1",
"-interaction=nonstopmode",
"-file-line-error",
"%DOCFILE%"
]
},
{
"name": "bibtex",
"command": "bibtex",
"args": [
"%DOCFILE%"
]
}
],
"latex-workshop.latex.recipes": [
{
"name": "xe->bib->xe->xe",
"tools": [
"xelatex",
"bibtex",
"xelatex",
"xelatex"
]
},
{
"name": "pdf->bib->pdf->pdf",
"tools": [
"pdflatex",
"bibtex",
"pdflatex",
"pdflatex"
]
}
],
"remote.SSH.remotePlatform": {
"labl": "linux"
},
}

@Sologala
Copy link
Owner Author

Sologala commented Jul 19, 2022

[
{
"key": "ctrl+oem_3",
"command": "-workbench.action.terminal.toggleTerminal",
"when": "terminal.active"
},
{
"key": "ctrl+l",
"command": "-extension.vim_navigateCtrlL",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
},
{
"key": "ctrl+l",
"command": "-notebook.centerActiveCell",
"when": "notebookEditorFocused"
},
{
"key": "ctrl+h",
"command": "workbench.action.focusPreviousGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+l",
"command": "workbench.action.focusNextGroup",
"when": "!terminalFocus"
},
{
"key": "ctrl+p",
"command": "workbench.action.quickOpen"
},
// 折叠文件管理器
{ // |←
"key": "ctrl+e",
"when": "!sideBarFocus",
"command": "workbench.files.action.focusFilesExplorer"
},
{ // |→
"key": "ctrl+e",
"when": "sideBarFocus",
"command": "workbench.action.focusActiveEditorGroup"
},
// 折叠panel
{
"key": "ctrl+oem_5",
"command": "workbench.action.togglePanel",
// "when": "panelfocus"
},
// --- 资源管理器中对文件或目录的操作
// 新建文件
{
"key": "a",
"command": "explorer.newFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 新建目录
{
"key": "shift+a",
"command": "explorer.newFolder",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 重命名文件或目录
{
"key": "r",
"command": "renameFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 删除文件或目录
{
"key": "d",
"command": "deleteFile",
"when": " explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus "
},
// 剪切文件或目录
{
"key": "x",
"command": "filesExplorer.cut",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !explorerResourceReadonly && !inputFocus"
},
// 复制相对文件目录
{
"key": "shift+y",
"command": "copyRelativeFilePath",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
}, // 复制文件或目录
{
"key": "y",
"command": "copyFilePath",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceIsRoot && !inputFocus"
},
// 粘贴文件或目录
{
"key": "p",
"command": "filesExplorer.paste",
"when": "explorerViewletVisible && filesExplorerFocus && !explorerResourceReadonly && !inputFocus"
},
{
"key": "ctrl+shift+e",
"command": "-workbench.view.explorer",
"when": "viewContainer.workbench.view.explorer.enabled"
},
{
"key": "f12",
"command": "-editor.action.revealDefinition",
"when": "editorHasDefinitionProvider && editorTextFocus && !isInEmbeddedEditor"
},
{
"key": "ctrl+e",
"command": "-workbench.action.quickOpen"
},
{
"key": "ctrl+s",
"command": "-workbench.action.files.save"
},
{
"key": "ctrl+s",
"command": "-extension.vim_ctrl+s",
"when": "editorTextFocus && vim.active && vim.use && !inDebugRepl"
},
{
"key": "ctrl+f",
"command": "-actions.find",
"when": "editorFocus || editorIsOpen"
},
]

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant