I've created textobjects for types #597
Unanswered
daniilrozanov
asked this question in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
This queries currently only for c++ (and c). Queries create new
@type.inner
, which is type without any qualifiers, and@type.outer
which includesconst
andvolatile
. Works inside variable declaration, function's parameter declaration,using
andtypedef
.I found it useful, but due to the fact that I don’t know much about treesitter, I want to ask how good this idea is, whether it can be extended to other languages and maybe it’s worth creating a PR (or issue).
EDIT.
Maybe its worth to add some explanation.
type.inner
selectstype.outer
selectsBeta Was this translation helpful? Give feedback.
All reactions