vim: render msg table directly from cli (#238)

* vim: render msg table from cli directly

* doc: update changelog
This commit is contained in:
Clément DOUIN
2021-10-24 23:34:04 +02:00
committed by GitHub
parent e154481c5b
commit 43785b3c1e
4 changed files with 106 additions and 79 deletions
+18 -16
View File
@@ -2,23 +2,25 @@ if exists("b:current_syntax")
finish
endif
syntax match hym_sep /|/
syntax match hym_uid /^|.\{-}|/ contains=hym_sep
syntax match hym_flags /^|.\{-}|.\{-}|/ contains=hym_uid,hym_sep
syntax match hym_subject /^|.\{-}|.\{-}|.\{-}|/ contains=hym_uid,hym_flags,hym_sep
syntax match hym_sender /^|.\{-}|.\{-}|.\{-}|.\{-}|/ contains=hym_uid,hym_flags,hym_subject,hym_sep
syntax match hym_date /^|.\{-}|.\{-}|.\{-}|.\{-}|.\{-}|/ contains=hym_uid,hym_flags,hym_subject,hym_sender,hym_sep
syntax match hym_head /.*\%1l/ contains=hym_sep
syntax match hym_unseen /^|.\{-}|✷.*$/ contains=hym_sep
syntax match HimalayaSeparator //
syntax match HimalayaHead /.*\%1l/ contains=HimalayaSeparator
syntax match HimalayaId /^.\{-}│/ contains=HimalayaSeparator
syntax match HimalayaFlags /^.\{-}.\{-}/ contains=HimalayaId,HimalayaSeparator
syntax match HimalayaSubject /^.\{-}.\{-}.\{-}/ contains=HimalayaId,HimalayaFlags,HimalayaSeparator
syntax match HimalayaSender /^.\{-}.\{-}.\{-}.\{-}│/ contains=HimalayaId,HimalayaFlags,HimalayaSubject,HimalayaSeparator
syntax match HimalayaDate /^.\{-}│.\{-}│.\{-}│.\{-}│.\{-}/ contains=HimalayaId,HimalayaFlags,HimalayaSubject,HimalayaSender,HimalayaSeparator
highlight hym_head term=bold,underline cterm=bold,underline gui=bold,underline
highlight hym_unseen term=bold cterm=bold gui=bold
" FIXME: Find a way to set the line bold AND to keep the style of each columns.
" syntax match HimalayaUnseen /^.\{-}│✷.*$/ contains=HimalayaSeparator
" highlight HimalayaUnseen term=bold cterm=bold gui=bold
highlight default link hym_sep VertSplit
highlight default link hym_uid Identifier
highlight default link hym_flags Special
highlight default link hym_subject String
highlight default link hym_sender Structure
highlight default link hym_date Constant
highlight HimalayaHead term=bold,underline cterm=bold,underline gui=bold,underline
highlight default link HimalayaSeparator VertSplit
highlight default link HimalayaId Identifier
highlight default link HimalayaFlags Special
highlight default link HimalayaSubject String
highlight default link HimalayaSender Structure
highlight default link HimalayaDate Constant
let b:current_syntax = "himalaya-msg-list"