Make all statuses bold

This commit is contained in:
Anthony Rose 2023-02-20 10:54:02 +00:00
parent 3879b80ce5
commit 4e6e744f70

14
vimrc
View file

@ -231,16 +231,16 @@ function! ACPNModeTodo()
" All are highlighted except DONE and blank. " All are highlighted except DONE and blank.
" Must be at the start of the line, optionally preceeded with an " Must be at the start of the line, optionally preceeded with an
" 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
elseif getline(line(".")) =~# "[#]WORK:[#] " elseif getline(line(".")) =~# "[#][*]WORK:[*][#] "
s/^\(\**\s*\)#WORK:# /\1#WAIT:# /e s/^\(\**\s*\)#\*WORK:\*# /\1#*WAIT:*# /e
elseif getline(line(".")) =~# "[#]WAIT:[#] " elseif getline(line(".")) =~# "[#][*]WAIT:[*][#] "
s/^\(\**\s*\)#WAIT:# /\1*DONE:* /e s/^\(\**\s*\)#\*WAIT:\*# /\1*DONE:* /e
elseif getline(line(".")) =~# "[*]DONE:[*] " elseif getline(line(".")) =~# "[*]DONE:[*] "
s/^\(\**\s*\)\*DONE:\* /\1/e s/^\(\**\s*\)\*DONE:\* /\1/e
else else
s/^\(\**\s*\)/\1#TODO:# /e s/^\(\**\s*\)/\1#*TODO:*# /e
endif endif
endfunction endfunction