Created
June 24, 2012 08:22
-
-
Save anyakichi/2982443 to your computer and use it in GitHub Desktop.
unite-outline source for taskpaper
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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