mirror of
https://github.com/doomemacs/doomemacs
synced 2025-08-29 14:33:34 -05:00
Add q text-object for all quotes
This commit is contained in:
@@ -42,3 +42,23 @@ This excludes the protocol and querystring."
|
||||
(evil-range
|
||||
beg (- end (if (evil-visual-state-p) 1 0))
|
||||
type)))
|
||||
|
||||
;;;###autoload (autoload '+evil:inner-any-quote "editor/evil/autoload/textobjects" nil nil)
|
||||
(evil-define-text-object +evil:inner-any-quote (count &optional beg end type)
|
||||
"Select the closest inner quote."
|
||||
(let ((evil-textobj-anyblock-blocks
|
||||
'(("'" . "'")
|
||||
("\"" . "\"")
|
||||
("`" . "`")
|
||||
("“" . "”"))))
|
||||
(evil-textobj-anyblock-inner-block count beg end type)))
|
||||
|
||||
;;;###autoload (autoload '+evil:outer-any-quote "editor/evil/autoload/textobjects" nil nil)
|
||||
(evil-define-text-object +evil:outer-any-quote (count &optional beg end type)
|
||||
"Select the closest outer quote."
|
||||
(let ((evil-textobj-anyblock-blocks
|
||||
'(("'" . "'")
|
||||
("\"" . "\"")
|
||||
("`" . "`")
|
||||
("“" . "”"))))
|
||||
(evil-textobj-anyblock-a-block count beg end type)))
|
||||
|
Reference in New Issue
Block a user