Gennadiy X

Results 29 comments of Gennadiy X

> And your definition of binary is...what? 1. It contains NUL character somewhere in the middle of the file. 2. When the chunk of the file is decoded to a...

> Would you do a pre-test of the file, before it is loaded (as normal into an invisible view, to prep for searching) to determine binary/text? I have to do...

Actually, I have one more idea about binary file detection: > 1. It contains NUL character somewhere in the middle of the file. > 2. When the chunk of the...

> > We can filter out some commonly known binary extensions like .exe, .dll, .mp4, etc. Also, this could be a separate feature - "exclude extensions". > > I wonder...

Just 2 more cents about the "Advanced..." UI options: Visual Studio search has the expanding sections and the [...] button that allows more fine-grained tuning. 1. collapsed ![image](https://user-images.githubusercontent.com/9664141/106804849-98beaa00-666e-11eb-9334-7f0b0ba4062e.png) 2. expanded...

But in this issue, I'd rather concentrate on a single checkbox `Search binary files`, and the detection of binary files.

> I'd just like to point out that classifying files with NUL characters as binary is a poor choice because many Unicode files contain NUL as every other byte. That...

> @mere-human could you elaborate this ? > > > When the chunk of the file is decoded to a string, its length doesn't correspond to the byte length (considering...

> I played with your Vista+ IFileDialog based N++ file Open/Save dialogs stuff, but could not find an equivalent of the [OFN_NOVALIDATE](https://learn.microsoft.com/en-us/windows/win32/api/commdlg/ns-commdlg-openfilenamea) flag, which I need for support of the...

I tried recording a macro that adds several lines of text and then saves a file. I ran it a couple thousand times. Sometimes I also pasted text from clipboard....