diff options
author | Teddy Wing | 2020-10-04 03:10:49 +0200 |
---|---|---|
committer | Teddy Wing | 2020-10-04 03:10:49 +0200 |
commit | 0c732266c09ea04b2229eeb1e2801f795b4999df (patch) | |
tree | e9e2e2eec179fc08ffa928f208749d1e9d4de1cb /autoload | |
download | vim-git-todo-0c732266c09ea04b2229eeb1e2801f795b4999df.tar.bz2 |
`GitTodo` command to run `git todo` and load matches to quickfix list
Allow a ref to be specified in an argument, falling back to
`g:git_todo_default_ref`, or the `git todo` default.
Diffstat (limited to 'autoload')
-rw-r--r-- | autoload/git_todo.vim | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/autoload/git_todo.vim b/autoload/git_todo.vim new file mode 100644 index 0000000..ca57921 --- /dev/null +++ b/autoload/git_todo.vim @@ -0,0 +1,9 @@ +function! git_todo#QuickfixTodos(ref) + let ref = a:ref + + if empty(ref) + let ref = get(g:, 'git_todo_default_ref', '') + endif + + cexpr system('git todo ' . ref) +endfunction |