{"action":"created","issue":{"url":"https://api.github.com/repos/defunkt/Zen/issues/87","labels_url":"https://api.github.com/repos/defunkt/Zen/issues/87/labels{/name}","comments_url":"https://api.github.com/repos/defunkt/Zen/issues/87/comments","events_url":"https://api.github.com/repos/defunkt/Zen/issues/87/events","html_url":"https://github.com/defunkt/Zen/issues/87","id":129496132,"number":87,"title":"Nuclide tree is not hiding","user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2016-01-28T16:13:26Z","updated_at":"2016-01-28T16:16:14Z","closed_at":null,"body":"In [Nuclide](http://nuclide.io/), __tree-view__ is replaced with __nuclide-file-tree__.\r\n\r\nThis is typical picture when I go in Zen mode:\r\n\r\n![image](https://cloud.githubusercontent.com/assets/599439/12649984/1e55ceaa-c5f2-11e5-82cd-01e7f47969f5.png)\r\n\r\n(*File tree on the left side and Nuclide Toolbar on top* *)\r\n\r\nThere is some useful code in __nuclide-file-tree__:\r\n\r\nThis is interesting function for toggling visibility:\r\n[toggleVisibility](https://github.com/facebooknuclideapm/nuclide-file-tree/blob/master/lib/FileTreeController.js#L264):\r\n```js\r\nfunction toggleVisibility() {\r\n      var willBeVisible = !this._isVisible;\r\n      this._setVisibility(willBeVisible);\r\n      if (willBeVisible && this._revealActiveFilePending) {\r\n        this.revealActiveFile();\r\n        this._revealActiveFilePending = false;\r\n      }\r\n    }\r\n```\r\n\r\nAnd [this is binding](https://github.com/facebooknuclideapm/nuclide-file-tree/blob/master/lib/FileTreeController.js#L116) of this method to atom command __nuclide-file-tree:toggle__:\r\n```\r\nthis._subscriptions.add(atom.commands.add('atom-workspace', {\r\n      'nuclide-file-tree:reveal-active-file': this.revealActiveFile.bind(this),\r\n      'nuclide-file-tree:toggle': this.toggleVisibility.bind(this),\r\n      'nuclide-file-tree:toggle-focus': this.toggleTreeFocus.bind(this)\r\n}));\r\n```\r\n\r\nPlease tell me, which approach is better: Fixing __Zen__ package to work with __nuclide-file-tree__ or vice versa? I can't decide which package needs PR really.\r\n\r\n------------------------------\r\nPS:\r\n* About top __Toolbar__ - I can hide it without trobles - I'm not using it actively. But __tree-view__ auto toggling is very sensible feature."},"comment":{"url":"https://api.github.com/repos/defunkt/Zen/issues/comments/176257932","html_url":"https://github.com/defunkt/Zen/issues/87#issuecomment-176257932","issue_url":"https://api.github.com/repos/defunkt/Zen/issues/87","id":176257932,"user":{"login":"ColCh","id":599439,"avatar_url":"https://avatars.githubusercontent.com/u/599439?v=3","gravatar_id":"","url":"https://api.github.com/users/ColCh","html_url":"https://github.com/ColCh","followers_url":"https://api.github.com/users/ColCh/followers","following_url":"https://api.github.com/users/ColCh/following{/other_user}","gists_url":"https://api.github.com/users/ColCh/gists{/gist_id}","starred_url":"https://api.github.com/users/ColCh/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ColCh/subscriptions","organizations_url":"https://api.github.com/users/ColCh/orgs","repos_url":"https://api.github.com/users/ColCh/repos","events_url":"https://api.github.com/users/ColCh/events{/privacy}","received_events_url":"https://api.github.com/users/ColCh/received_events","type":"User","site_admin":false},"created_at":"2016-01-28T16:16:13Z","updated_at":"2016-01-28T16:16:13Z","body":"@braver Nice! I will prepare patch this night."}}