{"id":19680762,"url":"https://github.com/codewars/codemirror-agda","last_synced_at":"2025-04-29T04:31:39.833Z","repository":{"id":47077447,"uuid":"175536286","full_name":"codewars/codemirror-agda","owner":"codewars","description":"Agda mode and input helper for CodeMirror used on Codewars","archived":false,"fork":false,"pushed_at":"2024-09-27T06:36:30.000Z","size":65,"stargazers_count":6,"open_issues_count":2,"forks_count":3,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-19T21:45:45.297Z","etag":null,"topics":["agda","codemirror"],"latest_commit_sha":null,"homepage":"https://codewars.github.io/codemirror-agda/","language":"TypeScript","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/codewars.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2019-03-14T02:46:58.000Z","updated_at":"2023-03-14T09:25:45.000Z","dependencies_parsed_at":"2022-09-14T02:01:19.734Z","dependency_job_id":null,"html_url":"https://github.com/codewars/codemirror-agda","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-agda","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-agda/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-agda/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/codewars%2Fcodemirror-agda/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/codewars","download_url":"https://codeload.github.com/codewars/codemirror-agda/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251432859,"owners_count":21588669,"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":["agda","codemirror"],"created_at":"2024-11-11T18:05:58.422Z","updated_at":"2025-04-29T04:31:39.580Z","avatar_url":"https://github.com/codewars.png","language":"TypeScript","readme":"# codemirror-agda\n\nCodeMirror extension for editing Agda.\n\nProvides a function `defineMode` to define `agda` mode, and an array `UNICODE_HELPER_PAIRS`.\n\n- `defineMode(CodeMirror)`: Define `agda` mode and MIME `text/x-agda`.\n- `UNICODE_HELPER_PAIRS` (`[seq: string, sym: string][]`): For entering Unicode characters with ASCII sequences using [@codewars/codemirror-unicode-helper](https://github.com/codewars/codemirror-unicode-helper). A subset of `agda-input-translations` in `agda-input.el`.\n\nSee \u003chttps://codewars.github.io/codemirror-agda/\u003e.\n\n## Usage\n\n```javascript\nimport CodeMirror from \"codemirror\";\nimport \"codemirror/addon/mode/simple\"; // `defineSimpleMode`\nimport \"codemirror/addon/hint/show-hint\"; // optional\nimport { unicodeHelperWith } from \"@codewars/codemirror-unicode-helper\"; // optional\n\nimport { defineMode, UNICODE_HELPER_PAIRS } from \"@codewars/codemirror-agda\";\n\ndefineMode(CodeMirror);\n// Optionally register unicode input helper.\n// `show-hint` addon is required.\nCodeMirror.registerGlobalHelper(\n  \"hint\",\n  \"agda-input\",\n  // only enable in agda mode\n  (mode, cm) =\u003e mode \u0026\u0026 mode.name === \"agda\",\n  unicodeHelperWith(UNICODE_HELPER_PAIRS)\n);\n```\n\n## Acknowledgments\n\nAgda mode was contributed by [@Bubbler-4](https://github.com/Bubbler-4).\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewars%2Fcodemirror-agda","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcodewars%2Fcodemirror-agda","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcodewars%2Fcodemirror-agda/lists"}