Allow VimwikiToggleListItem mapping to be replaced (#1047)
* Allow VimwikiToggleListItem mapping to be replaced Currently VimwikiToggleListItem mapping cannot be removed but only new mapping to it can be added. This commit will allow to add custom binding to this function and release default mapping of <C-space> and <C-@>, which was how it was before https://github.com/vimwiki/vimwiki/pull/686 * Update changelog + contributor list * endi -> endif Co-authored-by: Tinmarino <tinmarino@gmail.com>
This commit is contained in:
@@ -3843,6 +3843,7 @@ Contributors and their Github usernames in roughly chronological order:
|
||||
- David Sierra DiazGranados (@davidsierradz)
|
||||
- Daniel Moura (@dmouraneto)
|
||||
- Tomáš Janoušek (@liskin)
|
||||
- Rajesh Sharem (@deepredsky)
|
||||
|
||||
==============================================================================
|
||||
16. Changelog *vimwiki-changelog*
|
||||
@@ -3888,6 +3889,7 @@ New:~
|
||||
* PR #934: RSS feed generation for diary with :VimwikiRss.
|
||||
|
||||
Changed:~
|
||||
* PR #1047: Allow to replace default mapping of VimwikiToggleListItem
|
||||
* VimwikiCheckLinks work on current wiki or on range
|
||||
|
||||
Removed:~
|
||||
|
||||
@@ -505,10 +505,10 @@ nnoremap <silent><buffer> <Plug>VimwikiListO
|
||||
if str2nr(vimwiki#vars#get_global('key_mappings').lists)
|
||||
call vimwiki#u#map_key('n', 'gnt', '<Plug>VimwikiNextTask')
|
||||
call vimwiki#u#map_key('n', '<C-Space>', '<Plug>VimwikiToggleListItem')
|
||||
call vimwiki#u#map_key('v', '<C-Space>', '<Plug>VimwikiToggleListItem', 1)
|
||||
call vimwiki#u#map_key('v', '<C-Space>', '<Plug>VimwikiToggleListItem')
|
||||
if has('unix')
|
||||
call vimwiki#u#map_key('n', '<C-@>', '<Plug>VimwikiToggleListItem', 1)
|
||||
call vimwiki#u#map_key('v', '<C-@>', '<Plug>VimwikiToggleListItem', 1)
|
||||
call vimwiki#u#map_key('n', '<C-@>', '<Plug>VimwikiToggleListItem')
|
||||
call vimwiki#u#map_key('v', '<C-@>', '<Plug>VimwikiToggleListItem')
|
||||
endif
|
||||
call vimwiki#u#map_key('n', 'glx', '<Plug>VimwikiToggleRejectedListItem')
|
||||
call vimwiki#u#map_key('v', 'glx', '<Plug>VimwikiToggleRejectedListItem', 1)
|
||||
|
||||
Reference in New Issue
Block a user