diff options
| author | s-ol <s-ol@users.noreply.github.com> | 2020-04-21 18:35:27 +0000 |
|---|---|---|
| committer | s-ol <s-ol@users.noreply.github.com> | 2020-04-21 18:35:27 +0000 |
| commit | 76c6fb88c1b967ee334ea8c4a449fb0a486d49c8 (patch) | |
| tree | 0e867bb43f3cefa66471aa28a62eb52e18543f18 | |
| parent | add README (diff) | |
| download | alive.kak-76c6fb88c1b967ee334ea8c4a449fb0a486d49c8.tar.gz alive.kak-76c6fb88c1b967ee334ea8c4a449fb0a486d49c8.zip | |
blink code when evaluating file
| -rw-r--r-- | alive.kak | 7 |
1 files changed, 5 insertions, 2 deletions
@@ -14,9 +14,11 @@ add-highlighter shared/alive/code/tag regex \[[0-9]+\] 0:rgb:696969 # Commands -# attempt to tame the autoreload, not 100% successful define-command -hidden alive-reload-file %[ - nop %sh{ sleep 0.01 } + add-highlighter window/alive-blink fill default,rgb:ffffff + execute-keys <c-l> + nop %sh{ sleep 0.1 } + remove-highlighter window/alive-blink edit! ] @@ -35,6 +37,7 @@ hook global WinSetOption filetype=alive %[ set-option buffer comment_block_end ')' set-option buffer tabstop 2 set-option buffer indentwidth 2 + set-option buffer autoreload yes hook -group alive-hooks window BufWritePost .* alive-reload-file |
