Skip to content
This repository was archived by the owner on Apr 6, 2018. It is now read-only.
This repository was archived by the owner on Apr 6, 2018. It is now read-only.

How about matching with '%' ? #141

Closed

Description

@tony612

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.

Activity

  1. bhuga commented on Mar 7, 2014

    @bhuga
    Contributor

    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.

  2. tony612 commented on Mar 9, 2014

    @tony612
    ContributorAuthor

    @bhuga So.. should we try to make it a motion or just bind it to bracker-matcher?

  3. zenhob commented on Mar 12, 2014

    @zenhob
    Contributor

    @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.

  4. tony612 commented on Mar 13, 2014

    @tony612
    ContributorAuthor

    @zenhob Yeah, I also use it in my personal config.Maybe we can do this until we find a better way.

  5. carlosdcastillo commented on May 23, 2014

    @carlosdcastillo
    Contributor

    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.

  6. tony612 commented on May 24, 2014

    @tony612
    ContributorAuthor

    @carlosdcastillo Thanks for that

  7. bhuga commented on May 28, 2014

    @bhuga
    Contributor

    Fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions