z_mirror/pesticide

git clone https://git.raiguard.me/z_mirror/pesticide

Caleb HeuerAdd highlighting for pesticide log74b87ec

trunk
512 B16 linesraw
1define-command pesticide-log %{
2    edit ~/.local/state/pesticide.log -readonly -scroll
3}
4
5hook global WinCreate .*pesticide\.log %{
6    add-highlighter window/pest-datetime regex '\d*/\d*/\d* \d*:\d*:\d*' 0:comment
7    add-highlighter window/pest-adapter regex ' (\[\d*\]) ' 1:builtin
8    add-highlighter window/pest-adapter-send regex ' (<-) ' 1:function
9    add-highlighter window/pest-adapter-recv regex ' (->) ' 1:string
10}
11
12hook global BufReload .*pesticide\.log %{
13    execute-keys 'gjgh'
14}
15
16# vim: ft=kak