{"action":"created","issue":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/787","labels_url":"https://api.github.com/repos/bbatsov/projectile/issues/787/labels{/name}","comments_url":"https://api.github.com/repos/bbatsov/projectile/issues/787/comments","events_url":"https://api.github.com/repos/bbatsov/projectile/issues/787/events","html_url":"https://github.com/bbatsov/projectile/issues/787","id":91647871,"number":787,"title":"Shortcut for find file in subdirectory","user":{"login":"duff","id":2437,"avatar_url":"https://avatars.githubusercontent.com/u/2437?v=3","gravatar_id":"","url":"https://api.github.com/users/duff","html_url":"https://github.com/duff","followers_url":"https://api.github.com/users/duff/followers","following_url":"https://api.github.com/users/duff/following{/other_user}","gists_url":"https://api.github.com/users/duff/gists{/gist_id}","starred_url":"https://api.github.com/users/duff/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/duff/subscriptions","organizations_url":"https://api.github.com/users/duff/orgs","repos_url":"https://api.github.com/users/duff/repos","events_url":"https://api.github.com/users/duff/events{/privacy}","received_events_url":"https://api.github.com/users/duff/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":2,"created_at":"2015-06-28T22:00:42Z","updated_at":"2015-07-13T06:20:01Z","closed_at":null,"body":"Hi,\r\n\r\nI have a keyboard shortcut setup to run `projectile-find-file` and it works wonderfully.  I was wondering if there might be a way to setup a few other shortcuts such that I can easily search over a subset of the files in a project rather than across the entire project.  So, for example, I'd love a shortcut to `projectile-find-file` that only looks in the `lib/` directory.  I'd love another one to only look in the `tests/` directory.\r\n\r\nI know about `projectile-find-file-in-directory`, but that prompts me for a directory.  I'd like to be able to hookup some shortcuts to hard coded locations since I know before I'm going to find a file if it's a model, a test, a lib file, etc.\r\n\r\nWhen I used to use Ctrl-P in Vim, I could setup shortcuts like this:\r\n\r\n```\r\nnnoremap <leader><leader>m :CtrlP app/models<cr>\r\nnnoremap <leader><leader>v :CtrlP app/views<cr>\r\nnnoremap <leader><leader>c :CtrlP app/controllers<cr>\r\nnnoremap <leader><leader>l :CtrlP lib<cr>\r\nnnoremap <leader><leader>u :CtrlP test<cr>\r\n```\r\n\r\nMight there be some way to do something similar in Projectile?  I thought I'd check here in case there was an ability I might be missing.  I've even tried creating a function in which I attempted to call `projectile-find-file` and then send keys to the minibuffer containing the directory prefix, but I haven't been successful as of yet in getting that to work.\r\n\r\nMight you have any ideas as to where I might look to do something like this?\r\n\r\nThanks so much for projectile!  I'm loving it."},"comment":{"url":"https://api.github.com/repos/bbatsov/projectile/issues/comments/120825299","html_url":"https://github.com/bbatsov/projectile/issues/787#issuecomment-120825299","issue_url":"https://api.github.com/repos/bbatsov/projectile/issues/787","id":120825299,"user":{"login":"bbatsov","id":103882,"avatar_url":"https://avatars.githubusercontent.com/u/103882?v=3","gravatar_id":"","url":"https://api.github.com/users/bbatsov","html_url":"https://github.com/bbatsov","followers_url":"https://api.github.com/users/bbatsov/followers","following_url":"https://api.github.com/users/bbatsov/following{/other_user}","gists_url":"https://api.github.com/users/bbatsov/gists{/gist_id}","starred_url":"https://api.github.com/users/bbatsov/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bbatsov/subscriptions","organizations_url":"https://api.github.com/users/bbatsov/orgs","repos_url":"https://api.github.com/users/bbatsov/repos","events_url":"https://api.github.com/users/bbatsov/events{/privacy}","received_events_url":"https://api.github.com/users/bbatsov/received_events","type":"User","site_admin":false},"created_at":"2015-07-13T06:20:01Z","updated_at":"2015-07-13T06:20:01Z","body":"Btw, there's also https://github.com/asok/projectile-rails"}}