Change name of checkbox toggle functionality

This commit is contained in:
Kenneth Benzie 2016-12-24 13:18:52 +00:00
parent 41aa424a57
commit dda5ee4e8b

View File

@ -59,8 +59,8 @@ function! <SID>TabWidth(width)
endfunction endfunction
command! -nargs=1 TabWidth :call <SID>TabWidth(<f-args>) command! -nargs=1 TabWidth :call <SID>TabWidth(<f-args>)
" Toggle task list bullet " Toggle GitHub style bullet checkbox
function! <SID>TaskToggle() function! <SID>CheckboxToggle()
" Get current line " Get current line
let l:line = getline('.') let l:line = getline('.')
@ -78,9 +78,5 @@ function! <SID>TaskToggle()
" Replace the current line with a new one " Replace the current line with a new one
call setline(line('.'), substitute(l:line, l:pattern, l:char, '')) call setline(line('.'), substitute(l:line, l:pattern, l:char, ''))
endfunction endfunction
command! TaskToggle :call <SID>TaskToggle() command! CheckboxToggle :call <SID>CheckboxToggle()
nnoremap <leader>x :TaskToggle<CR> nnoremap <leader><CR> :CheckboxToggle<CR>
" {Dis,En}able macro mode, use <CR> to repeat last macro
command! MacroModeEnable :call macro_mode#enable()
command! MacroModeDisable :call macro_mode#disable()