Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open file from project in any level (recursively) #144

Open
rflw opened this issue Apr 29, 2017 · 1 comment
Open

Open file from project in any level (recursively) #144

rflw opened this issue Apr 29, 2017 · 1 comment

Comments

@rflw
Copy link

rflw commented Apr 29, 2017

Is there a way to search a file in subdirectories (in any level) recursively?
The default action is searching in the root directory but I can also specify a subdirectory (when I know where the file is located).

@Osmose
Copy link
Owner

Osmose commented Apr 30, 2017

Not right now, no. I'd accept a PR that added the feature provided it can be performant, though.

The idea is close to what the built-in fuzzy-finder provides, except without the "add project folder" step. But adding a project folder helps signal to atom that it should index the project folder for faster searching, which is why it works so fast.

We don't really know at a glance just how deep a subdirectory tree goes, and just having a checkbox to enable subdirectory search would probably lead to a bunch of slowness. We could mark directories as "indexable" with either a button or file in the directory, but I don't like the idea of managing that stored index in perpetuity, nor am I a fan of littering the filesystem with special markers. It'd be neat if maybe we could get access to existing fuzzy-finder indexes, but I doubt that's easy.

@mythmon suggested a special symbol to type in the search box for triggering this kind of behavior, but advanced-new-file had special syntax like that and it wasn't very discoverable or maintainable. He also suggested a keyboard shortcut for switching to a subdirectory search, which isn't a bad idea. It still has the on-the-fly indexing issue, but at least you choose when to do it, so you can avoid doing it in directories that will take too long to search.

Thanks for the suggestion!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants