From 8e6fa2062700d8c4816e8ecd95940805bedc245b Mon Sep 17 00:00:00 2001 From: Akshay Nair Date: Sun, 18 Jan 2026 16:34:31 +0530 Subject: Add plugins directory linking --- autoload/surround.kak | 36 +++++++++++++++++++----------------- 1 file changed, 19 insertions(+), 17 deletions(-) (limited to 'autoload/surround.kak') 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' -# map global surround a ': enter-user-mode surround-append' -# map global surround d ': enter-user-mode surround-delete' +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' +map global surround a ': enter-user-mode surround-append' +map global surround s ': enter-user-mode surround-select' -# define-command define-surround -params 4 -docstring ': ' %{ -# map global surround-append %arg{1} %sh{ echo "i${3}a${4}" } -# map global surround-delete %arg{1} %sh{ echo "${2}d," } -# } +define-command define-surround -params 4 -docstring ': ' %{ + map global surround-append %arg{1} %sh{ echo "i${3}a${4}" } + map global surround-delete %arg{1} %sh{ echo "${2}d," } + map global surround-select %arg{1} %sh{ echo "${2}" } +} -# define-surround '(' '(' '(' ')' -# define-surround '[' '[' '[' ']' -# define-surround '{' '{' '{' '}' -# define-surround '`' '`' '`' '`' -# define-surround '"' '"' '"' '"' -# define-surround "'" "'" "'" "'" -# define-surround t "cdiv,/div" "div" "/div" +define-surround '(' '(' '(' ')' +define-surround '[' '[' '[' ']' +define-surround '{' '{' '{' '}' +define-surround '`' '`' '`' '`' +define-surround '"' '"' '"' '"' +define-surround "'" "'" "'" "'" +define-surround t "cdiv,/div" "div" "/div" # declare-option range-specs ghost_completion; -- cgit v1.3.1