atom / find-and-replace

Find and replace in a single buffer and in the project
MIT License
241 stars 219 forks source link

Globs in path/directory not supported well #771

Open adamreisnz opened 8 years ago

adamreisnz commented 8 years ago

Maybe I am misusing this, but I would have expected a glob pattern like this to work:

client/app/**/modals/*

Instead, I get results from directories which are not in a modals subdirectory:

image

aymericbouzy commented 6 years ago

Another pattern that fails :

!foo and !+(foo) don't match files in foo folder, !(foo) does.

aymericbouzy commented 6 years ago

Could it be considered to offer users the possibility to use a regex rather than a glob pattern? Glob patterns are commonly used for files, but have a less well defined standard (see https://github.com/isaacs/minimatch#options : As an Atom user, I have no idea which options have been set, and I cannot modify them), which makes it harder to use.