{"action":"created","comment":{"url":"https://api.github.com/repos/Shougo/unite.vim/pulls/comments/35535682","id":35535682,"diff_hunk":"@@ -606,6 +610,29 @@ function! s:print_message_log() \"{{{\n     echohl WarningMsg | echo msg | echohl None\n   endfor\n endfunction\"}}}\n+function! s:cursor_top() \"{{{\n+  let unite = unite#get_current_unite()\n+  if v:count == 0\n+    exe 'normal!' (unite.prompt_linenr == 1 ? '2' : '') . 'gg0z.'\n+  else\n+    if v:count > len(unite.current_candidates) + (unite.prompt_linenr == 1)\n+      call unite#view#_redraw_all_candidates()\n+    endif\n+    exe 'normal!' v:count . 'gg0z.'","path":"autoload/unite/mappings.vim","position":39,"original_position":39,"commit_id":"c0698fc3e0eda41daf06b3f30018de628e42dc97","original_commit_id":"c0698fc3e0eda41daf06b3f30018de628e42dc97","user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"body":"Please use `:execute` instead of `exe`.","created_at":"2015-07-27T13:38:19Z","updated_at":"2015-07-27T13:38:19Z","html_url":"https://github.com/Shougo/unite.vim/pull/974#discussion_r35535682","pull_request_url":"https://api.github.com/repos/Shougo/unite.vim/pulls/974","_links":{"self":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/comments/35535682"},"html":{"href":"https://github.com/Shougo/unite.vim/pull/974#discussion_r35535682"},"pull_request":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/974"}}},"pull_request":{"url":"https://api.github.com/repos/Shougo/unite.vim/pulls/974","id":40866655,"html_url":"https://github.com/Shougo/unite.vim/pull/974","diff_url":"https://github.com/Shougo/unite.vim/pull/974.diff","patch_url":"https://github.com/Shougo/unite.vim/pull/974.patch","issue_url":"https://api.github.com/repos/Shougo/unite.vim/issues/974","number":974,"state":"open","locked":false,"title":"Provide better mappings for gg and G","user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"body":"Update the `gg` and `G` mappings to support a count and to redraw all candidates if the count is past the current candidates list.\r\n\r\nAlso map `<C-Home>` and `<C-End>`.","created_at":"2015-07-27T02:53:44Z","updated_at":"2015-07-27T13:38:19Z","closed_at":null,"merged_at":null,"merge_commit_sha":"28c0acb0813fedff217cbbf6034971f3e402c4ad","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Shougo/unite.vim/pulls/974/commits","review_comments_url":"https://api.github.com/repos/Shougo/unite.vim/pulls/974/comments","review_comment_url":"https://api.github.com/repos/Shougo/unite.vim/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Shougo/unite.vim/issues/974/comments","statuses_url":"https://api.github.com/repos/Shougo/unite.vim/statuses/c0698fc3e0eda41daf06b3f30018de628e42dc97","head":{"label":"kballard:better-gg-G-mappings","ref":"better-gg-G-mappings","sha":"c0698fc3e0eda41daf06b3f30018de628e42dc97","user":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"repo":{"id":39751880,"name":"unite.vim","full_name":"kballard/unite.vim","owner":{"login":"kballard","id":714,"avatar_url":"https://avatars.githubusercontent.com/u/714?v=3","gravatar_id":"","url":"https://api.github.com/users/kballard","html_url":"https://github.com/kballard","followers_url":"https://api.github.com/users/kballard/followers","following_url":"https://api.github.com/users/kballard/following{/other_user}","gists_url":"https://api.github.com/users/kballard/gists{/gist_id}","starred_url":"https://api.github.com/users/kballard/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kballard/subscriptions","organizations_url":"https://api.github.com/users/kballard/orgs","repos_url":"https://api.github.com/users/kballard/repos","events_url":"https://api.github.com/users/kballard/events{/privacy}","received_events_url":"https://api.github.com/users/kballard/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kballard/unite.vim","description":"Unite and create user interfaces","fork":true,"url":"https://api.github.com/repos/kballard/unite.vim","forks_url":"https://api.github.com/repos/kballard/unite.vim/forks","keys_url":"https://api.github.com/repos/kballard/unite.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kballard/unite.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kballard/unite.vim/teams","hooks_url":"https://api.github.com/repos/kballard/unite.vim/hooks","issue_events_url":"https://api.github.com/repos/kballard/unite.vim/issues/events{/number}","events_url":"https://api.github.com/repos/kballard/unite.vim/events","assignees_url":"https://api.github.com/repos/kballard/unite.vim/assignees{/user}","branches_url":"https://api.github.com/repos/kballard/unite.vim/branches{/branch}","tags_url":"https://api.github.com/repos/kballard/unite.vim/tags","blobs_url":"https://api.github.com/repos/kballard/unite.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kballard/unite.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kballard/unite.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/kballard/unite.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kballard/unite.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/kballard/unite.vim/languages","stargazers_url":"https://api.github.com/repos/kballard/unite.vim/stargazers","contributors_url":"https://api.github.com/repos/kballard/unite.vim/contributors","subscribers_url":"https://api.github.com/repos/kballard/unite.vim/subscribers","subscription_url":"https://api.github.com/repos/kballard/unite.vim/subscription","commits_url":"https://api.github.com/repos/kballard/unite.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/kballard/unite.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/kballard/unite.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/kballard/unite.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/kballard/unite.vim/contents/{+path}","compare_url":"https://api.github.com/repos/kballard/unite.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kballard/unite.vim/merges","archive_url":"https://api.github.com/repos/kballard/unite.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kballard/unite.vim/downloads","issues_url":"https://api.github.com/repos/kballard/unite.vim/issues{/number}","pulls_url":"https://api.github.com/repos/kballard/unite.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/kballard/unite.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/kballard/unite.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kballard/unite.vim/labels{/name}","releases_url":"https://api.github.com/repos/kballard/unite.vim/releases{/id}","created_at":"2015-07-27T02:52:21Z","updated_at":"2015-07-27T02:52:21Z","pushed_at":"2015-07-27T02:56:40Z","git_url":"git://github.com/kballard/unite.vim.git","ssh_url":"git@github.com:kballard/unite.vim.git","clone_url":"https://github.com/kballard/unite.vim.git","svn_url":"https://github.com/kballard/unite.vim","homepage":"http://www.vim.org/scripts/script.php?script_id=3396","size":14968,"stargazers_count":0,"watchers_count":0,"language":"VimL","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":"Shougo:master","ref":"master","sha":"515b01c64bd92ade146898d5ff7ad7d81a9adc2f","user":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"repo":{"id":779996,"name":"unite.vim","full_name":"Shougo/unite.vim","owner":{"login":"Shougo","id":41495,"avatar_url":"https://avatars.githubusercontent.com/u/41495?v=3","gravatar_id":"","url":"https://api.github.com/users/Shougo","html_url":"https://github.com/Shougo","followers_url":"https://api.github.com/users/Shougo/followers","following_url":"https://api.github.com/users/Shougo/following{/other_user}","gists_url":"https://api.github.com/users/Shougo/gists{/gist_id}","starred_url":"https://api.github.com/users/Shougo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Shougo/subscriptions","organizations_url":"https://api.github.com/users/Shougo/orgs","repos_url":"https://api.github.com/users/Shougo/repos","events_url":"https://api.github.com/users/Shougo/events{/privacy}","received_events_url":"https://api.github.com/users/Shougo/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Shougo/unite.vim","description":"Unite and create user interfaces","fork":false,"url":"https://api.github.com/repos/Shougo/unite.vim","forks_url":"https://api.github.com/repos/Shougo/unite.vim/forks","keys_url":"https://api.github.com/repos/Shougo/unite.vim/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Shougo/unite.vim/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Shougo/unite.vim/teams","hooks_url":"https://api.github.com/repos/Shougo/unite.vim/hooks","issue_events_url":"https://api.github.com/repos/Shougo/unite.vim/issues/events{/number}","events_url":"https://api.github.com/repos/Shougo/unite.vim/events","assignees_url":"https://api.github.com/repos/Shougo/unite.vim/assignees{/user}","branches_url":"https://api.github.com/repos/Shougo/unite.vim/branches{/branch}","tags_url":"https://api.github.com/repos/Shougo/unite.vim/tags","blobs_url":"https://api.github.com/repos/Shougo/unite.vim/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Shougo/unite.vim/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Shougo/unite.vim/git/refs{/sha}","trees_url":"https://api.github.com/repos/Shougo/unite.vim/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Shougo/unite.vim/statuses/{sha}","languages_url":"https://api.github.com/repos/Shougo/unite.vim/languages","stargazers_url":"https://api.github.com/repos/Shougo/unite.vim/stargazers","contributors_url":"https://api.github.com/repos/Shougo/unite.vim/contributors","subscribers_url":"https://api.github.com/repos/Shougo/unite.vim/subscribers","subscription_url":"https://api.github.com/repos/Shougo/unite.vim/subscription","commits_url":"https://api.github.com/repos/Shougo/unite.vim/commits{/sha}","git_commits_url":"https://api.github.com/repos/Shougo/unite.vim/git/commits{/sha}","comments_url":"https://api.github.com/repos/Shougo/unite.vim/comments{/number}","issue_comment_url":"https://api.github.com/repos/Shougo/unite.vim/issues/comments{/number}","contents_url":"https://api.github.com/repos/Shougo/unite.vim/contents/{+path}","compare_url":"https://api.github.com/repos/Shougo/unite.vim/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Shougo/unite.vim/merges","archive_url":"https://api.github.com/repos/Shougo/unite.vim/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Shougo/unite.vim/downloads","issues_url":"https://api.github.com/repos/Shougo/unite.vim/issues{/number}","pulls_url":"https://api.github.com/repos/Shougo/unite.vim/pulls{/number}","milestones_url":"https://api.github.com/repos/Shougo/unite.vim/milestones{/number}","notifications_url":"https://api.github.com/repos/Shougo/unite.vim/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Shougo/unite.vim/labels{/name}","releases_url":"https://api.github.com/repos/Shougo/unite.vim/releases{/id}","created_at":"2010-07-17T02:45:59Z","updated_at":"2015-07-27T07:57:44Z","pushed_at":"2015-07-27T02:56:40Z","git_url":"git://github.com/Shougo/unite.vim.git","ssh_url":"git@github.com:Shougo/unite.vim.git","clone_url":"https://github.com/Shougo/unite.vim.git","svn_url":"https://github.com/Shougo/unite.vim","homepage":"http://www.vim.org/scripts/script.php?script_id=3396","size":14968,"stargazers_count":1829,"watchers_count":1829,"language":"VimL","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":154,"mirror_url":null,"open_issues_count":29,"forks":154,"open_issues":29,"watchers":1829,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/974"},"html":{"href":"https://github.com/Shougo/unite.vim/pull/974"},"issue":{"href":"https://api.github.com/repos/Shougo/unite.vim/issues/974"},"comments":{"href":"https://api.github.com/repos/Shougo/unite.vim/issues/974/comments"},"review_comments":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/974/comments"},"review_comment":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Shougo/unite.vim/pulls/974/commits"},"statuses":{"href":"https://api.github.com/repos/Shougo/unite.vim/statuses/c0698fc3e0eda41daf06b3f30018de628e42dc97"}}}}