-
Notifications
You must be signed in to change notification settings - Fork 56
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
argument textobjects on braces #254
Comments
Sorry @wellle I'm thoroughly perplexed by the meaning of
Hope you can explain what it represents. |
Furthermore, upon trying
All this did was render the |
@unphased: Thanks for opening this issue. I can see how this is confusing. The Please try this version: autocmd User targets#mappings#user call targets#mappings#extend({
\ 'a': {'argument': [{'o': '[{([]', 'c': '[])}]', 's': ','}]},
\ }) We used to have this better documented, but I removed that part when refactoring the settings. See https://github.com/wellle/targets.vim/tree/v0.4.6#gtargets_argopening-and-gtargets_argclosing I guess we should bring back that documentation, it even included your use case as an example. So let me know if the suggestion above works for you, but please keep this issue open as a reminder to improve the documentation. |
Ah, I wish I thought to treat them as regexes. Obvious only in hindsight. Thanks! Will try that out. |
Does #267 fix this? |
When working with javascript something like this:
I'd like a quick way to e.g. delete the entire
type: "select",
part, and if the brackets were parens, this would work fine.It looks possible by extending, I will report back if I can make it work.
The text was updated successfully, but these errors were encountered: