{"action":"created","issue":{"url":"https://api.github.com/repos/google/ci_edit/issues/155","repository_url":"https://api.github.com/repos/google/ci_edit","labels_url":"https://api.github.com/repos/google/ci_edit/issues/155/labels{/name}","comments_url":"https://api.github.com/repos/google/ci_edit/issues/155/comments","events_url":"https://api.github.com/repos/google/ci_edit/issues/155/events","html_url":"https://github.com/google/ci_edit/issues/155","id":306988070,"number":155,"title":"[Enhancement] Reset scrollCol to 0","user":{"login":"aaxu","id":19481525,"avatar_url":"https://avatars2.githubusercontent.com/u/19481525?v=4","gravatar_id":"","url":"https://api.github.com/users/aaxu","html_url":"https://github.com/aaxu","followers_url":"https://api.github.com/users/aaxu/followers","following_url":"https://api.github.com/users/aaxu/following{/other_user}","gists_url":"https://api.github.com/users/aaxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaxu/subscriptions","organizations_url":"https://api.github.com/users/aaxu/orgs","repos_url":"https://api.github.com/users/aaxu/repos","events_url":"https://api.github.com/users/aaxu/events{/privacy}","received_events_url":"https://api.github.com/users/aaxu/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":5,"created_at":"2018-03-20T18:31:33Z","updated_at":"2018-04-11T15:37:08Z","closed_at":null,"author_association":"CONTRIBUTOR","body":"One thing that's been hard for me so far was that if I am modifying a file like this\r\n\r\n```\r\naaaaaaaaaaaaaaaa|aaaaaaaaaaaaaaaaaaaaaa <- cursor here\r\nsecond line     |\r\n                |\r\n                ^ left edge of screen\r\n```\r\nIf I want to edit the second line and I hit the down arrow key, the new screen looks like\r\n```\r\naaaaaaaaaaa|aaaaaaaaaaaaaaaaaaaaaaaaaaa\r\nsecond line| <- cursor here\r\n           |              \r\n           ^ left edge of screen\r\n```\r\nIt becomes hard to tell if we are at the beginning of the line or not. Perhaps in this case we can use the same rules that we did for setting the screen to the `optimalScrollPosition`?\r\nIf I remember correctly, then the rules could be adjusted to something along the lines of:\r\n* If the entire line fits on the screen, set scrollCol to 0\r\n* if the entire line doesn't fit on the screen, set the scrollCol such that our cursor will be located on the screen so that it matches the ratio defined in `optimalScrollCol`.\r\n\r\nNot sure if this is an issue or only a problem only I'm having."},"comment":{"url":"https://api.github.com/repos/google/ci_edit/issues/comments/380497326","html_url":"https://github.com/google/ci_edit/issues/155#issuecomment-380497326","issue_url":"https://api.github.com/repos/google/ci_edit/issues/155","id":380497326,"user":{"login":"aaxu","id":19481525,"avatar_url":"https://avatars2.githubusercontent.com/u/19481525?v=4","gravatar_id":"","url":"https://api.github.com/users/aaxu","html_url":"https://github.com/aaxu","followers_url":"https://api.github.com/users/aaxu/followers","following_url":"https://api.github.com/users/aaxu/following{/other_user}","gists_url":"https://api.github.com/users/aaxu/gists{/gist_id}","starred_url":"https://api.github.com/users/aaxu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/aaxu/subscriptions","organizations_url":"https://api.github.com/users/aaxu/orgs","repos_url":"https://api.github.com/users/aaxu/repos","events_url":"https://api.github.com/users/aaxu/events{/privacy}","received_events_url":"https://api.github.com/users/aaxu/received_events","type":"User","site_admin":false},"created_at":"2018-04-11T15:37:08Z","updated_at":"2018-04-11T15:37:08Z","author_association":"CONTRIBUTOR","body":"Looks pretty good so far. Should I write some integration tests, using `displayCheck` similar to the bookmark tests?"}}
{"actor":{"display_login":"aaxu"}}