AutoYADM commit: 2025-06-27 22:31:28
This commit is contained in:
parent
5591115248
commit
8fad94fd1b
1 changed files with 14 additions and 0 deletions
14
.config/kak/autoload/xml.kak
Normal file
14
.config/kak/autoload/xml.kak
Normal file
|
@ -0,0 +1,14 @@
|
||||||
|
# surround
|
||||||
|
|
||||||
|
define-command -hidden -params 1 xml-surround-add-impl %~
|
||||||
|
evaluate-commands -save-regs 'a' -no-hooks %^
|
||||||
|
set-register a %arg{1}
|
||||||
|
execute-keys -draft '_i<lt><c-r>a<gt><a-;>a<lt>/<c-r>a<gt>'
|
||||||
|
^
|
||||||
|
~
|
||||||
|
define-command -hidden -params 1 xml-surround-remove-impl %~
|
||||||
|
evaluate-commands -save-regs 'a"' -no-hooks %^
|
||||||
|
set-register a %arg{1}
|
||||||
|
execute-keys -save-regs '"' -draft '<a-/><lt><c-r>a<gt><ret>d/<lt>/<c-r>a<gt>d'
|
||||||
|
^
|
||||||
|
~
|
Loading…
Add table
Add a link
Reference in a new issue