You've already forked godot
mirror of
https://github.com/godotengine/godot.git
synced 2025-11-16 14:00:40 +00:00
Make "Find in Files" searches ignore directories with .gdignore files in them
This pull request fixes an issue where searches using the "Find in Files" function would include folders with `.gdignore` files in them. The editor is supposed to ignore directories with these files in them altogether.
(cherry picked from commit 658b152bd8)
This commit is contained in:
committed by
Rémi Verschelde
parent
f4208ad1e8
commit
61d153a1fa
@@ -233,6 +233,11 @@ void FindInFiles::_scan_dir(String path, PoolStringArray &out_folders) {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// If there is a .gdignore file in the directory, don't bother searching it
|
||||||
|
if (file == ".gdignore") {
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
// Ignore special dirs (such as .git and .import)
|
// Ignore special dirs (such as .git and .import)
|
||||||
if (file == "." || file == ".." || file.begins_with(".")) {
|
if (file == "." || file == ".." || file.begins_with(".")) {
|
||||||
continue;
|
continue;
|
||||||
|
|||||||
Reference in New Issue
Block a user