From 413b9ca04fe079a0eb3e93173755e2b020fff92f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michael=20F=2E=20Sch=C3=B6nitzer?= Date: Sat, 5 Aug 2017 17:32:15 +0200 Subject: [PATCH] Add default keybinding glx for toggling disabled --- doc/vimwiki.txt | 9 ++++++++- ftplugin/vimwiki.vim | 4 ++++ 2 files changed, 12 insertions(+), 1 deletion(-) diff --git a/doc/vimwiki.txt b/doc/vimwiki.txt index 883c06c..80ef89e 100644 --- a/doc/vimwiki.txt +++ b/doc/vimwiki.txt @@ -455,6 +455,13 @@ gLI Change the symbol of the current list to To remap: > noremap glo :VimwikiChangeSymbolTo I) noremap glO :VimwikiChangeSymbolInListTo I) +< + *vimwiki_glx* +glx Toggle checkbox of a list item disabled/off. + Maps to |:VimwikiToggleListItemRejected|. + See |vimwiki-todo-lists|. + To remap: > + :map tx VimwikiToggleListItemRejected < *vimwiki_gqq* *vimwiki_gww* gqq Format table. If you made some changes to a table @@ -1626,7 +1633,7 @@ gL (see |vimwiki_gL|) to remove all checkboxes of the list the cursor is in. 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. diff --git a/ftplugin/vimwiki.vim b/ftplugin/vimwiki.vim index f2ad61f..e8a18e4 100644 --- a/ftplugin/vimwiki.vim +++ b/ftplugin/vimwiki.vim @@ -443,6 +443,10 @@ if !hasmapto('VimwikiToggleListItem') vmap VimwikiToggleListItem endif endif +if !hasmapto('VimwikiToggleListItemRejected') + nmap glx VimwikiToggleListItemRejected + vmap glx VimwikiToggleListItemRejected +endif nnoremap