Skip to content
Visualize your Markdown as mindmaps with Markmap
JavaScript TypeScript
Branch: master
Clone or download
Latest commit 08651c9 Jan 16, 2020
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
scripts First blood Jan 12, 2020
src chore: migrate to eslint Jan 16, 2020
.babelrc.js First blood Jan 12, 2020
.browserslistrc First blood Jan 12, 2020
.editorconfig
.eslintignore chore: migrate to eslint Jan 16, 2020
.eslintrc.js
.gitignore First blood Jan 12, 2020
LICENSE First blood Jan 12, 2020
README.md
package.json chore: migrate to eslint Jan 16, 2020
rollup.conf.js refactor: extract CLI version Jan 13, 2020
tsconfig.json First blood Jan 12, 2020

README.md

coc-markmap

Visualize your Markdown as mindmaps with Markmap.

This is an extension for coc.nvim.

If you prefer a CLI version, see markmap-cli.

Note: coc-markmap allows generating markmaps from current buffer or selected text, while the CLI version can only create markmaps from Markdown files.

markdown mindmap

Installation

First, make sure coc.nvim is started.

Then install with the Vim command:

:CocInstall coc-markmap

Usage

Open a Markdown, and execute:

:CocCommand markmap.create

An HTML file with the same basename as the Markdown file will be created and opened in your default browser.

Visualization of selected text is also supported.

Configurations

Key mappings

There is no default key mapping, but you can easily add your own:

" Create markmap from the whole file
nmap <Leader>m <Plug>(coc-markmap-create)
" Create markmap from the selected lines
vmap <Leader>m <Plug>(coc-markmap-create-v)

Commands

It is also possible to add a command to create markmaps.

command! -range=% Markmap CocCommand markmap.create <line1> <line2>

Now you have the :Markmap command to create a Markmap, either from the whole file or selected lines.

Related

You can’t perform that action at this time.