{"id":19958232,"url":"https://github.com/shaddollxz/keyput-methoard","last_synced_at":"2025-03-01T16:14:50.639Z","repository":{"id":191003457,"uuid":"683745092","full_name":"shaddollxz/keyput-methoard","owner":"shaddollxz","description":"自定义键入法 - 让你键步如飞","archived":false,"fork":false,"pushed_at":"2025-02-27T10:16:13.000Z","size":1387,"stargazers_count":3,"open_issues_count":0,"forks_count":1,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-27T13:52:23.132Z","etag":null,"topics":["autohotkey","karabiner-elements","keymapping"],"latest_commit_sha":null,"homepage":"","language":"AutoHotkey","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shaddollxz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-08-27T15:13:48.000Z","updated_at":"2025-02-27T10:04:34.000Z","dependencies_parsed_at":"2023-10-10T16:45:31.380Z","dependency_job_id":"0b84537e-fac7-478d-97c3-86d6638c7756","html_url":"https://github.com/shaddollxz/keyput-methoard","commit_stats":null,"previous_names":["shaddollxz/keybord","shaddollxz/keyput-methoard"],"tags_count":25,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaddollxz%2Fkeyput-methoard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaddollxz%2Fkeyput-methoard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaddollxz%2Fkeyput-methoard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shaddollxz%2Fkeyput-methoard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shaddollxz","download_url":"https://codeload.github.com/shaddollxz/keyput-methoard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":241389166,"owners_count":19955107,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["autohotkey","karabiner-elements","keymapping"],"created_at":"2024-11-13T01:41:34.860Z","updated_at":"2025-03-01T16:14:50.617Z","avatar_url":"https://github.com/shaddollxz.png","language":"AutoHotkey","funding_links":[],"categories":[],"sub_categories":[],"readme":"# keyput-methoard\n\n自定义键盘映射，灵感来源于 [myKeyMap](https://github.com/xianyukang/MyKeymap)，根据自己的需求重写的一套配置\n\n## win\n\n### 使用\n\n在 [release](https://github.com/shaddollxz/keyput-methoard/blob/main/releases) 中选择 exe 文件下载\n\n或者拉下代码，在本地使用 `powershell` 运行 `win/build/build.ps1` 脚本进行编译\n\n如果需要修改键位，可以 fork 下本仓库，自己进行修改，[AHK 官网](https://www.autohotkey.com) 中可以找到脚本语法说明和调试方法\n\n### 开机自启动\n\n把 exe 文件放到 `C:\\Users\\%username%\\AppData\\Roaming\\Microsoft\\Windows\\Start Menu\\Programs\\Startup` 下即可\n\n## mac\n\nmac 上推荐使用 [karabiner](https://karabiner-elements.pqrs.org/) 来设置按键，这里提供了 [goku](https://github.com/yqrashawn/GokuRakuJoudo/tree/master) 的配置\n\n\u003e goku 可以用更简洁的语法生成 karabiner 的配置文件\n\n### 使用\n\n- 下载 [karabiner](https://karabiner-elements.pqrs.org/) 和 [goku](https://github.com/yqrashawn/GokuRakuJoudo/tree/master)\n\n- 在 [release](https://github.com/shaddollxz/keyput-methoard/blob/main/releases) 中下载 karabiner.edn\n\n- 或者拉下代码，在本地使用 `bash` 运行 mac 文件夹下的 `build.sh` 脚本来生成 `karabiner.edn`\n\n- 把 `karabiner.edn` 复制到 `~/.config` 下\n\n- 命令行执行命令 `goku`\n\n同样的，如果需要修改键位，可以看看[goku 的配置文档](https://github.com/yqrashawn/GokuRakuJoudo/blob/master/tutorial.md)自己修改\n\n## 键位替换说明\n\n为了在 `win` 和 `mac` 下手感相同，这里额外做了一些键位修改\n\n### win\n\n- 把 `右alt` 和 `右ctrl` 进行了替换，和 `mac` 的键位保持一致\n- `左ctrl + q` 会关闭当前窗口\n- `左ctrl + h` 会隐藏当前窗口\n- `win + space` 会触发 windows 的焦距搜索\n- `win + 左键` 会触发右键\n\n### mac\n\n这里只提供了复杂键映射，需要在 `karabiner` 中额外配置 `command` 等键的映射，这里给出推荐配置\n\n| from         | to           |\n| ------------ | ------------ |\n| key_code::fn | left_command |\n| left_command | left_option  |\n| left_option  | key_code::fn |\n\n## 键位说明\n\n主要分为 `9模式` `3模式` `分号模式` `caps模式` `tab模式`\n\n### 9 模式\n\n在按住 `9` 时同时对其他键操作会进入对应的副模式\n\n- 按下 `space`：移动键会自动带上 `shift` 进行多选，再次按下该键或按下删除键、功能键退出\n- 按下 `i`：删除键会自动带上 `ctrl` 能以单词为单位进行删除，再次按下该键退出\n- 按住 `caps`：上下移动键 `w s` 会同时带上 `alt` 能将多行文本上下移动，可以和 `space` 副模式同时使用；在使用代码折叠功能（9 + h）时，带上该键为展开代码\n\n![mode_9](/keyboard-map/mode_9.png)\n\n### 3 模式\n\n输入数字，为了保证容错，有几个数字进行了多次设置\n\n![mode_3](/keyboard-map/mode_3.png)\n\n### 分号模式\n\n输入字符，同时为了弥补分号输入没有右括号的问题，额外添加了 `引号模式` 进行补足\n\n![mode_semi](/keyboard-map/mode_semi.png)\n\n### Caps 模式\n\n主要拿来做页面切换，浏览器快捷键等和输入没关系的事\n\n\u003e `caps + a / caps + g` 只会在 windows 上运行，mac 上没有对应功能的快捷键\n\u003e `caps + j / caps + l` 只会在 vscode 上运行\n\n![mode_caps](/keyboard-map/mode_caps.png)\n\n### Tab 模式\n\n`ctrl + alt` / `command + options` 作为组合键实在不好用，这里为这个组合提供了快捷键\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaddollxz%2Fkeyput-methoard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshaddollxz%2Fkeyput-methoard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshaddollxz%2Fkeyput-methoard/lists"}