{"action":"opened","number":849,"pull_request":{"url":"https://api.github.com/repos/atom/vim-mode/pulls/849","id":43554090,"html_url":"https://github.com/atom/vim-mode/pull/849","diff_url":"https://github.com/atom/vim-mode/pull/849.diff","patch_url":"https://github.com/atom/vim-mode/pull/849.patch","issue_url":"https://api.github.com/repos/atom/vim-mode/issues/849","number":849,"state":"open","locked":false,"title":"Atom undo for insert","user":{"login":"jacekkopecky","id":807315,"avatar_url":"https://avatars.githubusercontent.com/u/807315?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekkopecky","html_url":"https://github.com/jacekkopecky","followers_url":"https://api.github.com/users/jacekkopecky/followers","following_url":"https://api.github.com/users/jacekkopecky/following{/other_user}","gists_url":"https://api.github.com/users/jacekkopecky/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekkopecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekkopecky/subscriptions","organizations_url":"https://api.github.com/users/jacekkopecky/orgs","repos_url":"https://api.github.com/users/jacekkopecky/repos","events_url":"https://api.github.com/users/jacekkopecky/events{/privacy}","received_events_url":"https://api.github.com/users/jacekkopecky/received_events","type":"User","site_admin":false},"body":"Alternative to #568 - instead of trying to emulate VIM's undo grouping (described [here](http://vimhelp.appspot.com/undo.txt.html) and [here](http://vimhelp.appspot.com/insert.txt.html#ins-special-special)) and running into difficulties trying to cover all the ways change groups should be interrupted (see #568), this one relies on Atom undo grouping, and attempts to join delete operations with subsequent typing.\r\n\r\nLimitation: if you type `3sabc<escape>`, Atom will separate the undo of the deletion of three characters by `3s` and the addition of `a`. I have a solution in mind, a tentative PR for atom/text-buffer is in preparation.\r\n\r\n@bronson - you commented on the desirability of #568 - can you please review this one?\r\n","created_at":"2015-08-27T19:03:31Z","updated_at":"2015-08-27T19:03:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/atom/vim-mode/pulls/849/commits","review_comments_url":"https://api.github.com/repos/atom/vim-mode/pulls/849/comments","review_comment_url":"https://api.github.com/repos/atom/vim-mode/pulls/comments{/number}","comments_url":"https://api.github.com/repos/atom/vim-mode/issues/849/comments","statuses_url":"https://api.github.com/repos/atom/vim-mode/statuses/59b1a9560257c4d7b7abde46bc31a0349a25e324","head":{"label":"jacekkopecky:atom-undo-for-insert","ref":"atom-undo-for-insert","sha":"59b1a9560257c4d7b7abde46bc31a0349a25e324","user":{"login":"jacekkopecky","id":807315,"avatar_url":"https://avatars.githubusercontent.com/u/807315?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekkopecky","html_url":"https://github.com/jacekkopecky","followers_url":"https://api.github.com/users/jacekkopecky/followers","following_url":"https://api.github.com/users/jacekkopecky/following{/other_user}","gists_url":"https://api.github.com/users/jacekkopecky/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekkopecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekkopecky/subscriptions","organizations_url":"https://api.github.com/users/jacekkopecky/orgs","repos_url":"https://api.github.com/users/jacekkopecky/repos","events_url":"https://api.github.com/users/jacekkopecky/events{/privacy}","received_events_url":"https://api.github.com/users/jacekkopecky/received_events","type":"User","site_admin":false},"repo":{"id":30833935,"name":"vim-mode","full_name":"jacekkopecky/vim-mode","owner":{"login":"jacekkopecky","id":807315,"avatar_url":"https://avatars.githubusercontent.com/u/807315?v=3","gravatar_id":"","url":"https://api.github.com/users/jacekkopecky","html_url":"https://github.com/jacekkopecky","followers_url":"https://api.github.com/users/jacekkopecky/followers","following_url":"https://api.github.com/users/jacekkopecky/following{/other_user}","gists_url":"https://api.github.com/users/jacekkopecky/gists{/gist_id}","starred_url":"https://api.github.com/users/jacekkopecky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jacekkopecky/subscriptions","organizations_url":"https://api.github.com/users/jacekkopecky/orgs","repos_url":"https://api.github.com/users/jacekkopecky/repos","events_url":"https://api.github.com/users/jacekkopecky/events{/privacy}","received_events_url":"https://api.github.com/users/jacekkopecky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jacekkopecky/vim-mode","description":"Next generation vim support for atom","fork":true,"url":"https://api.github.com/repos/jacekkopecky/vim-mode","forks_url":"https://api.github.com/repos/jacekkopecky/vim-mode/forks","keys_url":"https://api.github.com/repos/jacekkopecky/vim-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jacekkopecky/vim-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jacekkopecky/vim-mode/teams","hooks_url":"https://api.github.com/repos/jacekkopecky/vim-mode/hooks","issue_events_url":"https://api.github.com/repos/jacekkopecky/vim-mode/issues/events{/number}","events_url":"https://api.github.com/repos/jacekkopecky/vim-mode/events","assignees_url":"https://api.github.com/repos/jacekkopecky/vim-mode/assignees{/user}","branches_url":"https://api.github.com/repos/jacekkopecky/vim-mode/branches{/branch}","tags_url":"https://api.github.com/repos/jacekkopecky/vim-mode/tags","blobs_url":"https://api.github.com/repos/jacekkopecky/vim-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jacekkopecky/vim-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jacekkopecky/vim-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/jacekkopecky/vim-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jacekkopecky/vim-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/jacekkopecky/vim-mode/languages","stargazers_url":"https://api.github.com/repos/jacekkopecky/vim-mode/stargazers","contributors_url":"https://api.github.com/repos/jacekkopecky/vim-mode/contributors","subscribers_url":"https://api.github.com/repos/jacekkopecky/vim-mode/subscribers","subscription_url":"https://api.github.com/repos/jacekkopecky/vim-mode/subscription","commits_url":"https://api.github.com/repos/jacekkopecky/vim-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/jacekkopecky/vim-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/jacekkopecky/vim-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/jacekkopecky/vim-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/jacekkopecky/vim-mode/contents/{+path}","compare_url":"https://api.github.com/repos/jacekkopecky/vim-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jacekkopecky/vim-mode/merges","archive_url":"https://api.github.com/repos/jacekkopecky/vim-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jacekkopecky/vim-mode/downloads","issues_url":"https://api.github.com/repos/jacekkopecky/vim-mode/issues{/number}","pulls_url":"https://api.github.com/repos/jacekkopecky/vim-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/jacekkopecky/vim-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/jacekkopecky/vim-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jacekkopecky/vim-mode/labels{/name}","releases_url":"https://api.github.com/repos/jacekkopecky/vim-mode/releases{/id}","created_at":"2015-02-15T16:53:14Z","updated_at":"2015-04-29T08:19:22Z","pushed_at":"2015-08-27T18:33:38Z","git_url":"git://github.com/jacekkopecky/vim-mode.git","ssh_url":"git@github.com:jacekkopecky/vim-mode.git","clone_url":"https://github.com/jacekkopecky/vim-mode.git","svn_url":"https://github.com/jacekkopecky/vim-mode","homepage":null,"size":2096,"stargazers_count":0,"watchers_count":0,"language":"CoffeeScript","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"atom:master","ref":"master","sha":"2ab86b2942efe6fee81e3d6492ba2020e64ee499","user":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"repo":{"id":11827104,"name":"vim-mode","full_name":"atom/vim-mode","owner":{"login":"atom","id":1089146,"avatar_url":"https://avatars.githubusercontent.com/u/1089146?v=3","gravatar_id":"","url":"https://api.github.com/users/atom","html_url":"https://github.com/atom","followers_url":"https://api.github.com/users/atom/followers","following_url":"https://api.github.com/users/atom/following{/other_user}","gists_url":"https://api.github.com/users/atom/gists{/gist_id}","starred_url":"https://api.github.com/users/atom/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/atom/subscriptions","organizations_url":"https://api.github.com/users/atom/orgs","repos_url":"https://api.github.com/users/atom/repos","events_url":"https://api.github.com/users/atom/events{/privacy}","received_events_url":"https://api.github.com/users/atom/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/atom/vim-mode","description":"Next generation vim support for atom","fork":false,"url":"https://api.github.com/repos/atom/vim-mode","forks_url":"https://api.github.com/repos/atom/vim-mode/forks","keys_url":"https://api.github.com/repos/atom/vim-mode/keys{/key_id}","collaborators_url":"https://api.github.com/repos/atom/vim-mode/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/atom/vim-mode/teams","hooks_url":"https://api.github.com/repos/atom/vim-mode/hooks","issue_events_url":"https://api.github.com/repos/atom/vim-mode/issues/events{/number}","events_url":"https://api.github.com/repos/atom/vim-mode/events","assignees_url":"https://api.github.com/repos/atom/vim-mode/assignees{/user}","branches_url":"https://api.github.com/repos/atom/vim-mode/branches{/branch}","tags_url":"https://api.github.com/repos/atom/vim-mode/tags","blobs_url":"https://api.github.com/repos/atom/vim-mode/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/atom/vim-mode/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/atom/vim-mode/git/refs{/sha}","trees_url":"https://api.github.com/repos/atom/vim-mode/git/trees{/sha}","statuses_url":"https://api.github.com/repos/atom/vim-mode/statuses/{sha}","languages_url":"https://api.github.com/repos/atom/vim-mode/languages","stargazers_url":"https://api.github.com/repos/atom/vim-mode/stargazers","contributors_url":"https://api.github.com/repos/atom/vim-mode/contributors","subscribers_url":"https://api.github.com/repos/atom/vim-mode/subscribers","subscription_url":"https://api.github.com/repos/atom/vim-mode/subscription","commits_url":"https://api.github.com/repos/atom/vim-mode/commits{/sha}","git_commits_url":"https://api.github.com/repos/atom/vim-mode/git/commits{/sha}","comments_url":"https://api.github.com/repos/atom/vim-mode/comments{/number}","issue_comment_url":"https://api.github.com/repos/atom/vim-mode/issues/comments{/number}","contents_url":"https://api.github.com/repos/atom/vim-mode/contents/{+path}","compare_url":"https://api.github.com/repos/atom/vim-mode/compare/{base}...{head}","merges_url":"https://api.github.com/repos/atom/vim-mode/merges","archive_url":"https://api.github.com/repos/atom/vim-mode/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/atom/vim-mode/downloads","issues_url":"https://api.github.com/repos/atom/vim-mode/issues{/number}","pulls_url":"https://api.github.com/repos/atom/vim-mode/pulls{/number}","milestones_url":"https://api.github.com/repos/atom/vim-mode/milestones{/number}","notifications_url":"https://api.github.com/repos/atom/vim-mode/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/atom/vim-mode/labels{/name}","releases_url":"https://api.github.com/repos/atom/vim-mode/releases{/id}","created_at":"2013-08-01T20:37:14Z","updated_at":"2015-08-27T12:32:54Z","pushed_at":"2015-08-27T17:13:43Z","git_url":"git://github.com/atom/vim-mode.git","ssh_url":"git@github.com:atom/vim-mode.git","clone_url":"https://github.com/atom/vim-mode.git","svn_url":"https://github.com/atom/vim-mode","homepage":null,"size":5567,"stargazers_count":1153,"watchers_count":1153,"language":"CoffeeScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":232,"mirror_url":null,"open_issues_count":210,"forks":232,"open_issues":210,"watchers":1153,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/atom/vim-mode/pulls/849"},"html":{"href":"https://github.com/atom/vim-mode/pull/849"},"issue":{"href":"https://api.github.com/repos/atom/vim-mode/issues/849"},"comments":{"href":"https://api.github.com/repos/atom/vim-mode/issues/849/comments"},"review_comments":{"href":"https://api.github.com/repos/atom/vim-mode/pulls/849/comments"},"review_comment":{"href":"https://api.github.com/repos/atom/vim-mode/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/atom/vim-mode/pulls/849/commits"},"statuses":{"href":"https://api.github.com/repos/atom/vim-mode/statuses/59b1a9560257c4d7b7abde46bc31a0349a25e324"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":3,"additions":61,"deletions":30,"changed_files":3}}