{"action":"created","issue":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/436","labels_url":"https://api.github.com/repos/rstudio/rstudio/issues/436/labels{/name}","comments_url":"https://api.github.com/repos/rstudio/rstudio/issues/436/comments","events_url":"https://api.github.com/repos/rstudio/rstudio/issues/436/events","html_url":"https://github.com/rstudio/rstudio/pull/436","id":82556424,"number":436,"title":"Add a document outline widget for R Markdown documents","user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars.githubusercontent.com/u/1976582?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":16,"created_at":"2015-05-29T19:35:40Z","updated_at":"2015-06-16T16:45:46Z","closed_at":null,"pull_request":{"url":"https://api.github.com/repos/rstudio/rstudio/pulls/436","html_url":"https://github.com/rstudio/rstudio/pull/436","diff_url":"https://github.com/rstudio/rstudio/pull/436.diff","patch_url":"https://github.com/rstudio/rstudio/pull/436.patch"},"body":"Not ready for merge but basic functionality is there (so we can start discussing styling + other behaviours + UI we might like)\r\n\r\n![document-outline](https://cloud.githubusercontent.com/assets/1976582/7891074/1b8c04fe-05ff-11e5-9147-fd4404ef9d86.gif)\r\n\r\nSome of the nice features so far:\r\n\r\n- Click to navigate to chunk\r\n- Chunks that are currently visible get a different UI treatment\r\n\r\nTODO\r\n- [x] Include a tab bar above the outline widget\r\n- [x] Consider sub-items for chunks (e.g. functions)\r\n- [x] Use appropriate icon for tree entries [decided to use no icon]\r\n- [x] Add an icon to show / hide the outline for the document widget\r\n- [x] Optimize scope tree updates (don't re-generate the scope tree on every render)\r\n- [ ] Option to allow outline to track editor position (e.g. as the user scrolls)\r\n- [x] Other styling\r\n- [x] Add markdown headers to scope tree\r\n- [x] Handle sub-headers in Markdown\r\n- [x] Latch the outline icon\r\n- [x] Use vertical bar instead of background color for active chunk\r\n- [x] Inherit colors from current editor theme\r\n- [x] UI / document preference for the outline widget size"},"comment":{"url":"https://api.github.com/repos/rstudio/rstudio/issues/comments/112494175","html_url":"https://github.com/rstudio/rstudio/pull/436#issuecomment-112494175","issue_url":"https://api.github.com/repos/rstudio/rstudio/issues/436","id":112494175,"user":{"login":"kevinushey","id":1976582,"avatar_url":"https://avatars.githubusercontent.com/u/1976582?v=3","gravatar_id":"","url":"https://api.github.com/users/kevinushey","html_url":"https://github.com/kevinushey","followers_url":"https://api.github.com/users/kevinushey/followers","following_url":"https://api.github.com/users/kevinushey/following{/other_user}","gists_url":"https://api.github.com/users/kevinushey/gists{/gist_id}","starred_url":"https://api.github.com/users/kevinushey/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevinushey/subscriptions","organizations_url":"https://api.github.com/users/kevinushey/orgs","repos_url":"https://api.github.com/users/kevinushey/repos","events_url":"https://api.github.com/users/kevinushey/events{/privacy}","received_events_url":"https://api.github.com/users/kevinushey/received_events","type":"User","site_admin":false},"created_at":"2015-06-16T16:45:46Z","updated_at":"2015-06-16T16:45:46Z","body":"Thanks @jjallaire -- I'll start tracking these down and ping you once I've fixed them.\r\n\r\n@rmflight, we'll comment after this gets merged + what daily build it appears in."}}