feat(wpcarro/emacs): Pass --{hidden,follow} flags to rg
These are useful defaults. Change-Id: Ife4a7f559c9599ba3b846eea7e757266afd7ceae Reviewed-on: https://cl.tvl.fyi/c/depot/+/4805 Tested-by: BuildkiteCI Reviewed-by: wpcarro <wpcarro@gmail.com> Autosubmit: wpcarro <wpcarro@gmail.com>
This commit is contained in:
		
							parent
							
								
									07d1f9449b
								
							
						
					
					
						commit
						e0dbc1ae59
					
				
					 1 changed files with 5 additions and 6 deletions
				
			
		|  | @ -272,12 +272,11 @@ | |||
|           (setq deadgrep--additional-flags '("--multiline")) | ||||
|           (wpc-misc-deadgrep-region) | ||||
|         (call-interactively #'deadgrep)))) | ||||
|   (advice-add | ||||
|    'deadgrep--format-command | ||||
|    :filter-return | ||||
|    (lambda (cmd) | ||||
|      (replace-regexp-in-string | ||||
|       "^rg " "rg --hidden " cmd)))) | ||||
|   (advice-add 'deadgrep--arguments | ||||
|               :filter-return | ||||
|               (lambda (args) | ||||
|                 (push "--hidden" args) | ||||
|                 (push "--follow" args)))) | ||||
| 
 | ||||
| ;; TODO: Do I need this when I have swiper? | ||||
| (use-package counsel) | ||||
|  |  | |||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue