Sublime Forum

Filtering dirs in Ctrl+P

#1

Hi, I just give a try to Sublime. I like it, but I have still many problems with it. One which is more important for me is how to find files in quick open from project (Ctrl+P) window by directory.

Now when I type:
“app”
it shows:
application_controller.rb
application_users.rb
etc

I need it to filter it like it (example):
app/models/file.rb
app/helpers/file.rb
app/models/file.rb
application_controller.rb
application_users.rb

And like it:
“app/”
**app/**models/file.rb
**app/**helpers/file.rb
**app/**models/file.rb

Is it possible?
Thanks.

0 Likes

#2

You can use a backslash after the name, so searching for “app” will select all directories named app.

0 Likes

#3

Is there a guide on how to use pattern matching in CTRL+P somewhere? For example, can I match partial directory names or do I always have to know the full directory name? It would be useful to show all files with a certain name constrained to all folders that begins with a certain string.

0 Likes