{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/9609","repository_url":"https://api.github.com/repos/Microsoft/vscode","labels_url":"https://api.github.com/repos/Microsoft/vscode/issues/9609/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/vscode/issues/9609/comments","events_url":"https://api.github.com/repos/Microsoft/vscode/issues/9609/events","html_url":"https://github.com/Microsoft/vscode/issues/9609","id":166981975,"number":9609,"title":"Implement Window/Page scroll commands","user":{"login":"sandy081","id":10746682,"avatar_url":"https://avatars.githubusercontent.com/u/10746682?v=3","gravatar_id":"","url":"https://api.github.com/users/sandy081","html_url":"https://github.com/sandy081","followers_url":"https://api.github.com/users/sandy081/followers","following_url":"https://api.github.com/users/sandy081/following{/other_user}","gists_url":"https://api.github.com/users/sandy081/gists{/gist_id}","starred_url":"https://api.github.com/users/sandy081/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandy081/subscriptions","organizations_url":"https://api.github.com/users/sandy081/orgs","repos_url":"https://api.github.com/users/sandy081/repos","events_url":"https://api.github.com/users/sandy081/events{/privacy}","received_events_url":"https://api.github.com/users/sandy081/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/Microsoft/vscode/labels/api","name":"api","color":"c7def8"},{"url":"https://api.github.com/repos/Microsoft/vscode/labels/VIM","name":"VIM","color":"c7def8"}],"state":"open","locked":false,"assignee":{"login":"sandy081","id":10746682,"avatar_url":"https://avatars.githubusercontent.com/u/10746682?v=3","gravatar_id":"","url":"https://api.github.com/users/sandy081","html_url":"https://github.com/sandy081","followers_url":"https://api.github.com/users/sandy081/followers","following_url":"https://api.github.com/users/sandy081/following{/other_user}","gists_url":"https://api.github.com/users/sandy081/gists{/gist_id}","starred_url":"https://api.github.com/users/sandy081/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandy081/subscriptions","organizations_url":"https://api.github.com/users/sandy081/orgs","repos_url":"https://api.github.com/users/sandy081/repos","events_url":"https://api.github.com/users/sandy081/events{/privacy}","received_events_url":"https://api.github.com/users/sandy081/received_events","type":"User","site_admin":false},"assignees":[{"login":"sandy081","id":10746682,"avatar_url":"https://avatars.githubusercontent.com/u/10746682?v=3","gravatar_id":"","url":"https://api.github.com/users/sandy081","html_url":"https://github.com/sandy081","followers_url":"https://api.github.com/users/sandy081/followers","following_url":"https://api.github.com/users/sandy081/following{/other_user}","gists_url":"https://api.github.com/users/sandy081/gists{/gist_id}","starred_url":"https://api.github.com/users/sandy081/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sandy081/subscriptions","organizations_url":"https://api.github.com/users/sandy081/orgs","repos_url":"https://api.github.com/users/sandy081/repos","events_url":"https://api.github.com/users/sandy081/events{/privacy}","received_events_url":"https://api.github.com/users/sandy081/received_events","type":"User","site_admin":false}],"milestone":{"url":"https://api.github.com/repos/Microsoft/vscode/milestones/23","html_url":"https://github.com/Microsoft/vscode/milestones/August%202016","labels_url":"https://api.github.com/repos/Microsoft/vscode/milestones/23/labels","id":1854621,"number":23,"title":"August 2016","description":"","creator":{"login":"dbaeumer","id":1931590,"avatar_url":"https://avatars.githubusercontent.com/u/1931590?v=3","gravatar_id":"","url":"https://api.github.com/users/dbaeumer","html_url":"https://github.com/dbaeumer","followers_url":"https://api.github.com/users/dbaeumer/followers","following_url":"https://api.github.com/users/dbaeumer/following{/other_user}","gists_url":"https://api.github.com/users/dbaeumer/gists{/gist_id}","starred_url":"https://api.github.com/users/dbaeumer/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dbaeumer/subscriptions","organizations_url":"https://api.github.com/users/dbaeumer/orgs","repos_url":"https://api.github.com/users/dbaeumer/repos","events_url":"https://api.github.com/users/dbaeumer/events{/privacy}","received_events_url":"https://api.github.com/users/dbaeumer/received_events","type":"User","site_admin":false},"open_issues":154,"closed_issues":42,"state":"open","created_at":"2016-06-29T08:56:21Z","updated_at":"2016-08-08T07:41:30Z","due_on":"2016-08-25T22:00:00Z","closed_at":null},"comments":3,"created_at":"2016-07-22T06:57:03Z","updated_at":"2016-08-08T07:47:05Z","closed_at":null,"body":"These commands are needed for Vim:\r\n\r\nFrom https://github.com/VSCodeVim/Vim/issues/210:\r\n\r\nVim has handy commands for scrolling without moving the cursor, e.g. zt, which scrolls the screen so that the line with the current cursor is placed as the first line. E.g., I often do actions like /main(<CR>zt, so that I can see as much of the main function as possible.\r\n\r\nWould it be possible to implement zt, zb and zz?\r\n\r\nThanks!\r\n\r\n\r\n- [x] Scroll window upwards/downwards by lines (real line) or window size (eg, half window size)\r\n\r\n```javascript\r\nexecuteCommand('editorScroll', {to: 'up', by: 'line', value: '10'});\r\n```\r\n\r\n### 'to'\r\n- up\r\n- down\r\n\r\n### 'by'\r\n- line\r\n- wrappedLine\r\n- page\r\n- halfPage\r\n\r\n\r\n\r\n- [ ] Scroll line to a specific position of the window\r\n- [ ] Scroll horizontal scrollbar by column numbers.\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/vscode/issues/comments/238164327","html_url":"https://github.com/Microsoft/vscode/issues/9609#issuecomment-238164327","issue_url":"https://api.github.com/repos/Microsoft/vscode/issues/9609","id":238164327,"user":{"login":"rebornix","id":876920,"avatar_url":"https://avatars.githubusercontent.com/u/876920?v=3","gravatar_id":"","url":"https://api.github.com/users/rebornix","html_url":"https://github.com/rebornix","followers_url":"https://api.github.com/users/rebornix/followers","following_url":"https://api.github.com/users/rebornix/following{/other_user}","gists_url":"https://api.github.com/users/rebornix/gists{/gist_id}","starred_url":"https://api.github.com/users/rebornix/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rebornix/subscriptions","organizations_url":"https://api.github.com/users/rebornix/orgs","repos_url":"https://api.github.com/users/rebornix/repos","events_url":"https://api.github.com/users/rebornix/events{/privacy}","received_events_url":"https://api.github.com/users/rebornix/received_events","type":"User","site_admin":false},"created_at":"2016-08-08T07:47:05Z","updated_at":"2016-08-08T07:47:05Z","body":"@sandy081 I just ran your commands but see below errors\r\n\r\n```\r\nerror.stack\r\nError: argument does not match one of these constraints: arg instanceof constraint, arg.constructor === constraint, nor constraint(arg) === true\r\n    at f (file:///C:/Program Files (x86)/Microsoft VS Code Insiders/resources/app/out/vs/workbench/workbench.main.js:29:13605)\r\n```\r\n\r\nany idea?"}}
{"actor":{"display_login":"rebornix"}}