Added toggling todos from a visual selection by passing ranges into the Telekasten command

This commit is contained in:
Alexander Lay-Calvert
2022-09-24 13:50:52 -04:00
parent 4217ee2423
commit a0a04beaac
2 changed files with 31 additions and 21 deletions

View File

@@ -8,7 +8,7 @@ function! s:telekasten_complete(arg,line,pos)
return join(l:candidates, "\n")
endfunction
command! -nargs=? -complete=custom,s:telekasten_complete Telekasten lua require('telekasten').panel(<f-args>)
command! -nargs=? -range -complete=custom,s:telekasten_complete Telekasten lua require('telekasten').panel(<f-args>)
" overriding does not work -- so this is done by the plugin now in post_open()
" au BufNewFile,BufRead *.markdown,*.mdown,*.mkd,*.mkdn,*.mdwn,*.md setf telekasten