2

I would like to have some sort of ignorelist where I can add files which I do not want to search. You find `Find in Files* by second clicking Left-column in Documents view/tab.

My output for steeldriver's aswers

--exclude='*.aux' --exclude='*.bib' --exclude='*.log' 
--exclude='*.svg' --exclude='*.blg'

How can you ignore. aux files in Geany's Find in Files?

Léo Léopold Hertz 준영
  • 6,788
  • 29
  • 91
  • 193

1 Answers1

1

Geany appears to use grep under the hood for searching within files, and it provides an Extra options: field to pass additional arguments to the grep command. Hence you should simply be able to add --exclude='*.aux' in the box provided:

enter image description here

--exclude=GLOB
       Skip  files  whose  base  name  matches  GLOB  (using   wildcard
       matching).   A  file-name  glob  can  use  *,  ?,  and [...]  as
       wildcards, and \ to quote  a  wildcard  or  backslash  character
       literally.

See man grep for additional usage options.

steeldriver
  • 78,509
  • 12
  • 109
  • 152
  • So to exclude many `grep --exclude='*.aux,*.bib'`, right? I think Geany saves the Extra options there for the later use. – Léo Léopold Hertz 준영 May 31 '16 at 06:13
  • 1
    @Masi I don't believe grep currently supports pattern lists for the `--exclude` option; however you could supply multiple patterns like `--exclude='*.aux' --exclude='*.bib'`. Alternatively, use the `--exclude-from=file` facility. Check the grep manpages for your system. Yes the selection does appear to get saved in the geany.conf file (parameters `fif_extra_options` and `fif_use_extra_options`). – steeldriver May 31 '16 at 18:40