aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authors-ol <s-ol@users.noreply.github.com>2020-04-21 18:35:27 +0000
committers-ol <s-ol@users.noreply.github.com>2020-04-21 18:35:27 +0000
commit76c6fb88c1b967ee334ea8c4a449fb0a486d49c8 (patch)
tree0e867bb43f3cefa66471aa28a62eb52e18543f18
parentadd README (diff)
downloadalive.kak-76c6fb88c1b967ee334ea8c4a449fb0a486d49c8.tar.gz
alive.kak-76c6fb88c1b967ee334ea8c4a449fb0a486d49c8.zip
blink code when evaluating file
-rw-r--r--alive.kak7
1 files changed, 5 insertions, 2 deletions
diff --git a/alive.kak b/alive.kak
index e811e88..dab1dab 100644
--- a/alive.kak
+++ b/alive.kak
@@ -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