From 043f497d7475860f49815c9de35c0c76aa45a135 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 12 Oct 2025 21:39:49 +0530 Subject: Persistant dir-based marks --- autoload/+init.kak | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'autoload/+init.kak') diff --git a/autoload/+init.kak b/autoload/+init.kak index c3987f9..5e99424 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -31,6 +31,14 @@ add-highlighter global/ show-matching -previous # add-highlighter global/search dynregex '%reg{/}' 0:search hook global RegisterModified '/' %{ add-highlighter -override global/search regex "%reg{/}" 0:search } map global user '' ':set-register slash ""' +map global user '/' '/(?i)' + +# TODO: Reset count on modechange? +declare-option -hidden int user_mode_count 0 +define-command enter-user-mode-with-count -params 1 %{ + set-option window user_mode_count %val{count} + enter-user-mode %arg{1} +} # Mode cursors set-face global InsertCursor default,red+B -- cgit v1.3.1