From 87a96e7c86ef7a718246dfe6fc37b219c66dc557 Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Mon, 20 Oct 2025 22:21:17 +0530 Subject: Refactored bits out into files --- autoload/surround.kak | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) create mode 100644 autoload/surround.kak (limited to 'autoload/surround.kak') diff --git a/autoload/surround.kak b/autoload/surround.kak new file mode 100644 index 0000000..9409935 --- /dev/null +++ b/autoload/surround.kak @@ -0,0 +1,24 @@ +# declare-user-mode surround +# declare-user-mode surround-append +# declare-user-mode surround-delete +# map global user s ': enter-user-mode surround' +# map global surround a ': enter-user-mode surround-append' +# map global surround d ': enter-user-mode surround-delete' + +# define-command define-surround -params 3 %{ +# evaluate-commands %sh{ +# echo "map global surround-append %{${1}} %{i${2}a${3}}" +# echo "map global surround-delete %{${1}} %{${2}d,}" +# } +# } + +# hook global KakBegin .* %{ +# define-surround ( ( ) +# define-surround [ [ ] +# # define-surround < < > +# # define-surround '{' '{' '}' +# # define-surround '<' '<' '>' +# # define-surround '`' '`' '`' +# define-surround '"' '"' '"' +# # define-surround "'" "'" "'" +# } -- cgit v1.3.1