{"action":"created","issue":{"url":"https://api.github.com/repos/google/xi-mac/issues/142","repository_url":"https://api.github.com/repos/google/xi-mac","labels_url":"https://api.github.com/repos/google/xi-mac/issues/142/labels{/name}","comments_url":"https://api.github.com/repos/google/xi-mac/issues/142/comments","events_url":"https://api.github.com/repos/google/xi-mac/issues/142/events","html_url":"https://github.com/google/xi-mac/issues/142","id":297038687,"node_id":"MDU6SXNzdWUyOTcwMzg2ODc=","number":142,"title":"Question about contributing to a file explorer","user":{"login":"rolftimmermans","id":78237,"node_id":"MDQ6VXNlcjc4MjM3","avatar_url":"https://avatars1.githubusercontent.com/u/78237?v=4","gravatar_id":"","url":"https://api.github.com/users/rolftimmermans","html_url":"https://github.com/rolftimmermans","followers_url":"https://api.github.com/users/rolftimmermans/followers","following_url":"https://api.github.com/users/rolftimmermans/following{/other_user}","gists_url":"https://api.github.com/users/rolftimmermans/gists{/gist_id}","starred_url":"https://api.github.com/users/rolftimmermans/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rolftimmermans/subscriptions","organizations_url":"https://api.github.com/users/rolftimmermans/orgs","repos_url":"https://api.github.com/users/rolftimmermans/repos","events_url":"https://api.github.com/users/rolftimmermans/events{/privacy}","received_events_url":"https://api.github.com/users/rolftimmermans/received_events","type":"User","site_admin":false},"labels":[{"id":821711762,"node_id":"MDU6TGFiZWw4MjE3MTE3NjI=","url":"https://api.github.com/repos/google/xi-mac/labels/UI","name":"UI","color":"d4c5f9","default":false},{"id":517719872,"node_id":"MDU6TGFiZWw1MTc3MTk4NzI=","url":"https://api.github.com/repos/google/xi-mac/labels/enhancement","name":"enhancement","color":"84b6eb","default":true}],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":2,"created_at":"2018-02-14T10:10:58Z","updated_at":"2018-07-21T10:42:29Z","closed_at":null,"author_association":"NONE","body":"I'd love to use Xi for Mac on a more regular basis. I love the goal of this project and am a huge fan of fast, platform-native software.\r\n\r\nThe one thing missing for me that would make Xi useful for for any real work is a (simple) file/project explorer. I would love to contribute to this. Has any thought been given to how this should be implemented? Would this be a plugin or part of the native Mac app? Should it be part of this project or separate?"},"comment":{"url":"https://api.github.com/repos/google/xi-mac/issues/comments/406787168","html_url":"https://github.com/google/xi-mac/issues/142#issuecomment-406787168","issue_url":"https://api.github.com/repos/google/xi-mac/issues/142","id":406787168,"node_id":"MDEyOklzc3VlQ29tbWVudDQwNjc4NzE2OA==","user":{"login":"lukakerr","id":20056300,"node_id":"MDQ6VXNlcjIwMDU2MzAw","avatar_url":"https://avatars2.githubusercontent.com/u/20056300?v=4","gravatar_id":"","url":"https://api.github.com/users/lukakerr","html_url":"https://github.com/lukakerr","followers_url":"https://api.github.com/users/lukakerr/followers","following_url":"https://api.github.com/users/lukakerr/following{/other_user}","gists_url":"https://api.github.com/users/lukakerr/gists{/gist_id}","starred_url":"https://api.github.com/users/lukakerr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/lukakerr/subscriptions","organizations_url":"https://api.github.com/users/lukakerr/orgs","repos_url":"https://api.github.com/users/lukakerr/repos","events_url":"https://api.github.com/users/lukakerr/events{/privacy}","received_events_url":"https://api.github.com/users/lukakerr/received_events","type":"User","site_admin":false},"created_at":"2018-07-21T10:42:29Z","updated_at":"2018-07-21T10:42:29Z","author_association":"CONTRIBUTOR","body":"@cmyr @rolftimmermans Regarding the sidebar/file navigator, i've been doing some work on a personal project [Twig](https://github.com/lukakerr/twig) which makes use of an `NSOutlineView` to render in folders/files. It uses a `NSSplitView` with the left split view item being the sidebar, and the right being everything else (the text view etc). This way things like collapsing and resizing are handled automatically.\r\n\r\nRight now the way it works is by finding the first level of children given a root path, and when a folder is expanded it finds the children of that folder, and so on. You can have a look [here at the SidearViewController extension](https://github.com/lukakerr/twig/blob/master/Twig/Extensions/SidebarViewController%2BExtension.swift) to get an idea of how items are rendered into the NSOutlineView, and how actions on each item are handled.\r\n\r\nThe way file system items and their children are represented can be seen in the [FileSystemItem class](https://github.com/lukakerr/twig/blob/master/Twig/Models/FileSystemItem.swift).\r\n\r\nSince the NSOutlineViewDataSource is quite generic, a sidebar/file navigator could be built relatively easily without being too tightly coupled to how the actual sidebar item is represented in data. I'd be keen to get a minimal example of the sidebar working in xi-mac, which would probably just involve the user opening a folder, rendering the contents of that folder into the sidebar and opening the file into the current window on click.\r\n\r\nLet me know your thoughts on this before I start on anything"}}
{"actor":{"display_login":"lukakerr"}}