johnturek / advanced-find

Automatically exported from code.google.com/p/advanced-find
0 stars 0 forks source link

exclude binary files #92

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. adjust 'Scope' to 'All Documents in Directory'
2. ensure there is a rather large binary file inside the searched directory
3. start a search

What is the expected output? What do you see instead?
- the output is as expected, except that there is a large delay until seeing 
it, depending on the size of the binary file(s)

What version of the product are you using? On what operating system?
- Linux Mint 14
- gedit 3.6.1
- Advanced Find/Replace 3.5.2

Please provide any additional information below.
- the problem can be solved currently by adding a filter that excludes the 
specific binary file(s)
- for example, if there are some theora videos in the directoy, one could 
exclude them by writing '-*.ogv' (without single quotes) in the 'Filter' field
- but, it would be better to automatically exclude all binary files by adding 
the '-I' switch to grep
- from the manual:

-I
Process a binary file as if it did not contain matching data; this is 
equivalent to the --binary-files=without-match option. 

--binary-files=TYPE
If the first few bytes of a file indicate that the file contains binary data, 
assume that the file is of type TYPE. By default, TYPE is binary, and grep 
normally outputs either a one-line message saying that a binary file matches, 
or no message if there is no match. If TYPE is without-match, grep assumes that 
a binary file does not match; this is equivalent to the -I option. If TYPE is 
text, grep processes a binary file as if it were text; this is equivalent to 
the -a option. Warning: grep --binary-files=text might output binary garbage, 
which can have nasty side effects if the output is a terminal and if the 
terminal driver interprets some of it as commands. 

Original issue reported on code.google.com by ir4o.o91...@gmail.com on 1 Feb 2013 at 1:57

GoogleCodeExporter commented 9 years ago
I will fix this.
Thanks for your information.

Original comment by swatch.c...@gmail.com on 3 Feb 2013 at 3:49

GoogleCodeExporter commented 9 years ago
Fixed at v3.5.3.

Original comment by swatch.c...@gmail.com on 31 Mar 2013 at 3:54

GoogleCodeExporter commented 9 years ago
Works! Thanks...

Original comment by ir4o.o91...@gmail.com on 2 Apr 2013 at 10:57