1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-03 01:50:05 +08:00

docs(help): add help description for SPC p t e

This commit is contained in:
wsdjeg 2022-06-12 16:51:22 +08:00
parent 35e132d8f9
commit c419e47591

View File

@ -366,7 +366,16 @@ function! SpaceVim#layers#core#config() abort
let g:vimproc#download_windows_dll = 1 let g:vimproc#download_windows_dll = 1
" call SpaceVim#mapping#space#def('nnoremap', ['p', 't'], 'call SpaceVim#plugins#projectmanager#current_root()', 'find-project-root', 1) " call SpaceVim#mapping#space#def('nnoremap', ['p', 't'], 'call SpaceVim#plugins#projectmanager#current_root()', 'find-project-root', 1)
let g:_spacevim_mappings_space.p.t = {'name' : '+Tasks'} let g:_spacevim_mappings_space.p.t = {'name' : '+Tasks'}
call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'e'], 'call SpaceVim#plugins#tasks#edit()', 'edit-project-task', 1) let lnum = expand('<slnum>') + s:lnum - 1
call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'e'],
\ 'call SpaceVim#plugins#tasks#edit()',
\ ['edit-project-task',
\ ['[SPC p t e] is to edit the task configuration file of current project,',
\ 'the default task file is `.SpaceVim.d/tasks.toml`',
\ '',
\ 'Definition: ' . s:filename . ':' . lnum]
\ ]
\ , 1)
call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'l'], 'call SpaceVim#plugins#tasks#list()', 'list-tasks', 1) call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'l'], 'call SpaceVim#plugins#tasks#list()', 'list-tasks', 1)
call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'c'], 'call SpaceVim#plugins#runner#clear_tasks()', 'clear-tasks', 1) call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'c'], 'call SpaceVim#plugins#runner#clear_tasks()', 'clear-tasks', 1)
call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'r'], call SpaceVim#mapping#space#def('nnoremap', ['p', 't', 'r'],