Add < surround key
ysiw<testRET will transform String To test<String> In C-style major modes that use angle bracket generics/templates (e.g. C++, rust, C#, java, swift, and typescript).
This commit is contained in:
parent
fb16afb4f2
commit
403c2e1b5d
2 changed files with 18 additions and 0 deletions
|
@ -31,3 +31,9 @@
|
|||
(defun +evil--embrace-elisp-fn ()
|
||||
"Elisp function support for embrace."
|
||||
(cons (format "(%s " (or (read-string "(") "")) ")"))
|
||||
|
||||
;;;###autoload
|
||||
(defun +evil--embrace-angle-brackets ()
|
||||
"Type/generic angle brackets."
|
||||
(cons (format "%s<" (or (read-string "") ""))
|
||||
">"))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue