From 13a2f89ecbda892aeaf5533a2779a96fec2968e2 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Thu, 2 Jul 2026 10:49:39 +0530 Subject: Add selection mode + git link base branch --- autoload/+init.kak | 6 ++++++ autoload/surround.kak | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) (limited to 'autoload') diff --git a/autoload/+init.kak b/autoload/+init.kak index 0fc5183..0bf78d9 100644 --- a/autoload/+init.kak +++ b/autoload/+init.kak @@ -40,3 +40,9 @@ hook global RegisterModified '/' %{ # Highlight search add-highlighter -override global/search regex "%reg{/}" 0:search } + +declare-user-mode selection +map global user z ': enter-user-mode selection' -docstring 'Selection mode' +# Turn all selections as "next" pattern. Press n to go to next +map global selection f ': exec "%val{selection_count}n"' -docstring 'Focus selection' + diff --git a/autoload/surround.kak b/autoload/surround.kak index 5c691ef..ae06858 100644 --- a/autoload/surround.kak +++ b/autoload/surround.kak @@ -2,7 +2,7 @@ declare-user-mode surround declare-user-mode surround-append declare-user-mode surround-delete declare-user-mode surround-select -map global user k ': enter-user-mode surround' +map global user k ': enter-user-mode surround' -docstring 'Surround mode' map global surround a ': enter-user-mode surround-append' map global surround s ': enter-user-mode surround-select' -- cgit v1.3.1