aboutsummaryrefslogtreecommitdiff
path: root/autoload/surround.kak
diff options
context:
space:
mode:
authorAkshay Nair <phenax5@gmail.com>2026-01-18 16:34:31 +0530
committerAkshay Nair <phenax5@gmail.com>2026-01-18 16:34:31 +0530
commit8e6fa2062700d8c4816e8ecd95940805bedc245b (patch)
treef6c7ba5210e20ad8068285e4a7ba86d4c0620923 /autoload/surround.kak
parent64c5e3b2e5dd1310e79062170d96113ecc06a092 (diff)
downloadkakoune-config-8e6fa2062700d8c4816e8ecd95940805bedc245b.tar.gz
kakoune-config-8e6fa2062700d8c4816e8ecd95940805bedc245b.zip
Add plugins directory linking
Diffstat (limited to 'autoload/surround.kak')
-rw-r--r--autoload/surround.kak36
1 files changed, 19 insertions, 17 deletions
diff --git a/autoload/surround.kak b/autoload/surround.kak
index 3ce248d..5c691ef 100644
--- a/autoload/surround.kak
+++ b/autoload/surround.kak
@@ -1,22 +1,24 @@
-# declare-user-mode surround
-# declare-user-mode surround-append
-# declare-user-mode surround-delete
-# map global user k ': 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>'
+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<ret>'
+map global surround a ': enter-user-mode surround-append<ret>'
+map global surround s ': enter-user-mode surround-select<ret>'
-# define-command define-surround -params 4 -docstring ': <trigger> <surrounddesc> <start> <end>' %{
-# map global surround-append %arg{1} %sh{ echo "i${3}<esc>a${4}" }
-# map global surround-delete %arg{1} %sh{ echo "<a-a>${2}<a-S>d," }
-# }
+define-command define-surround -params 4 -docstring ': <trigger> <surrounddesc> <start> <end>' %{
+ map global surround-append %arg{1} %sh{ echo "i${3}<esc>a${4}" }
+ map global surround-delete %arg{1} %sh{ echo "<a-a>${2}<a-S>d," }
+ map global surround-select %arg{1} %sh{ echo "<a-a>${2}<a-S>" }
+}
-# define-surround '(' '(' '(' ')'
-# define-surround '[' '[' '[' ']'
-# define-surround '{' '{' '{' '}'
-# define-surround '`' '`' '`' '`'
-# define-surround '"' '"' '"' '"'
-# define-surround "'" "'" "'" "'"
-# define-surround t "c<lt>div,<lt>/div<gt><ret>" "<lt>div<gt>" "<lt>/div<gt>"
+define-surround '(' '(' '(' ')'
+define-surround '[' '[' '[' ']'
+define-surround '{' '{' '{' '}'
+define-surround '`' '`' '`' '`'
+define-surround '"' '"' '"' '"'
+define-surround "'" "'" "'" "'"
+define-surround t "c<lt>div,<lt>/div<gt><ret>" "<lt>div<gt>" "<lt>/div<gt>"
# declare-option range-specs ghost_completion;