{"id":13479351,"url":"https://github.com/markmap/coc-markmap","last_synced_at":"2025-10-25T21:30:25.436Z","repository":{"id":50250451,"uuid":"233410401","full_name":"markmap/coc-markmap","owner":"markmap","description":null,"archived":false,"fork":false,"pushed_at":"2024-02-09T12:23:42.000Z","size":283,"stargazers_count":206,"open_issues_count":2,"forks_count":13,"subscribers_count":6,"default_branch":"master","last_synced_at":"2024-05-22T00:11:27.579Z","etag":null,"topics":["coc","markmap","vim"],"latest_commit_sha":null,"homepage":"https://markmap.js.org/","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/markmap.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":"2020-01-12T15:04:12.000Z","updated_at":"2024-06-21T17:54:47.808Z","dependencies_parsed_at":"2024-06-21T17:54:09.905Z","dependency_job_id":"2a71d937-951d-4df9-b2cd-cf18c6c79418","html_url":"https://github.com/markmap/coc-markmap","commit_stats":null,"previous_names":["gera2ld/coc-markmap"],"tags_count":20,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap%2Fcoc-markmap","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap%2Fcoc-markmap/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap%2Fcoc-markmap/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/markmap%2Fcoc-markmap/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/markmap","download_url":"https://codeload.github.com/markmap/coc-markmap/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":238207654,"owners_count":19434096,"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":["coc","markmap","vim"],"created_at":"2024-07-31T16:02:14.057Z","updated_at":"2025-10-25T21:30:25.020Z","avatar_url":"https://github.com/markmap.png","language":"TypeScript","funding_links":[],"categories":["TypeScript"],"sub_categories":[],"readme":"# coc-markmap\n\n![NPM](https://img.shields.io/npm/v/coc-markmap.svg)\n\nVisualize your Markdown as mindmaps with [markmap](https://markmap.js.org/).\n\nThis is an extension for [coc.nvim](https://github.com/neoclide/coc.nvim).\n\nIf you prefer a CLI version, see [markmap-cli](https://markmap.js.org/docs/packages--markmap-cli).\n\nNote: _coc-markmap_ uses _markmap-cli_ under the hood, and supports more features by connecting the Markmap with the current buffer, such as highlighting the node under cursor.\n\n\u003cimg src=\"https://user-images.githubusercontent.com/3139113/72221499-52476a80-3596-11ea-8d15-c57fdfe04ce0.png\" alt=\"markdown\" width=\"300\"\u003e \u003cimg src=\"https://user-images.githubusercontent.com/3139113/72221508-7014cf80-3596-11ea-9b59-b8a97bba8e1c.png\" alt=\"mindmap\" width=\"300\"\u003e\n\n## Installation\n\nFirst, make sure [coc.nvim](https://github.com/neoclide/coc.nvim) is started.\n\nThen install with the Vim command:\n\n```\n:CocInstall coc-markmap\n```\n\n## Usage\n\nYou can run the commands below **in a buffer of Markdown file**.\n\n### Generating a markmap HTML\n\n```viml\n:CocCommand markmap.create\n```\n\nInline all assets to work offline:\n\n```viml\n:CocCommand markmap.create --offline\n```\n\n**This command will create an HTML file rendering the markmap and can be easily shared.**\n\nThe HTML file will have the same basename as the Markdown file and will be opened in your default browser. If there is a selection, it will be used instead of the file content.\n\n### Watching mode\n\n```viml\n:CocCommand markmap.watch\n```\n\n**This command will start a development server, watch the current buffer and track your cursor.**\n\nThe markmap will update once the markdown file changes, and the node under cursor will always be visible in the viewport on cursor move.\n\n```viml\n:CocCommand markmap.unwatch\n```\n\n**The command will unwatch the current buffer.**\n\n## Configurations\n\n### CocConfig\n\nYou can change some global configurations for this extension in `coc-settings.json`.\n\nFirst open the settings file with `:CocConfig`.\n\n### Key mappings\n\nThere is no default key mapping, but you can easily add your own:\n\n```viml\n\" Create markmap from the whole file\nnmap \u003cLeader\u003em \u003cPlug\u003e(coc-markmap-create)\n```\n\n### Commands\n\nIt is also possible to add a command to create markmaps.\n\n```viml\ncommand! -range=% Markmap CocCommand markmap.create \u003cline1\u003e \u003cline2\u003e\n```\n\nNow you have the `:Markmap` command to create a Markmap, either from the whole file or selected lines.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmap%2Fcoc-markmap","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fmarkmap%2Fcoc-markmap","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fmarkmap%2Fcoc-markmap/lists"}