[mini.ai] Selecting to next closing bracket/closing quote #1652
-
Contributing guidelines
Module(s)mini.ai QuestionHi! Is there a way to define a custom textobject that will go from the current cursor position to the next closing quote? For example, if I have the string "hellothere" and
Is there something I could set a textobject
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 2 replies
-
I'm not entirely sure what you mean by adding |
Beta Was this translation helpful? Give feedback.
-
For this particular case there are Using Other than that, yes it is possible in theory to define this type of textobject, but I wouldn't recommend doing that given mentioned alternatives. |
Beta Was this translation helpful? Give feedback.
For this particular case there are
goto_left
andgoto_right
mappings. They can be used likedg]q
to delete until right side ofq
textobject (using"
here is also possible). This works with any textobject:f
,)
, etc., which it makes pretty handy.Using
t
/T
operator is also a good advice.Other than that, yes it is possible in theory to define this type of textobject, but I wouldn't recommend doi…