Skip to content

Commit

Permalink
feat: Add quicklinks for users to quickly add a bug report of feature…
Browse files Browse the repository at this point in the history
… request
  • Loading branch information
kkoomen committed Jun 10, 2019
1 parent 390450c commit 2c1ed94
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions autoload/doge.vim
Original file line number Diff line number Diff line change
Expand Up @@ -12,9 +12,18 @@ function! doge#generate() abort
endif
return 1
endfor

echo '[DoGe] No patterns did match L' . line('.') . '.'
echo '--'
echo 'Is this a bug? Use the following link to quickly sent in a bug report for kkoomen/doge:'
let l:issue_title = substitute(&filetype . ' expression does not generate comment', '\s\+', '+', 'g')
echo printf('https://github.com/kkoomen/doge/issues/new?labels=bug&template=bug_report.md&title=[BUG]+%s', l:issue_title)
else
echo '[DoGe] b:doge_patterns variable not found for filetype "' . &filetype . '".'
echo '--'
echo 'Should this filetype be supported? Use the following link to quickly sent in a feature request for kkoomen/doge:'
let l:issue_title = substitute('Add support for ' . &filetype, '\s\+', '+', 'g')
echo printf('https://github.com/kkoomen/doge/issues/new?assignees=&labels=enhancement&template=feature_request.md&title=[FEATURE]+%s', l:issue_title)
endif
endfunction

Expand Down

0 comments on commit 2c1ed94

Please sign in to comment.