Open Zim-Inn opened 2 weeks ago
可以由owner或热心网友审核后挑选比较有代表性的以及文档说明清晰的合入仓库. 这样新用户在使用软件时有更多的配建方案可以选择 以下补充一个我自己的映射方案,侧重点在文字编辑和窗口切换,使用注册表将Capslock和左Ctrl互换后使用体验更佳:
{ "keymaps": [ { "id": 18, "name": "引号模式", "enable": true, "hotkey": "'", "parentID": 0, "delay": 0, "hotkeys": { "*-": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:2401", "actionValueID": 9 } ], "*2": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:22", "actionValueID": 6 } ], "*5": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:21", "actionValueID": 5 } ], "singlePress": [ { "windowGroupID": 0, "actionTypeID": 9, "comment": "label:75", "actionValueID": 5 }, { "windowGroupID": 5, "actionTypeID": 6, "keysToSend": "{blind}{'}" } ] } }, { "id": 19, "name": "P模式", "enable": true, "hotkey": "p", "parentID": 0, "delay": 0, "hotkeys": { "*'": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 '", "remapToKey": "'" } ], "*1": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器1中的文本", "keysToSend": "\"1p" } ], "*3": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器3中的文本", "keysToSend": "\"3p" } ], "*4": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器4中的文本", "keysToSend": "\"4p" } ], "*5": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器5中的文本", "keysToSend": "\"5p" } ], "*6": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器6中的文本", "keysToSend": "\"6p" } ], "*7": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器7中的文本", "keysToSend": "\"7p" } ], "*8": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器8中的文本", "keysToSend": "\"8p" } ], "*9": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器9中的文本", "keysToSend": "\"9p" } ], "*i": [ { "windowGroupID": 0, "actionTypeID": 6, "keysToSend": "{text}3^?s5hxww=_~" } ], "*m": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器m中的文本", "keysToSend": "\"mp" } ], "*o": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下粘贴寄存器o中的文本", "keysToSend": "\"op" } ], "singlePress": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入 p 键", "keysToSend": "{blind}{p}" } ] } }, { "id": 20, "name": "常用窗口切换", "enable": true, "hotkey": "Tab", "parentID": 0, "delay": 0, "hotkeys": { "*-": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:9", "actionValueID": 16 } ], "*1": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "Obsidian笔记绘图", "winTitle": "Obsidian ahk_exe Obsidian.exe", "target": "shortcuts\\Obsidian.lnk", "detectHiddenWindow": true } ], "*2": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:2", "actionValueID": 2 } ], "*`": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "welink聊天", "winTitle": "WeLinkPC ahk_exe WeLinkPC.exe", "target": "shortcuts\\WeLink Desktop.lnk", "detectHiddenWindow": true } ], "*a": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:7", "actionValueID": 7 } ], "*c": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "powershell", "winTitle": "ahk_exe WindowsTerminal.exe", "target": "shortcuts\\PowerShell 7-preview (x64).lnk" } ], "*d": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "邮箱", "winTitle": "收件箱 ahk_exe OUTLOOK.EXE", "target": "shortcuts\\Outlook.lnk" } ], "*e": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "edge浏览器", "winTitle": "Edge ahk_class Chrome_WidgetWin_1", "target": "shortcuts\\Microsoft Edge.lnk" } ], "*f": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "华为翻译", "winTitle": "HUAWEI Translate ahk_class Chrome_WidgetWin_1 ahk_exe msedge.exe", "target": "shortcuts\\HUAWEI Translate.lnk" } ], "*g": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "谷歌浏览器", "winTitle": "ahk_class Chrome_WidgetWin_1 ahk_exe chrome.exe", "target": "shortcuts\\Google Chrome.lnk" } ], "*k": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:8", "actionValueID": 15 } ], "*m": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "welink会议", "winTitle": "CloudMeeting ahk_class FrameWorkWnd ahk_exe WeLinkMeeting.exe" } ], "*q": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "idea回款工程", "winTitle": "CollectionMgtService ahk_exe idea64.exe" } ], "*r": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:3", "actionValueID": 3 } ], "*s": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:4", "actionValueID": 4 } ], "*t": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:11", "actionValueID": 9 } ], "*w": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "idea随手记", "winTitle": "suj ahk_exe idea64.exe" } ], "*x": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:1", "actionValueID": 1 } ], "*z": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:10", "actionValueID": 8 } ], "singlePress": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入 Tab 键", "keysToSend": "{blind}{Tab}" } ] } }, { "id": 9, "name": "文本编辑佳", "enable": true, "hotkey": ";", "parentID": 0, "delay": 0, "hotkeys": { "*-": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:43", "actionValueID": 6 } ], "*0": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:42", "actionValueID": 5 } ], "*1": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器1", "keysToSend": "\"1y" } ], "*2": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Up", "remapToKey": "Up" } ], "*3": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器3", "keysToSend": "\"3y" } ], "*4": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器4", "keysToSend": "\"4y" } ], "*5": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器5", "keysToSend": "\"5y" } ], "*6": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器6", "keysToSend": "\"6y" } ], "*7": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器7", "keysToSend": "\"7y" } ], "*8": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器8", "keysToSend": "\"8y" } ], "*9": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器9", "keysToSend": "\"9y" } ], "*`": [ { "windowGroupID": 0, "actionTypeID": 9, "comment": "label:71", "actionValueID": 1 } ], "*a": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Left", "remapToKey": "Left" } ], "*b": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:52", "actionValueID": 15 } ], "*c": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:24", "actionValueID": 8 } ], "*d": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Right", "remapToKey": "Right" } ], "*e": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:53", "actionValueID": 16 } ], "*f": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:42", "actionValueID": 5 } ], "*g": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:43", "actionValueID": 6 } ], "*h": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:54", "actionValueID": 17 } ], "*i": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入组合键alt up,在idea中表示向上复制光标", "keysToSend": "!{up}" } ], "*j": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "删除右边一个字符", "keysToSend": "{left}{backspace}" } ], "*k": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:54", "actionValueID": 17 } ], "*l": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 LShift", "remapToKey": "LShift" } ], "*m": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器m", "keysToSend": "\"my" } ], "*n": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入组合键alt down", "keysToSend": "!down" } ], "*o": [ { "windowGroupID": 5, "actionTypeID": 6, "comment": "vim模式下复制选中的文本到寄存器o", "keysToSend": "\"oy" } ], "*p": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:51", "actionValueID": 14 } ], "*q": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:62", "actionValueID": 20 } ], "*r": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:63", "actionValueID": 21 } ], "*s": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Down", "remapToKey": "Down" } ], "*t": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:55", "actionValueID": 33 } ], "*u": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:56", "actionValueID": 18 } ], "*v": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "Ctrl V", "keysToSend": "^v" } ], "*w": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:45", "actionValueID": 8 } ], "*x": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "Ctrl X", "keysToSend": "^x" } ], "*y": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Delete", "remapToKey": "Delete" } ], "*z": [ { "windowGroupID": 0, "actionTypeID": 7, "comment": "label:50", "actionValueID": 13 } ], "singlePress": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入 j 键", "keysToSend": "{blind}{;}" } ] } }, { "id": 10, "name": "命令模式", "enable": true, "hotkey": "RControl", "parentID": 0, "delay": 0, "hotkeys": { "singlePress": [ { "windowGroupID": 0, "actionTypeID": 9, "comment": "label:76", "actionValueID": 6 } ] } }, { "id": 1, "name": "Custom Hotkeys", "enable": true, "hotkey": "customHotkeys", "parentID": 0, "delay": 0, "hotkeys": { "!d": [ { "windowGroupID": 0, "actionTypeID": 5, "comment": "重映射为 Delete", "remapToKey": "Delete" }, { "windowGroupID": 6, "actionTypeID": 5, "comment": "重映射为 Delete", "remapToKey": "Delete" } ], "F12": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "用于切换ideavim模式,从idea编辑模式切换到vim模式后自动切到normal模式", "keysToSend": "{f12}{esc}" } ], "^d": [ { "windowGroupID": 7, "actionTypeID": 6, "comment": "welink查看未读消息", "keysToSend": "^!d" } ], "^q": [ { "windowGroupID": 7, "actionTypeID": 6, "comment": "welink查看上一个会话", "keysToSend": "^!q" } ], "^s": [ { "windowGroupID": 7, "actionTypeID": 6, "comment": "welink激活搜索", "keysToSend": "^!s" } ], "^w": [ { "windowGroupID": 7, "actionTypeID": 6, "comment": "welink查看下一个会话", "keysToSend": "^!w" } ] } }, { "id": 2, "name": "Command", "enable": true, "hotkey": "capslockAbbr", "parentID": 0, "delay": 0, "hotkeys": { "bb": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "查询选中的单词 (低配版划词翻译)", "winTitle": "Bing 词典", "target": "msedge.exe", "args": "--app=https://www.bing.com/dict/search?q={selected}" } ], "ca": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "Calculator ( 计算器 )", "winTitle": "计算器", "target": "calc.exe" } ], "dd": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "打开「 下载 」文件夹", "target": "shell:downloads" } ], "dm": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "打开「 MyKeymap 」文件夹", "target": "ahk-expression: A_WorkingDir" } ], "ex": [ { "windowGroupID": 0, "actionTypeID": 9, "comment": "label:73", "actionValueID": 3 } ], "gj": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:19", "actionValueID": 3 } ], "kp": [ { "windowGroupID": 0, "actionTypeID": 3, "comment": "label:8", "actionValueID": 15 } ], "ld": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:22", "actionValueID": 6 } ], "lj": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "打开「 回收站 」文件夹", "target": "shell:RecycleBinFolder" } ], "mu": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:2401", "actionValueID": 9 } ], "no": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "记事本", "winTitle": "记事本", "target": "notepad.exe" } ], "rex": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:23", "actionValueID": 7 } ], "sd": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "使用powertoys切换当前窗口置顶状态;有置顶边框显示防呆", "keysToSend": "#^t" } ], "se": [ { "windowGroupID": 0, "actionTypeID": 9, "comment": "label:74", "actionValueID": 4 } ], "sl": [ { "windowGroupID": 0, "actionTypeID": 2, "comment": "label:18", "actionValueID": 2 } ], "ss": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "Spotify 应用", "winTitle": "ahk_exe Spotify.exe", "target": "shortcuts\\Spotify.lnk" } ], "tm": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "Ctrl + Shift + Esc ( Task Manager )", "keysToSend": "^+{esc}" } ], "vm": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "Volume Mixer 音量合成器", "target": "ms-settings:apps-volume" } ], "wt": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "用 Windows Terminal 打开选中的文件夹", "target": "wt.exe", "args": "-d \"{selected}\"" } ] } }, { "id": 3, "name": "Abbreviation", "enable": true, "hotkey": "semicolonAbbr", "parentID": 0, "delay": 0, "hotkeys": { ",": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入中文逗号", "keysToSend": "," } ], ".": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入中文句号", "keysToSend": "。" } ], "/": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入中文顿号", "keysToSend": "、" } ], "cc": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "用剪切板收集文本 (连续复制然后合并粘贴)", "winTitle": "连续复制后 ahk_class AutoHotkeyGUI", "target": "bin\\AutoHotkey64.exe", "args": "bin\\CollectText.ahk", "runInBackground": true, "detectHiddenWindow": true } ], "dk": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入一对 {} 并把光标移动中间", "keysToSend": "{text}{}\n{left}" } ], "dq": [ { "windowGroupID": 0, "actionTypeID": 1, "comment": "对齐代码注释", "target": "bin\\AutoHotkey64.exe", "args": "bin\\AlignComment.ahk", "runInBackground": true } ], "fq": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入中文中括号【】并光标居中", "keysToSend": "{text}【】\n{left}" } ], "gt": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "狗头 🐶", "keysToSend": "🐶" } ], "jt": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入箭头符号", "keysToSend": "{text}➤ " } ], "rq": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入当前日期", "keysToSend": "ahk-expression: Format(\"{}-{}-{}\", A_YYYY, A_MM, A_DD)" } ], "sj": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "当前时间 例 2024-08-07 09:07:14", "keysToSend": "ahk-expression: Format(\"{}-{}-{} {}:{}:{}\", A_YYYY, A_MM, A_DD, A_Hour, A_Min,A_Sec)" } ], "sq": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入一对「」并把光标移动中间", "keysToSend": "「 」\n{left 2}" } ], "uj": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入当前时间例 2024年08月07日 09:07:14", "keysToSend": "ahk-expression: Format(\"{}年{}月{}日 {}:{}:{}\", A_YYYY, A_MM, A_DD, A_Hour, A_Min,A_Sec)" } ], "um": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入书名号并光标居中", "keysToSend": "{text}《》\n{left}" } ], "v": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "破折号", "keysToSend": "——" } ], "xf": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入小括号和分号", "keysToSend": "();{left 2}" } ], "xk": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入一对 () 并把光标移到中间", "keysToSend": "(){left}" } ], "zh": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "搜索时加上 site: 选项,能让搜索引擎只搜某网站的内容,另外用 inurl: 过滤掉专栏和视频内容", "keysToSend": "{text} site:zhihu.com inurl:question" } ], "zk": [ { "windowGroupID": 0, "actionTypeID": 6, "comment": "输入一对 [] 并把光标移到中间", "keysToSend": "[]{left}" } ] } }, { "id": 4, "name": "Settings", "enable": true, "hotkey": "settings", "parentID": 0, "delay": 0, "hotkeys": {} } ], "options": { "mykeymapVersion": "2.0-beta31", "windowGroups": [ { "id": -1, "name": "🚫 Exclude", "value": "Stardew Valley ahk_class SDL_app\nahk_exe Rune Factory 3 Special.exe" }, { "id": 0, "name": "🌎 Global" }, { "id": 1, "name": "🌐 Web Browser", "value": "ahk_exe chrome.exe\nahk_exe msedge.exe\nahk_exe firefox.exe", "conditionType": 1 }, { "id": 3, "name": "📁 File Explorer", "value": "ahk_exe explorer.exe", "conditionType": 1 }, { "id": 5, "name": "编辑器", "value": "ahk_exe idea64.exe\nahk_exe WindowsTerminal.exe", "conditionType": 1 }, { "id": 6, "name": "obsidian", "value": "Obsidian ahk_exe Obsidian.exe", "conditionType": 1 }, { "id": 7, "name": "welink", "value": "ahk_exe WeLinkPC.exe", "conditionType": 1 } ], "mouse": { "keepMouseMode": false, "showTip": false, "tipSymbol": "🐶", "delay1": "0.13", "delay2": "0.01", "fastSingle": "110", "fastRepeat": "70", "slowSingle": "10", "slowRepeat": "13" }, "scroll": { "delay1": "0.2", "delay2": "0.03", "onceLineCount": "1" }, "commandInputSkin": { "backgroundColor": "#FFFFFF", "backgroundOpacity": "0.9", "borderWidth": "3", "borderColor": "#FFFFFF", "borderOpacity": "1.0", "borderRadius": "10", "cornerColor": "#000000", "cornerOpacity": "0.0", "gridlineColor": "#2843AD", "gridlineOpacity": "0.04", "keyColor": "#000000", "keyOpacity": "1.0", "hideAnimationDuration": "0.34", "windowYPos": "0.25", "windowWidth": "700", "windowShadowColor": "#000000", "windowShadowOpacity": "0.5", "windowShadowSize": "3.0" }, "pathVariables": [ { "name": "programs", "value": "C:\\ProgramData\\Microsoft\\Windows\\Start Menu\\Programs\\" } ], "startup": true, "language": "zh", "keyMapping": "", "keyboardLayout": "` 1 2 3 4 5 6 7 8 9 0 - \nq w e r t y u i o p [\na s d f g h j k l ; '\nz x c v b n m , . /\nsinglePress" } }
更新一个一键解压安装新版本的脚本,需要依赖7z解压软件并将其命令行程序加入path
7z x ~\Downloads\MyKeymap-2.0-beta31.7z -aoa -od:\ "-xr!MyKeymap-2.0-beta31\data\*"
命令中的~\Downloads和d:\请自行替换成自己的压缩包所在目录和目标解压目录
可以由owner或热心网友审核后挑选比较有代表性的以及文档说明清晰的合入仓库. 这样新用户在使用软件时有更多的配建方案可以选择 以下补充一个我自己的映射方案,侧重点在文字编辑和窗口切换,使用注册表将Capslock和左Ctrl互换后使用体验更佳: