History log of /haiku/src/apps/text_search/FileIterator.cpp
Revision Date Author Comments
# 3f816b03 15-Jun-2021 Jérôme Duval <jerome.duval@gmail.com>

TextSearch: only grep files

fix #17012

Change-Id: Id721ec57945d9a57824ae53bf591d0e09a2b53f3
Reviewed-on: https://review.haiku-os.org/c/haiku/+/4094
Reviewed-by: Rene Gollent <rene@gollent.com>


# 878f1479 05-Oct-2016 Humdinger <humdingerb@gmail.com>

Allow TextSearch to grep XHTML files

...while the setting "Text files only" is active.
Fixes #12539.

Once users are able to set supported MIME types on packaged apps
(which are read-only), it might be a good idea to have TextSearch
check its supported MIME types and examine the target files accordingly.


# 823808b5 21-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* If you only want to search in text files, TextSearch will now guess the MIME
type if a file doesn't have one yet (and set it), instead of ignoring it
completely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33694 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 68450777 04-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Refactoring
* FileIterator is now a mostly abstract interface
* FolderIterator is the currently only implementation (there could be
MessageIterator for an even better separation, which would read the top
level search folders from the BMessage with the selected poses, but it
would mostly use the same code for traversing the subfolders anyways so I
left that for the time being.)
* The Grepper and FolderIterator now copy the current settings from the Model
at instantiation. Since they run in a separate thread and the Model may
actually be changed from the Window thread, I think this is just a cleaner
and more safe solution.
* Cleanup here and there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26786 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fffad3f 03-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Refactored a new class FileIterator from Grepper that will make adding
node monitoring easier. Also, FileIterator will be split to make the code
cleaner with regards to folder or selection mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26752 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 823808b52bb5514961debc0558c26dbd51765b42 21-Oct-2009 Axel Dörfler <axeld@pinc-software.de>

* If you only want to search in text files, TextSearch will now guess the MIME
type if a file doesn't have one yet (and set it), instead of ignoring it
completely.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@33694 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 684507777be0a6a0acbbc67ed1bf60ce299e7dd1 04-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Refactoring
* FileIterator is now a mostly abstract interface
* FolderIterator is the currently only implementation (there could be
MessageIterator for an even better separation, which would read the top
level search folders from the BMessage with the selected poses, but it
would mostly use the same code for traversing the subfolders anyways so I
left that for the time being.)
* The Grepper and FolderIterator now copy the current settings from the Model
at instantiation. Since they run in a separate thread and the Model may
actually be changed from the Window thread, I think this is just a cleaner
and more safe solution.
* Cleanup here and there.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26786 a95241bf-73f2-0310-859d-f6bbb57e9c96


# 1fffad3f437a224769ce48659db1eaadfb5deeeb 03-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Refactored a new class FileIterator from Grepper that will make adding
node monitoring easier. Also, FileIterator will be split to make the code
cleaner with regards to folder or selection mode.


git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@26752 a95241bf-73f2-0310-859d-f6bbb57e9c96