1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-12 02:23:39 +08:00
SpaceVim/autoload/SpaceVim/issue.vim
Wang Shidong b03ca97e13 develop verson (#502)
* Remove black line

* Test menu

* Test menu

* remove teble title

* Update guide doc

* Add paging help info

* Add pic for unite mapping

* Add help mappings doc

* Add SPC h I: report issue of SpaceVim

* Add SPC h SPC for unite SpaceVim help

* Add doc for get root prefix

* Fix error of guide

* Fix SPC h k mappings

* Add denite group to mapping root

* Add SPC h m mappings
2017-05-07 23:33:03 +08:00

34 lines
1.2 KiB
VimL

function! SpaceVim#issue#report() abort
call s:open()
endfunction
function! s:open() abort
exe 'tabnew ' . tempname() . '/issue_report.md'
call setline(1, s:template())
w
endfunction
function! s:template() abort
let info = [
\ '<!-- please remove the issue template when request for a feature -->',
\ '## Expected behavior, english is recommend',
\ '',
\ '## Environment Information',
\ '',
\ '- OS:' . SpaceVim#api#import('system').name(),
\ '- vim version:' . (has('nvim') ? '' : v:version),
\ '- neovim version:' . (has('nvim') ? v:version : ''),
\ '',
\ '## The reproduce ways from Vim starting (Required!)',
\ '',
\ '## Output of the `:SPDebugInfo!`',
\ '']
\ + split(execute(':SPDebugInfo'), "\n") +
\ [
\ '## Screenshots',
\ '',
\ 'If you have any screenshots for this issue please upload here. BTW you can use https://asciinema.org/ for recording video in terminal.'
\ ]
return info
endfunction