{"action":"created","issue":{"url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/10","repository_url":"https://api.github.com/repos/sQu1rr/nerd-treeview","labels_url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/10/labels{/name}","comments_url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/10/comments","events_url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/10/events","html_url":"https://github.com/sQu1rr/nerd-treeview/issues/10","id":142379927,"number":10,"title":"Saving folder expansion state not working","user":{"login":"dcalhoun","id":438664,"avatar_url":"https://avatars.githubusercontent.com/u/438664?v=3","gravatar_id":"","url":"https://api.github.com/users/dcalhoun","html_url":"https://github.com/dcalhoun","followers_url":"https://api.github.com/users/dcalhoun/followers","following_url":"https://api.github.com/users/dcalhoun/following{/other_user}","gists_url":"https://api.github.com/users/dcalhoun/gists{/gist_id}","starred_url":"https://api.github.com/users/dcalhoun/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dcalhoun/subscriptions","organizations_url":"https://api.github.com/users/dcalhoun/orgs","repos_url":"https://api.github.com/users/dcalhoun/repos","events_url":"https://api.github.com/users/dcalhoun/events{/privacy}","received_events_url":"https://api.github.com/users/dcalhoun/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2016-03-21T15:16:59Z","updated_at":"2016-03-21T16:55:21Z","closed_at":"2016-03-21T16:54:38Z","body":"Unless I'm misunderstanding the meaning of \"saving folder expansion state\" from the [README](https://github.com/sQu1rr/nerd-treeview#tree-modification), this ability appears to be broken. Specifically, I've seen it fail with the `nerd-treeview:change-root` command.\r\n\r\n#### Behavior\r\n\r\nWith the following structure:\r\n```\r\n└── directory-a\r\n    └── directory-b\r\n        ├── directory-c\r\n        ├── directory-d\r\n        │   └── directory-f\r\n        │       ├── directory-g\r\n        │       │   └── index.js\r\n        │       └── directory-h\r\n        │           └── index.js\r\n        └── directory-e\r\n```\r\n\r\n1. Open tree view: <kbd>CMD</kbd> - <kbd>\\\\</kbd>\r\n2. Open `directory-a`, `directory-b`, `directory-d`, `directory-f`, `directory-g`, and `directory-h`: <kbd>o</kbd>\r\n3. Change the root directory to `directory-b`: <kbd>C</kbd>\r\n\r\n#### Current Outcome\r\nThe tree view root folder changes to highlighted `directory-b`, children directories lose their state and collapse.\r\n\r\n#### Expected Outcome\r\nThe tree view root folder changes to highlighted `directory-b`, children directories retain their state and remain open (i.e. — `directory-b`, `directory-d`, `directory-f`, `directory-g`, and `directory-h` remain open).\r\n\r\n#### Environment\r\n- Mac OS X 10.11.3 (15D21)\r\n- Atom 1.6.0\r\n- nerd-treeview 0.4.0\r\n- Default tree view key bindings disabled"},"comment":{"url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/comments/199376506","html_url":"https://github.com/sQu1rr/nerd-treeview/issues/10#issuecomment-199376506","issue_url":"https://api.github.com/repos/sQu1rr/nerd-treeview/issues/10","id":199376506,"user":{"login":"sQu1rr","id":3148267,"avatar_url":"https://avatars.githubusercontent.com/u/3148267?v=3","gravatar_id":"","url":"https://api.github.com/users/sQu1rr","html_url":"https://github.com/sQu1rr","followers_url":"https://api.github.com/users/sQu1rr/followers","following_url":"https://api.github.com/users/sQu1rr/following{/other_user}","gists_url":"https://api.github.com/users/sQu1rr/gists{/gist_id}","starred_url":"https://api.github.com/users/sQu1rr/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sQu1rr/subscriptions","organizations_url":"https://api.github.com/users/sQu1rr/orgs","repos_url":"https://api.github.com/users/sQu1rr/repos","events_url":"https://api.github.com/users/sQu1rr/events{/privacy}","received_events_url":"https://api.github.com/users/sQu1rr/received_events","type":"User","site_admin":false},"created_at":"2016-03-21T16:55:21Z","updated_at":"2016-03-21T16:55:21Z","body":"Need some testing before i'll release a patched version. Seem to work for me"}}