From a37ae0f8bf3159d68ceab854425ac87c95964183 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=81ukasz=20Pankowski?= Date: Fri, 15 May 2026 22:16:45 +0200 Subject: [PATCH] kakoune: replace surround with match.kak --- kakoune/.config/kak/kakrc | 22 ++++++++++++++-------- 1 file changed, 14 insertions(+), 8 deletions(-) diff --git a/kakoune/.config/kak/kakrc b/kakoune/.config/kak/kakrc index dc58dca..f731457 100644 --- a/kakoune/.config/kak/kakrc +++ b/kakoune/.config/kak/kakrc @@ -131,15 +131,21 @@ hook global BufCreate [^*].* %{ echo "$kak_buffile" | awk '!seen[$0]++' - "$mru" | sponge "$mru" }} -# SURROUND +# MATCH -bundle kakoune-surround "https://github.com/h-youhei/kakoune-surround" %{ - declare-user-mode surround - map global surround s ': surround' -docstring 'surround' - map global surround c ': change-surround' -docstring 'change' - map global surround d ': delete-surround' -docstring 'delete' - map global surround t ': select-surrounding-tag' -docstring 'select tag' - map global -docstring 'Surround' user 'S' ': enter-user-mode surround' +bundle match 'https://github.com/kmafeni04/match.kak' %{ + declare-user-mode match + map global user m ': enter-user-mode match' + map global match m m -docstring 'Match next matching pair' + map global match i ': match-inside' -docstring 'Match inside object' + map global match a ': match-around' -docstring 'Match around object' + map global match n ': match-next' -docstring 'Match next object' + map global match p ': match-prev' -docstring 'Match previous object' + map global match s ': match-surround-add' -docstring 'Surround selection with character' + map global match d ': match-surround-delete' -docstring "Delete selection's surrounding character" + map global match r ': match-surround-replace' -docstring "Replace selection's surrounding character" + map global match u ': match-surround-undo' -docstring "Undo" + map global match U ': match-surround-redo' -docstring "Redo" } # HARPOON