{"issue":{"title":"\"Deep Find\"","user":{"login":"benjamingeiger","id":810480,"url":"https://api.github.com/users/benjamingeiger","gravatar_id":"ac8a6df6690939dc6146729cac66f380","avatar_url":"https://secure.gravatar.com/avatar/ac8a6df6690939dc6146729cac66f380?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-06-15T22:04:49Z","milestone":null,"labels":[],"state":"closed","updated_at":"2011-12-27T22:32:28Z","id":1064230,"pull_request":{"patch_url":"https://github.com/scrooloose/nerdtree/pull/72.patch","html_url":"https://github.com/scrooloose/nerdtree/pull/72","diff_url":"https://github.com/scrooloose/nerdtree/pull/72.diff"},"closed_at":"2011-12-27T22:32:28Z","html_url":"https://github.com/scrooloose/nerdtree/issues/72","body":"In my Rails workflow, I open vim from the top level directory of the source tree. I want to keep the root of the tree there at all times. But I also want to use :NERDTreeFind so I don't have to dig down four or five levels to find a file.\r\n\r\nSo, I've implemented a feature I call \"deep find\", which does precisely that. If the current file is a descendant of the current directory, the tree opens rooted at the current directory but with the current file highlighted. (If the current file is not a descendant of the current directory, the command behaves as before.)\r\n\r\nI have also included a configuration variable (\"NERDTreeDeepFind\") to enable or disable the feature; it defaults to disabled.","number":72,"url":"https://api.github.com/repos/scrooloose/nerdtree/issues/72","comments":2,"assignee":null},"comment":{"user":{"login":"scrooloose","id":1671,"url":"https://api.github.com/users/scrooloose","gravatar_id":"3853788896fe7234d126dd3b7576d47a","avatar_url":"https://secure.gravatar.com/avatar/3853788896fe7234d126dd3b7576d47a?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png"},"created_at":"2011-12-27T22:32:28Z","updated_at":"2011-12-27T22:32:28Z","id":3286112,"body":"Hey guys, I have cherry-picked the first commit. For now I wont bother with an option to toggle the behaviour. If someone requests it then I may add an option to NERDTreeFind, e.g. NERDTreeFind -s[hallow].\r\n\r\nBTW, you should make sure you match the indent settings of the target source file when submitting patches - you were indenting with hard tabs and the script uses spaces.\r\n\r\nCheers :-)","url":"https://api.github.com/repos/scrooloose/nerdtree/issues/comments/3286112"},"action":"created"}