mirror of
				https://github.com/godotengine/godot.git
				synced 2025-11-03 23:21:15 +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.
This commit is contained in:
		
							parent
							
								
									fd0775398b
								
							
						
					
					
						commit
						658b152bd8
					
				
					 1 changed files with 5 additions and 0 deletions
				
			
		| 
						 | 
				
			
			@ -228,6 +228,11 @@ void FindInFiles::_scan_dir(String path, PackedStringArray &out_folders) {
 | 
			
		|||
			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)
 | 
			
		||||
		if (file == "." || file == ".." || file.begins_with(".")) {
 | 
			
		||||
			continue;
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue