{"id":18109655,"url":"https://github.com/replit/codemirror-vscode-keymap","last_synced_at":"2025-04-10T03:31:49.913Z","repository":{"id":42620074,"uuid":"444898912","full_name":"replit/codemirror-vscode-keymap","owner":"replit","description":"VSCode keyboard shortcuts for CodeMirror 6","archived":false,"fork":false,"pushed_at":"2023-10-07T11:34:07.000Z","size":200,"stargazers_count":39,"open_issues_count":2,"forks_count":7,"subscribers_count":39,"default_branch":"master","last_synced_at":"2025-03-20T13:17:58.333Z","etag":null,"topics":["codemirror","editor","vscode"],"latest_commit_sha":null,"homepage":"https://replit.com/@util/CodeMirror-VSCode-Keymap","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/replit.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2022-01-05T17:50:57.000Z","updated_at":"2025-02-05T02:49:59.000Z","dependencies_parsed_at":"2024-06-20T22:02:50.541Z","dependency_job_id":"e8955670-609c-4ef4-811e-916e66c081db","html_url":"https://github.com/replit/codemirror-vscode-keymap","commit_stats":{"total_commits":26,"total_committers":5,"mean_commits":5.2,"dds":0.5384615384615384,"last_synced_commit":"1525255cdf5c8cf064350a6cb2d87d5ab562ced8"},"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-vscode-keymap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-vscode-keymap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-vscode-keymap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/replit%2Fcodemirror-vscode-keymap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/replit","download_url":"https://codeload.github.com/replit/codemirror-vscode-keymap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248151061,"owners_count":21056017,"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":["codemirror","editor","vscode"],"created_at":"2024-11-01T00:01:53.450Z","updated_at":"2025-04-10T03:31:44.893Z","avatar_url":"https://github.com/replit.png","language":"TypeScript","readme":"# CodeMirror VSCode Keymap\n\n\u003cspan\u003e\u003ca href=\"https://replit.com/@util/CodeMirror-VSCode-Keymap\" title=\"Run on Replit badge\"\u003e\u003cimg src=\"https://replit.com/badge/github/replit/codemirror-indentation-markers\" alt=\"Run on Replit badge\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\u003cspan\u003e\u003ca href=\"https://www.npmjs.com/package/@replit/codemirror-vscode-keymap\" title=\"NPM version badge\"\u003e\u003cimg src=\"https://img.shields.io/npm/v/@replit/codemirror-vscode-keymap?color=blue\" alt=\"NPM version badge\" /\u003e\u003c/a\u003e\u003c/span\u003e\n\nPorts VSCode's keyboard shortcuts to CodeMirror 6.\n\nThis keymap includes shortcuts for all the official extension and replaces codemirror default keymaps:\n- autocomplete (make sure to set `defaultKeymap: false` when enabling this plugin)\n- closebrackets\n- commands\n- comment\n- fold\n- history\n- lint\n- search\n\nThe keymap is based on the following:\n- [Windows](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-windows.pdf)\n- [Mac](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-macos.pdf)\n- [Linux](https://code.visualstudio.com/shortcuts/keyboard-shortcuts-linux.pdf)\n\n### Usage\n```ts\nimport { EditorView, keymap } from '@codemirror/view';\nimport { EditorState } from '@codemirror/state';\nimport { javascript } from '@codemirror/lang-javascript';\nimport { vscodeKeymap } from \"@replit/codemirror-vscode-keymap\";\n\nconst doc = `\nfunction wow() {\n  function hello() {\n    console.log({\n      lol: 1\n    })\n  }\n}\n`\n\nnew EditorView({\n  state: EditorState.create({\n    doc,\n    extensions: [keymap.of(vscodeKeymap), javascript()],\n  }),\n  parent: document.querySelector('#editor'),\n});\n```\n\n### Missing features\n- Scroll Line Down\tCtrl+Down\n- Scroll Line Up\tCtrl+Up\n- Scroll Page Down\tAlt+PageDown\n- Scroll Page Up\tAlt+PageUp\n\n","funding_links":[],"categories":["Keybindings"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-vscode-keymap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Freplit%2Fcodemirror-vscode-keymap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Freplit%2Fcodemirror-vscode-keymap/lists"}