{"action":"created","issue":{"url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/137","labels_url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/137/labels{/name}","comments_url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/137/comments","events_url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/137/events","html_url":"https://github.com/jonathandelgado/SublimeTodoReview/issues/137","id":120312389,"number":137,"title":"When used on a folder in a sidebar, don't list parent folders","user":{"login":"FichteFoll","id":931051,"avatar_url":"https://avatars.githubusercontent.com/u/931051?v=3","gravatar_id":"","url":"https://api.github.com/users/FichteFoll","html_url":"https://github.com/FichteFoll","followers_url":"https://api.github.com/users/FichteFoll/followers","following_url":"https://api.github.com/users/FichteFoll/following{/other_user}","gists_url":"https://api.github.com/users/FichteFoll/gists{/gist_id}","starred_url":"https://api.github.com/users/FichteFoll/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/FichteFoll/subscriptions","organizations_url":"https://api.github.com/users/FichteFoll/orgs","repos_url":"https://api.github.com/users/FichteFoll/repos","events_url":"https://api.github.com/users/FichteFoll/events{/privacy}","received_events_url":"https://api.github.com/users/FichteFoll/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"jonathandelgado","id":1841149,"avatar_url":"https://avatars.githubusercontent.com/u/1841149?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathandelgado","html_url":"https://github.com/jonathandelgado","followers_url":"https://api.github.com/users/jonathandelgado/followers","following_url":"https://api.github.com/users/jonathandelgado/following{/other_user}","gists_url":"https://api.github.com/users/jonathandelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathandelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathandelgado/subscriptions","organizations_url":"https://api.github.com/users/jonathandelgado/orgs","repos_url":"https://api.github.com/users/jonathandelgado/repos","events_url":"https://api.github.com/users/jonathandelgado/events{/privacy}","received_events_url":"https://api.github.com/users/jonathandelgado/received_events","type":"User","site_admin":false},"milestone":null,"comments":4,"created_at":"2015-12-04T01:32:18Z","updated_at":"2015-12-14T23:31:50Z","closed_at":null,"body":"When I'm using this on a folder in the sidebar, I am very much interested in having all file paths relative from that directory - especially if it's only one directory and not multiple. If there are multiple, don't go higher than the name of the \"scan root directory\".\r\n\r\nAfter countless months of idling in a tab, this package has finally managed to find its way into my configuration and I'm very much interested in keeping it alive - if I can manage to enough time for it, that is. Pull requests possible."},"comment":{"url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/comments/164593882","html_url":"https://github.com/jonathandelgado/SublimeTodoReview/issues/137#issuecomment-164593882","issue_url":"https://api.github.com/repos/jonathandelgado/SublimeTodoReview/issues/137","id":164593882,"user":{"login":"jonathandelgado","id":1841149,"avatar_url":"https://avatars.githubusercontent.com/u/1841149?v=3","gravatar_id":"","url":"https://api.github.com/users/jonathandelgado","html_url":"https://github.com/jonathandelgado","followers_url":"https://api.github.com/users/jonathandelgado/followers","following_url":"https://api.github.com/users/jonathandelgado/following{/other_user}","gists_url":"https://api.github.com/users/jonathandelgado/gists{/gist_id}","starred_url":"https://api.github.com/users/jonathandelgado/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jonathandelgado/subscriptions","organizations_url":"https://api.github.com/users/jonathandelgado/orgs","repos_url":"https://api.github.com/users/jonathandelgado/repos","events_url":"https://api.github.com/users/jonathandelgado/events{/privacy}","received_events_url":"https://api.github.com/users/jonathandelgado/received_events","type":"User","site_admin":false},"created_at":"2015-12-14T23:31:50Z","updated_at":"2015-12-14T23:31:50Z","body":"Looked into this today, it looks like the `render_folder_depth` will always determine the amount of folders are displayed in the render, the issue you noticed with `render_include_folder` is simply causing   `render_folder_depth` to be set to `0`.\r\n\r\nThe solution to this would be calculating the depth of each file from the `paths` and then calculating the max between that depth and `render_include_folder`. This is actually a little difficult since we need to determine the actual `paths` that was used for each result within the `draw_file`; so this might actually require a rewrite of the engine to include the `paths` used for each item.\r\n\r\nWith that being said, this isn't something i'm willing to take on, but I will absolutely accept a PR."}}