mirror of
				https://github.com/wting/autojump
				synced 2025-06-13 12:54:07 +00:00 
			
		
		
		
	clarify detect_smartcase docstring
This commit is contained in:
		
							parent
							
								
									b695cc3f7d
								
							
						
					
					
						commit
						1472b417c3
					
				| @ -191,6 +191,14 @@ def decrease_path(config, path, increment=15): | ||||
|     return path, data[path] | ||||
| 
 | ||||
| 
 | ||||
| def detect_smartcase(needles): | ||||
|     """ | ||||
|     If any needles contain an uppercase letter then use case sensitive | ||||
|     searching. Otherwise use case insensitive searching. | ||||
|     """ | ||||
|     return not any(imap(has_uppercase, needles)) | ||||
| 
 | ||||
| 
 | ||||
| def find_matches(config, needles, count=1): | ||||
|     """Return [count] paths matching needles.""" | ||||
|     entriefy = lambda tup: Entry(*tup) | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user