diff options
| author | Akshay Nair <phenax5@gmail.com> | 2025-10-20 22:21:17 +0530 |
|---|---|---|
| committer | Akshay Nair <phenax5@gmail.com> | 2025-10-21 13:39:46 +0530 |
| commit | 87a96e7c86ef7a718246dfe6fc37b219c66dc557 (patch) | |
| tree | 3715263544ee5b2b10019988d17c100aa5888d3d /autoload/surround.kak | |
| parent | 717ed5d90813ac7610b8d9cf1e110b6f31e87efc (diff) | |
| download | kakoune-config-87a96e7c86ef7a718246dfe6fc37b219c66dc557.tar.gz kakoune-config-87a96e7c86ef7a718246dfe6fc37b219c66dc557.zip | |
Refactored bits out into files
Diffstat (limited to 'autoload/surround.kak')
| -rw-r--r-- | autoload/surround.kak | 24 |
1 files changed, 24 insertions, 0 deletions
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<ret>' +# map global surround a ': enter-user-mode surround-append<ret>' +# map global surround d ': enter-user-mode surround-delete<ret>' + +# define-command define-surround -params 3 %{ +# evaluate-commands %sh{ +# echo "map global surround-append %{${1}} %{i${2}<esc>a${3}}" +# echo "map global surround-delete %{${1}} %{<a-a>${2}<a-S>d,}" +# } +# } + +# hook global KakBegin .* %{ +# define-surround ( ( ) +# define-surround [ [ ] +# # define-surround < < > +# # define-surround '{' '{' '}' +# # define-surround '<' '<' '>' +# # define-surround '`' '`' '`' +# define-surround '"' '"' '"' +# # define-surround "'" "'" "'" +# } |
