{"id":19438323,"url":"https://github.com/opensumi/shortcuts-guard","last_synced_at":"2026-04-11T16:38:35.878Z","repository":{"id":46585511,"uuid":"515469174","full_name":"opensumi/shortcuts-guard","owner":"opensumi","description":"A Chrome extension for browser shortcuts supported with OpenSumi IDE.","archived":false,"fork":false,"pushed_at":"2022-11-24T10:11:40.000Z","size":79,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":23,"default_branch":"main","last_synced_at":"2025-01-07T21:27:06.190Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://chrome.google.com/webstore/detail/shortcuts-guard/nephehdkdelkjgiihmhdjpedpoinmpjl","language":"Less","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/opensumi.png","metadata":{"files":{"readme":"README-zh_CN.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}},"created_at":"2022-07-19T06:51:28.000Z","updated_at":"2023-03-13T09:24:49.000Z","dependencies_parsed_at":"2023-01-21T20:35:13.697Z","dependency_job_id":null,"html_url":"https://github.com/opensumi/shortcuts-guard","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensumi%2Fshortcuts-guard","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensumi%2Fshortcuts-guard/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensumi%2Fshortcuts-guard/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/opensumi%2Fshortcuts-guard/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/opensumi","download_url":"https://codeload.github.com/opensumi/shortcuts-guard/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240619440,"owners_count":19830206,"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":[],"created_at":"2024-11-10T15:17:55.445Z","updated_at":"2026-04-11T16:38:30.825Z","avatar_url":"https://github.com/opensumi.png","language":"Less","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Shortcuts Guard\n\n![prettier code style](https://img.shields.io/badge/code_style-prettier-ff69b4.svg?style=flat-square)\n\n[English](./README.md) | 简体中文\n\nOpenSumi IDE 快捷键存在和谷歌浏览器快捷键冲突的情况，这些情况让 OpenSumi IDE 对应行为无法生效。Shortcuts Guard 解决常用的快捷键冲突。\n\n## 使用说明\n\n- 点击插件图标，然后会出现一个 popup 页面。\n- 在 popup 页面中输入可为匹配模式的 URL，插件会在你输入的 URL 上守护 OpenSumi IDE 快捷键。\n- 点击 popup 页面右上角键盘图标，前往[快捷键设置页面](chrome://extensions/shortcuts)，然后输入冲突的快捷键。\n\n## 匹配模式\n\n### 基本语法\n\n```text\n\u003curl-pattern\u003e := \u003cscheme\u003e://\u003chost\u003e\u003cpath\u003e\n\u003cscheme\u003e := '*' | 'http' | 'https'\n\u003chost\u003e := '*' | '*.' \u003cany char except '/' and '*'\u003e+\n\u003cpath\u003e := '/' \u003cany chars\u003e\n```\n\n### 例子\n\n| 模式                               | 它有什么效果                                                                                                                                          | 匹配的 URLs 例子                                                      |\n| ---------------------------------- | ----------------------------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------- |\n| `https://*/*`                      | 匹配任何使用 `https` scheme 的 URL                                                                                                                    | https://www.google.com/\u003cbr/\u003ehttps://example.org/foo/bar.html          |\n| `https://*/foo*`                   | 匹配任何使用 `https` scheme 且 path 以`/foo`开头的 URL                                                                                                | https://example.com/foo/bar.html\u003cbr/\u003ehttps://www.google.com/foo       |\n| `https://*.google.com/foo*bar`     | 匹配任何使用 `https` scheme、基于 google.com 的 host（例如 www.google.com、docs.google.com 或 google.com）且 path 以 `/foo` 开头并以 `bar` 结尾的 URL | https://www.google.com/foo/baz/bar\u003cbr/\u003ehttps://docs.google.com/foobar |\n| `https://example.org/foo/bar.html` | 匹配指定的 URL                                                                                                                                        | https://example.org/foo/bar.html                                      |\n| `http://127.0.0.1/*`               | 匹配任何使用 `http` scheme 且 host 为 127.0.0.1 的 URL                                                                                                | http://127.0.0.1/\u003cbr/\u003ehttp://127.0.0.1/foo/bar.html                   |\n| `*://mail.google.com/*`            | 匹配任何以 `http://mail.google.com` 或 `https://mail.google.com` 开头的 URL                                                                           | http://mail.google.com/foo/baz/bar\u003cbr/\u003ehttps://mail.google.com/foobar |\n\n\u003e 参考 [Match patterns - Chrome Developers](https://developer.chrome.com/docs/extensions/mv3/match_patterns/)\n\n## 守护的快捷键\n\n| **Windows 快捷键** | **Mac 快捷键** | **OpenSumi IDE Action** | **Chrome Action**                          |\n| :----------------- | :------------- | :---------------------- | :----------------------------------------- |\n| Ctrl + n           | ⌘ + n          | 新的无标题文件          | 打开新窗口                                 |\n| Ctrl + w           | ⌘ + w          | 关闭编辑器              | 关闭当前标签页                             |\n| Ctrl + t           | ⌘ + t          | 展示工作区符号          | 打开新的标签页，并跳转到该标签页           |\n| Ctrl + Shift + t   | ⌘ + Shift + t  | 重新打开已关闭的编辑器  | 按标签页的关闭顺序重新打开先前关闭的标签页 |\n| Ctrl + Shift + w   | ⌘ + Shift + w  | 关闭当前标签页          | 关闭当前窗口                               |\n\n\u003e 参考 [Chrome 快捷键 ](https://support.google.com/chrome/answer/157179?co=GENIE.Platform%3DDesktop\u0026hl=zh-Hans#zippy=%2C%E6%A0%87%E7%AD%BE%E9%A1%B5%E5%92%8C%E7%AA%97%E5%8F%A3%E5%BF%AB%E6%8D%B7%E9%94%AE)和 [VS Code 快捷键](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf)\n\n## 发布流程\n\n发布流程请参考此[文档](./HOW_TO_PUBLISH.md)。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensumi%2Fshortcuts-guard","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fopensumi%2Fshortcuts-guard","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fopensumi%2Fshortcuts-guard/lists"}