Add default keybinding glx for toggling disabled

This commit is contained in:
Michael F. Schönitzer 2017-08-05 17:32:15 +02:00
parent 0136039306
commit 413b9ca04f
2 changed files with 12 additions and 1 deletions

View File

@ -455,6 +455,13 @@ gLI Change the symbol of the current list to
To remap: > To remap: >
noremap glo :VimwikiChangeSymbolTo I)<CR> noremap glo :VimwikiChangeSymbolTo I)<CR>
noremap glO :VimwikiChangeSymbolInListTo I)<CR> noremap glO :VimwikiChangeSymbolInListTo I)<CR>
<
*vimwiki_glx*
glx Toggle checkbox of a list item disabled/off.
Maps to |:VimwikiToggleListItemRejected|.
See |vimwiki-todo-lists|.
To remap: >
:map <Leader>tx <Plug>VimwikiToggleListItemRejected
< <
*vimwiki_gqq* *vimwiki_gww* *vimwiki_gqq* *vimwiki_gww*
gqq Format table. If you made some changes to a table gqq Format table. If you made some changes to a table
@ -1626,7 +1633,7 @@ gL<Space> (see |vimwiki_gL<Space>|) to remove all checkboxes of the list the
cursor is in. cursor is in.
You can mark an item as rejected ("won't do") with You can mark an item as rejected ("won't do") with
|:VimwikiToggleListItemRejected.| It will not influence the status of it's |vimwiki_glx|. A rejected item will not influence the status of it's
parents. parents.

View File

@ -443,6 +443,10 @@ if !hasmapto('<Plug>VimwikiToggleListItem')
vmap <silent><buffer> <C-@> <Plug>VimwikiToggleListItem vmap <silent><buffer> <C-@> <Plug>VimwikiToggleListItem
endif endif
endif endif
if !hasmapto('<Plug>VimwikiToggleListItemRejected')
nmap <silent><buffer> glx <Plug>VimwikiToggleListItemRejected
vmap <silent><buffer> glx <Plug>VimwikiToggleListItemRejected
endif
nnoremap <silent><script><buffer> nnoremap <silent><script><buffer>
\ <Plug>VimwikiToggleListItem :VimwikiToggleListItem<CR> \ <Plug>VimwikiToggleListItem :VimwikiToggleListItem<CR>
vnoremap <silent><script><buffer> vnoremap <silent><script><buffer>