You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2018. It is now read-only.
Repository navigation
This repository was archived by the owner on Apr 6, 2018. It is now read-only.
I know we can config that in keymap.cson like this '%': 'bracket-matcher:go-to-matching-bracket'
But how about adding the function to vim-mode's default keymaps. You know, we use that in vim. But I don't know if it matters that the keymap depends on the bracket-matcher package.
In the long term, % should be a native motion. I already miss d% and y%, and I don't think it's on bracket matcher's roadmap to match quotes, ruby def...end blocks, and that sort of thing. But I'd be 👍 on this in the meantime; it's a core module.
@tony612 It looks like the motion of the default matching plugin isn't quite the same as % anyway, which makes me more inclined to leave this in personal config. However in general, I think it's okay to add vim-mode default bindings that utilize the default Atom packages, provided the behavior matches Vim's.
Activity
bhuga commentedon Mar 7, 2014
In the long term,
%should be a native motion. I already missd%andy%, and I don't think it's on bracket matcher's roadmap to match quotes, rubydef...endblocks, and that sort of thing. But I'd be 👍 on this in the meantime; it's a core module.tony612 commentedon Mar 9, 2014
@bhuga So.. should we try to make it a motion or just bind it to bracker-matcher?
zenhob commentedon Mar 12, 2014
@tony612 It looks like the motion of the default matching plugin isn't quite the same as
%anyway, which makes me more inclined to leave this in personal config. However in general, I think it's okay to add vim-mode default bindings that utilize the default Atom packages, provided the behavior matches Vim's.tony612 commentedon Mar 13, 2014
@zenhob Yeah, I also use it in my personal config.Maybe we can do this until we find a better way.
carlosdcastillo commentedon May 23, 2014
PR #254 implements the % bracket matching motion in a way that is functionally identical to vim's. With it you can do y% and d% if you miss that.
tony612 commentedon May 24, 2014
@carlosdcastillo Thanks for that
bhuga commentedon May 28, 2014
Fixed.