{"action":"created","issue":{"url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/13","labels_url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/13/labels{/name}","comments_url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/13/comments","events_url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/13/events","html_url":"https://github.com/klorenz/atom-open-plus/issues/13","id":94239799,"number":13,"title":"Config to set fallback workdir","user":{"login":"Flonker","id":13133504,"avatar_url":"https://avatars.githubusercontent.com/u/13133504?v=3","gravatar_id":"","url":"https://api.github.com/users/Flonker","html_url":"https://github.com/Flonker","followers_url":"https://api.github.com/users/Flonker/followers","following_url":"https://api.github.com/users/Flonker/following{/other_user}","gists_url":"https://api.github.com/users/Flonker/gists{/gist_id}","starred_url":"https://api.github.com/users/Flonker/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Flonker/subscriptions","organizations_url":"https://api.github.com/users/Flonker/orgs","repos_url":"https://api.github.com/users/Flonker/repos","events_url":"https://api.github.com/users/Flonker/events{/privacy}","received_events_url":"https://api.github.com/users/Flonker/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-07-10T07:41:04Z","updated_at":"2015-07-24T20:36:45Z","closed_at":null,"body":"I have a suggestion that I think more people would like to have and that is to have the option to set a \"fallback workdir\" or whatever you should call it.\r\n\r\nThe purpose with this is that if the file under the cursor isn't found in current project/opened directory the package can check the \"fallback workdir\" and try to find the file there.\r\n\r\nI almost always work in a single project/folder but sometimes a custom script is located somewhere else.\r\n\r\nAn example:\r\n*****************************************************\r\nOpened dir: c:\\projects\\coolthing\r\nfile to find: includes\\main.i (relative path in c:\\projects\\coolthing)\r\n\r\ntemporary testfile: c:\\temp\\test.p (this is the currently open file)\r\n![image](https://cloud.githubusercontent.com/assets/13133504/8613849/ca75ffec-26e3-11e5-8f37-c11e680f64ba.png)\r\n\r\nI want to be able to tell the package to look for the file in c:\\projects\\coolthing\r\n*****************************************************\r\n\r\nMaybe add this to config?\r\n<pre>\r\n    useFallbackDir:\r\n      type: \"boolean\"\r\n      default: false\r\n      title: \"Use fallback directory\"\r\n    \r\n    fallbackDir:\r\n      type: \"string\"\r\n      default: \"\"\r\n      description: \"The fallback directory to use when file is not found i project/opened directory\"\r\n      title: \"Fallback directory\"\r\n</pre>\r\n![image](https://cloud.githubusercontent.com/assets/13133504/8614195/75580e70-26e7-11e5-969c-c5c4dd8a80f1.png)\r\n\r\n\r\nAnd then use it somewhere in the code for finding the file?\r\nThis is the part I'm not sure what to do, therefore I'm leaving that up to someone else.  :)"},"comment":{"url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/comments/124713938","html_url":"https://github.com/klorenz/atom-open-plus/issues/13#issuecomment-124713938","issue_url":"https://api.github.com/repos/klorenz/atom-open-plus/issues/13","id":124713938,"user":{"login":"klorenz","id":633700,"avatar_url":"https://avatars.githubusercontent.com/u/633700?v=3","gravatar_id":"","url":"https://api.github.com/users/klorenz","html_url":"https://github.com/klorenz","followers_url":"https://api.github.com/users/klorenz/followers","following_url":"https://api.github.com/users/klorenz/following{/other_user}","gists_url":"https://api.github.com/users/klorenz/gists{/gist_id}","starred_url":"https://api.github.com/users/klorenz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/klorenz/subscriptions","organizations_url":"https://api.github.com/users/klorenz/orgs","repos_url":"https://api.github.com/users/klorenz/repos","events_url":"https://api.github.com/users/klorenz/events{/privacy}","received_events_url":"https://api.github.com/users/klorenz/received_events","type":"User","site_admin":false},"created_at":"2015-07-24T20:36:45Z","updated_at":"2015-07-24T20:36:45Z","body":"Hi Flonker,\r\n\r\nwhat do you think of:\r\n\r\nif file cannot be found up to root and file is not part of project root directories, then look into project root directories to resolve relative filename.\r\n\r\n?"}}