From: Andre Ramnitz Date: Tue, 26 Nov 2024 17:15:06 +0000 (+0100) Subject: kak: add kakoune-surround plugin X-Git-Url: https://git.ramnitz.eu/?a=commitdiff_plain;h=7d030d4f694a1b41e699210650bd5067059ba8d5;p=dotfiles.git kak: add kakoune-surround plugin --- diff --git a/dot-config/kak/kakrc b/dot-config/kak/kakrc index c6f6a981..759dc100 100644 --- a/dot-config/kak/kakrc +++ b/dot-config/kak/kakrc @@ -62,6 +62,7 @@ bundle kakoune-sudo-write https://github.com/occivink/kakoune-sudo-write bundle kakoune-find https://github.com/occivink/kakoune-find bundle kakoune-expand https://github.com/occivink/kakoune-expand bundle foot.kak https://github.com/kkga/foot.kak +bundle kakoune-surround https://github.com/h-youhei/kakoune-surround bundle kak-harpoon https://github.com/raiguard/kak-harpoon %{ hook global WinCreate .* harpoon-add-bindings } @@ -281,6 +282,7 @@ map global normal -docstring 'Next buffer ' ': map global normal -docstring 'Previous buffer' ': buffer-previous' map global normal -docstring 'add 1 int' '^' ': inc %val{count} +' map global normal -docstring 'substract 1 int' ': inc %val{count} -' +map global normal -docstring 'surround' 0 ': surround' # default user mode # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── @@ -320,9 +322,13 @@ map global buffermode -docstring 'Wrap disable' W ': r # selection user mode # ─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────── declare-user-mode selmode -map global selmode -docstring 'clean tabs and trailing whitespaces' c ': clean-selections' +map global selmode -docstring 'clean tabs and trailing whitespaces' C ': clean-selections' map global selmode -docstring 'sort words Horizontally in selection' h '| xargs -n1 | sort -u | xargs ' map global selmode -docstring 'sort words Vertically in selection ' v '| sort -n ' +map global selmode -docstring 'surround' s ':surround' +map global selmode -docstring 'change surround' c ':change-surround' +map global selmode -docstring 'delete surround' d ':delete-surround' +map global selmode -docstring 'select tag' t ':select-surrounding-tag' # terminal config (via foot.kak) # ───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────