{"action":"created","issue":{"url":"https://api.github.com/repos/chrisbra/matchit/issues/2","repository_url":"https://api.github.com/repos/chrisbra/matchit","labels_url":"https://api.github.com/repos/chrisbra/matchit/issues/2/labels{/name}","comments_url":"https://api.github.com/repos/chrisbra/matchit/issues/2/comments","events_url":"https://api.github.com/repos/chrisbra/matchit/issues/2/events","html_url":"https://github.com/chrisbra/matchit/issues/2","id":258259641,"node_id":"MDU6SXNzdWUyNTgyNTk2NDE=","number":2,"title":"Making `v_a%` repeatable","user":{"login":"lacygoill","id":8505073,"node_id":"MDQ6VXNlcjg1MDUwNzM=","avatar_url":"https://avatars2.githubusercontent.com/u/8505073?v=4","gravatar_id":"","url":"https://api.github.com/users/lacygoill","html_url":"https://github.com/lacygoill","followers_url":"https://api.github.com/users/lacygoill/followers","following_url":"https://api.github.com/users/lacygoill/following{/other_user}","gists_url":"https://api.github.com/users/lacygoill/gists{/gist_id}","starred_url":"https://api.github.com/users/lacygoill/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lacygoill/subscriptions","organizations_url":"https://api.github.com/users/lacygoill/orgs","repos_url":"https://api.github.com/users/lacygoill/repos","events_url":"https://api.github.com/users/lacygoill/events{/privacy}","received_events_url":"https://api.github.com/users/lacygoill/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":0,"created_at":"2017-09-16T21:23:57Z","updated_at":"2018-09-08T12:32:37Z","closed_at":null,"author_association":"NONE","body":"Hello,\r\n\r\nas discussed on this question on [stackexchange](https://vi.stackexchange.com/questions/13155/what-do-matchit-vims-a-do/13593?noredirect=1#comment23295_13593), a user could like the ability to select increasingly large regions of text by pressing the visual mapping `v_a%` several times consecutively.\r\n\r\nCurrently, the mapping is defined on [line 69](https://github.com/chrisbra/matchit/blob/90f0ee7d0f3f997745c87ad2a49bdde3e3cb47d1/plugin/matchit.vim#L69):\r\n\r\n    vmap a% <Esc>[%v]%\r\n\r\nIf `o` is added in front of the `{rhs}` of the mapping (to move the cursor on the opposite corner of the selection):\r\n\r\n    vmap a% o<Esc>[%v]%\r\n\r\nAnd if the [issue](https://github.com/chrisbra/matchit/issues/1) involving `]%` is fixed, `v_a%` could probably be used repeatedly.\r\n\r\nI'm not sure if `]%` is really needed at the end. It seems that `%` would be enough, since `[%` has already found the previous unmatched token, but maybe I'm missing something. If `%` is used, instead of `]%`, then this issue does not depend on the other one anymore. They become separate.\r\n\r\nAlso, if the mapping is not needed in select mode (I don't see why it would, but I may have missed something), `xmap` could replace `vmap`:\r\n\r\n    xmap a% o<esc>[%v% \r\n"},"comment":{"url":"https://api.github.com/repos/chrisbra/matchit/issues/comments/419638841","html_url":"https://github.com/chrisbra/matchit/issues/2#issuecomment-419638841","issue_url":"https://api.github.com/repos/chrisbra/matchit/issues/2","id":419638841,"node_id":"MDEyOklzc3VlQ29tbWVudDQxOTYzODg0MQ==","user":{"login":"k-takata","id":840186,"node_id":"MDQ6VXNlcjg0MDE4Ng==","avatar_url":"https://avatars2.githubusercontent.com/u/840186?v=4","gravatar_id":"","url":"https://api.github.com/users/k-takata","html_url":"https://github.com/k-takata","followers_url":"https://api.github.com/users/k-takata/followers","following_url":"https://api.github.com/users/k-takata/following{/other_user}","gists_url":"https://api.github.com/users/k-takata/gists{/gist_id}","starred_url":"https://api.github.com/users/k-takata/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/k-takata/subscriptions","organizations_url":"https://api.github.com/users/k-takata/orgs","repos_url":"https://api.github.com/users/k-takata/repos","events_url":"https://api.github.com/users/k-takata/events{/privacy}","received_events_url":"https://api.github.com/users/k-takata/received_events","type":"User","site_admin":false},"created_at":"2018-09-08T12:32:37Z","updated_at":"2018-09-08T12:32:37Z","author_association":"CONTRIBUTOR","body":"The behavior of `v_a%` was changed by #8 and #9, but the behavior might be still unexpected for multiple patterns like #if-#else-#endif."}}
{"actor":{"display_login":"k-takata"}}