Skip to content

Instantly share code, notes, and snippets.

@anyakichi
Created June 24, 2012 08:22
Show Gist options
  • Save anyakichi/2982443 to your computer and use it in GitHub Desktop.
Save anyakichi/2982443 to your computer and use it in GitHub Desktop.
unite-outline source for taskpaper
function! unite#sources#outline#taskpaper#outline_info()
return s:outline_info
endfunction
let s:outline_info = {
\ 'heading': '^.\+:\(\s\+@[^ \t(]\+\(([^)]*)\)\?\)*$'
\ }
function! s:outline_info.create_heading(which, heading_line, matched_line, context)
let heading = {
\ 'word' : a:heading_line[:-2],
\ 'level': len(matchstr(a:heading_line, '^\t*')) + 1,
\ 'type' : 'generic',
\}
return heading
endfunction
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment