kakoune

Fork of kakoune, an acceptable text editor
git clone git://git.laack.co/kakoune.git
Log | Files | Refs

rc (454B)


      1 define-command run %{
      2     evaluate-commands %sh{
      3         mkfifo fifo1 fifo2 2>/dev/null
      4         ( : >fifo1 & ) > /dev/null 2>&1 </dev/null
      5     }
      6     edit! -fifo fifo1 *fifo*
      7     add-highlighter global/myhl regex foo 0:green
      8     hook -once global BufCloseFifo .* %{
      9         evaluate-commands -client client0 %{
     10             nop %sh{sleep 2}
     11         }
     12         hook -once buffer NormalIdle .* %{
     13             echo -to-file fifo2 still alive
     14         }
     15     }
     16 }