Skip to content

Slim, configurable checkbox status switcher for Markdown list items.

License

Notifications You must be signed in to change notification settings

tenxsoydev/vim-markdown-checkswitch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

vim-markdown-checkswitch

Slim, configurable checkbox status switcher for Markdown list items.

Serves as a good little addition to common vim-markdown-plugins like preservim/vim-markdown.

Preview

Installation

Using a plugin manger like packer.nvim

use {
  "tenxsoydev/vim-markdown-checkswitch",
  ft = {
    "markdown",
  },
}

Commands

" Switch checkbox status for line, range, or visual selection
:CheckSwitch

Options

" Cycle between NO checkbox, empty, and ticked checkboxes 
" or toggle between empty and ticked checkboxes
let g:md_checkswitch_style = 'cycle'  " or 'toggle'

Mappings

" Default mapping <Alt-c>. For those who are familiar with Codiums 'Markdown All in One' plugin 
" (can be disabled with `let g:md_checkswitch_default_mappings_off=1`)
nnoremap <silent> <A-c> :CheckSwitch<cr>
vnoremap <silent> <A-c> :CheckSwitch<cr>gv

About

Slim, configurable checkbox status switcher for Markdown list items.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published