{"action":"opened","issue":{"url":"https://api.github.com/repos/rattias/mscviewer/issues/3","labels_url":"https://api.github.com/repos/rattias/mscviewer/issues/3/labels{/name}","comments_url":"https://api.github.com/repos/rattias/mscviewer/issues/3/comments","events_url":"https://api.github.com/repos/rattias/mscviewer/issues/3/events","html_url":"https://github.com/rattias/mscviewer/issues/3","id":79159408,"number":3,"title":"Improvements on Source View","user":{"login":"rattias","id":8731047,"avatar_url":"https://avatars.githubusercontent.com/u/8731047?v=3","gravatar_id":"","url":"https://api.github.com/users/rattias","html_url":"https://github.com/rattias","followers_url":"https://api.github.com/users/rattias/followers","following_url":"https://api.github.com/users/rattias/following{/other_user}","gists_url":"https://api.github.com/users/rattias/gists{/gist_id}","starred_url":"https://api.github.com/users/rattias/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rattias/subscriptions","organizations_url":"https://api.github.com/users/rattias/orgs","repos_url":"https://api.github.com/users/rattias/repos","events_url":"https://api.github.com/users/rattias/events{/privacy}","received_events_url":"https://api.github.com/users/rattias/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-05-21T21:01:32Z","updated_at":"2015-05-21T21:01:32Z","closed_at":null,"body":"Rather than storing the entire source code in memory we should just create an array of ints containing offsets in the file where lines start. \r\nThe source view should become a non-editable text area, so that natural copy&paste is supported. When scrolling we should use the array to read on-the-fly the text from the file.\r\n\r\nWhat to do if the user changes the file? In order to avoid this problem,\r\nwe should probably copy the file as we parse it, to keep the appearance the file was loaded."}}