Show TODO options in status line
This commit is contained in:
parent
5d01c7fab8
commit
6ae4e5d36c
1 changed files with 10 additions and 0 deletions
10
vimrc
10
vimrc
|
@ -182,14 +182,19 @@ if has('eval')
|
||||||
" whitespace. This makes it work for actodo lists.
|
" whitespace. This makes it work for actodo lists.
|
||||||
if getline(line(".")) =~# "TODO: "
|
if getline(line(".")) =~# "TODO: "
|
||||||
s/^\(\s*\)TODO: /\1WORK: /e
|
s/^\(\s*\)TODO: /\1WORK: /e
|
||||||
|
echo " Blank -> TODO -> [WORK] -> WAIT -> DONE "
|
||||||
elseif getline(line(".")) =~# "WORK: "
|
elseif getline(line(".")) =~# "WORK: "
|
||||||
s/^\(\s*\)WORK: /\1WAIT: /e
|
s/^\(\s*\)WORK: /\1WAIT: /e
|
||||||
|
echo " Blank -> TODO -> WORK -> [WAIT] -> DONE "
|
||||||
elseif getline(line(".")) =~# "WAIT: "
|
elseif getline(line(".")) =~# "WAIT: "
|
||||||
s/^\(\s*\)WAIT: /\1DONE: /e
|
s/^\(\s*\)WAIT: /\1DONE: /e
|
||||||
|
echo " Blank -> TODO -> WORK -> WAIT -> [DONE]"
|
||||||
elseif getline(line(".")) =~# "DONE: "
|
elseif getline(line(".")) =~# "DONE: "
|
||||||
s/^\(\s*\)DONE: /\1/e
|
s/^\(\s*\)DONE: /\1/e
|
||||||
|
echo "[Blank] -> TODO -> WORK -> WAIT -> DONE "
|
||||||
else
|
else
|
||||||
s/^\(\s*\)/\1TODO: /e
|
s/^\(\s*\)/\1TODO: /e
|
||||||
|
echo " Blank -> [TODO] -> WORK -> WAIT -> DONE "
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
@ -200,14 +205,19 @@ if has('eval')
|
||||||
" asterisk and a space. This makes it work for Asciidoc lists.
|
" asterisk and a space. This makes it work for Asciidoc lists.
|
||||||
if getline(line(".")) =~# "[#][*]TODO:[*][#] "
|
if getline(line(".")) =~# "[#][*]TODO:[*][#] "
|
||||||
s/^\(\**\s*\)#\*TODO:\*# /\1#*WORK:*# /e
|
s/^\(\**\s*\)#\*TODO:\*# /\1#*WORK:*# /e
|
||||||
|
echo " Blank -> TODO -> [WORK] -> WAIT -> DONE "
|
||||||
elseif getline(line(".")) =~# "[#][*]WORK:[*][#] "
|
elseif getline(line(".")) =~# "[#][*]WORK:[*][#] "
|
||||||
s/^\(\**\s*\)#\*WORK:\*# /\1#*WAIT:*# /e
|
s/^\(\**\s*\)#\*WORK:\*# /\1#*WAIT:*# /e
|
||||||
|
echo " Blank -> TODO -> WORK -> [WAIT] -> DONE "
|
||||||
elseif getline(line(".")) =~# "[#][*]WAIT:[*][#] "
|
elseif getline(line(".")) =~# "[#][*]WAIT:[*][#] "
|
||||||
s/^\(\**\s*\)#\*WAIT:\*# /\1*DONE:* /e
|
s/^\(\**\s*\)#\*WAIT:\*# /\1*DONE:* /e
|
||||||
|
echo " Blank -> TODO -> WORK -> WAIT -> [DONE]"
|
||||||
elseif getline(line(".")) =~# "[*]DONE:[*] "
|
elseif getline(line(".")) =~# "[*]DONE:[*] "
|
||||||
s/^\(\**\s*\)\*DONE:\* /\1/e
|
s/^\(\**\s*\)\*DONE:\* /\1/e
|
||||||
|
echo "[Blank] -> TODO -> WORK -> WAIT -> DONE "
|
||||||
else
|
else
|
||||||
s/^\(\**\s*\)/\1#*TODO:*# /e
|
s/^\(\**\s*\)/\1#*TODO:*# /e
|
||||||
|
echo " Blank -> [TODO] -> WORK -> WAIT -> DONE "
|
||||||
endif
|
endif
|
||||||
endfunction
|
endfunction
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue