mirror of
https://github.com/tbabej/taskwiki.git
synced 2025-08-18 12:23:06 +02:00
Add option to disable <CR> remapping
This commit is contained in:
parent
ac9d69913d
commit
e7f4335a77
2 changed files with 7 additions and 1 deletions
|
@ -764,6 +764,10 @@ constructs.
|
|||
*taskwiki_disable*
|
||||
Setting any non-empty value for this variable will disable taskwiki.
|
||||
|
||||
*taskwiki_disable_cr_mapping*
|
||||
Setting any non-empty value for this variable will prevent taskwiki
|
||||
from remapping <CR>.
|
||||
|
||||
*taskwiki_use_python2*
|
||||
Setting this variable to non-empty value (such as "yes") will force
|
||||
taskwiki to use python2.
|
||||
|
|
|
@ -102,7 +102,9 @@ if !exists('g:taskwiki_suppress_mappings')
|
|||
nmap <Plug>NoVimwikiFollowLink <Plug>VimwikiFollowLink
|
||||
endif
|
||||
|
||||
execute "nnoremap <silent><buffer> <CR> :" . g:taskwiki_py . "Mappings.task_info_or_vimwiki_follow_link()<CR>"
|
||||
if !exists("g:taskwiki_disable_cr_mapping")
|
||||
execute "nnoremap <silent><buffer> <CR> :" . g:taskwiki_py . "Mappings.task_info_or_vimwiki_follow_link()<CR>"
|
||||
endif
|
||||
|
||||
" Leader-related mappings. Mostly <Leader>t + <first letter of the action>
|
||||
if exists('g:taskwiki_maplocalleader')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue