Custom text objects (or: syntax group as text object)
Hello,
I know this somewhat planned https://www.reddit.com/r/neovim/comments/2zm7s1/what_neovim_feature_will_do_you_get_the_most/cpl2t36
But I wanted to start discussions and possible design for this.
I am pretty sure this will be hugely inspired by https://github.com/kana/vim-textobj-user and projects based on it.
Design proposed by deleted user https://github.com/wellle/targets.vim/issues/14#issuecomment-68344944
Here are some useful links http://vim.wikia.com/wiki/Creating_new_text_objects http://vim.wikia.com/wiki/Indent_text_object https://github.com/inkarkat/vim-CountJump https://github.com/kana/vim-textobj-user/wiki
Example of projects that will definitely benefit from unified text objects interface https://github.com/tpope/vim-surround https://github.com/wellle/targets.vim https://github.com/bkad/CamelCaseMotion https://github.com/tweekmonster/braceless.vim
What I personally would like to see, is ability to have text-objects based on filetype and very easy interface of defining new ones.
Source: neovim/neovim