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.outerwhich includesconstandvolatile. Works inside variable declaration, function's parameter declaration,usingandtypedef.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.innerselectstype.outerselectsBeta Was this translation helpful? Give feedback.
All reactions