History log of /haiku/src/apps/text_search/GrepWindow.h
Revision Date Author Comments
# 2775737e 19-Jul-2020 Kacper Kasper <kacperkasper@gmail.com>

TextSearch: add option to set target to parent directory

Two usage scenarios:

* Wrong directory selected when invoking as Tracker add-on.
I often find myself having TextSearch invoked on selected child,
when I wanted it to open in parent context.
* Result was not found in target directory, so maybe the search
should be broader.

Change-Id: I2621f3cec7459572ddae438de4ba42ce74432e28
Reviewed-on: https://review.haiku-os.org/c/haiku/+/3044
Reviewed-by: humdinger <humdingerb@gmail.com>


# b3fd8cd8 16-Dec-2018 Humdinger <humdingerb@gmail.com>

TextSearch: don't hard-code Pe editor

When double-clicking a result in TextSearch, it opens the file with
the preferred application for that file type. In case you search
through e.g. a HTML file, that would be most probably WebPositive,
which is not what you want normally.

TextSearch has the setting "Open files in Pe" which forces all files
to be opened in the Pe editor.

With this change, it will force the files to be opened in the
preferred app for text/x-source-code.

Change-Id: I0920a5f2497c01b16be0ac7563fbab942b67ef24
Reviewed-on: https://review.haiku-os.org/769
Reviewed-by: waddlesplash <waddlesplash@gmail.com>


# 653c7676 07-Nov-2017 Philippe Houdoin <philippe.houdoin@gmail.com>

TextSearch: several small improvements

* Wakeup periodically search thread, cancelling should be
more responsive now...
* Show Lines setting is now saved too
* Fix a bug, current file is display again while searching.
* Always pass line number, if any, to invoked app.
Works with StyledEdit as with Pe.

Partially fix #13289.
Another change will add "open with" context menu and remove "Open with Pe".


# 33d4c8a6 06-Nov-2017 Philippe Houdoin <philippe.houdoin@gmail.com>

TextSearch: way speeder by using xargs + grep

* Previously, each file was starting a shell to run grep
command on it. Very suboptimal performance, big overhead.
* Now a thread write each file path to xargs input,
while another start xargs, let it distribute files on
grep processes (one per cpu) and collect results asap.
* This bring results way faster than previously.
* Rename Escape Text setting into Regular Expression, as
name was more after shell workaround than after function.
* While it doesn't use a native text searching, by
reusing both grep and xargs power, it answer the main
issue with #9529.


# f8f8d2bb 01-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

Revert "TextSearch: use BString-based searching instead of Grep-based."

This reverts commit 1e9f5f5be4c8419c2085f51c78c9ac02ef13377b.
As per discussion on the ML.


# 1e9f5f5b 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: use BString-based searching instead of Grep-based.

Huge performance improvement. Fixes #9529.


# 90ce3113 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: normalize copyright headers.


# 696f4254 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: trim trailing whitespace.


# 05840b4c 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: don't save the 'show contents' option.

Also get rid of the redundant menu option.


# 4c56a102 28-Jan-2014 Humdinger <humdingerb@gmail.com>

Truncate names of files/folders that are being grep'ed


# 11c7ff53 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

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


# be8fa2fb 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# de1057ee 29-Jun-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Add DoCatalogs call for dstcheck
* Patch by Jorma Karvonnen with some tweaks from me : localize TextSearch


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


# 28fd262f 06-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Stop node monitoring when the model changes.


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


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

Finished implementing and enabled node monitoring on the folders and files
of the current search. If new files match the pattern, the appear in the
results, or are removed if they don't match anymore. The results also
adapt to changes in the files.
Basically, I added another iterator that is also used to track changes when
node monitor events arrive. Only those changed files are grepped again after
a timeout of .5 seconds when no new node monitor events pour in.


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


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

Intermediate commit, because I want to rename FolderIterator but it has changes.
* Beginnings of node monitoring support. Currently disabled, but detects
new, changed and removed files. Folders untested yet. There may also be
a problem with the toplevel folders when a pose selection message is used.
That's untested too as of yet.
* Removed some superfluous whitespace.
* Small refactoring in FolderIterator to access some stuff from the outside
as well.


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


# edf2516d 02-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Moved TextSearch to apps folder, since it's actually a regular app.


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


# f8f8d2bbece9d16213f5bab86584502bee94a22a 01-Apr-2015 Augustin Cavalier <waddlesplash@gmail.com>

Revert "TextSearch: use BString-based searching instead of Grep-based."

This reverts commit 1e9f5f5be4c8419c2085f51c78c9ac02ef13377b.
As per discussion on the ML.


# 1e9f5f5be4c8419c2085f51c78c9ac02ef13377b 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: use BString-based searching instead of Grep-based.

Huge performance improvement. Fixes #9529.


# 90ce3113565f4be9dfbf7cf4e17d00e62d43810b 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: normalize copyright headers.


# 696f4254ca7f5a847d2f8f6fdbdd39ec11581ca3 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: trim trailing whitespace.


# 05840b4c2a30d02e26feb69279475ce6ba91ce46 31-Mar-2015 Augustin Cavalier <waddlesplash@gmail.com>

TextSearch: don't save the 'show contents' option.

Also get rid of the redundant menu option.


# 4c56a102ca3b2345953ae9f30701d8f074ecd2c2 28-Jan-2014 Humdinger <humdingerb@gmail.com>

Truncate names of files/folders that are being grep'ed


# 11c7ff531a01b64773d8a8f0e02c1c7c9f27ca29 25-Mar-2011 Jonas Sundström <jonas@kirilla.com>

Removing most About windows and menu items as discussed here
http://www.freelists.org/post/haiku-commits/r40968-in-haikutrunksrcapps-activitymonitor-bootmanager-charactermap-codycam-deskbar,3
Leaving them for now in replicants, and in Terminal, according to (my interpretation of) the instructions here
http://dev.haiku-os.org/browser/haiku/trunk/src/apps/terminal/README.GPL_to_OBOS#L70
Some sporadic cleanup.

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


# be8fa2fb3088ab1921612b60f352dd9334b40b3d 02-Jul-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Update all applications in tree to use the new localizing system
* Remove the old one from the locale librairy, with some cleanup
Known regressions :
* readonlybootprompt will no longer update the locale settings : the
method used messed with internal undocumented things
* external localized apps (webpositive for example) will not run
anymore.


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


# de1057eeb1a033bfb4d0ffb9e8eee6b937d7ec7d 29-Jun-2010 Adrien Destugues <pulkomandy@pulkomandy.ath.cx>

* Add DoCatalogs call for dstcheck
* Patch by Jorma Karvonnen with some tweaks from me : localize TextSearch


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


# 28fd262f0e0587e6506e47c5ae02ea7835f40b5c 06-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Stop node monitoring when the model changes.


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


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

Finished implementing and enabled node monitoring on the folders and files
of the current search. If new files match the pattern, the appear in the
results, or are removed if they don't match anymore. The results also
adapt to changes in the files.
Basically, I added another iterator that is also used to track changes when
node monitor events arrive. Only those changed files are grepped again after
a timeout of .5 seconds when no new node monitor events pour in.


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


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

Intermediate commit, because I want to rename FolderIterator but it has changes.
* Beginnings of node monitoring support. Currently disabled, but detects
new, changed and removed files. Folders untested yet. There may also be
a problem with the toplevel folders when a pose selection message is used.
That's untested too as of yet.
* Removed some superfluous whitespace.
* Small refactoring in FolderIterator to access some stuff from the outside
as well.


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


# edf2516d608ceca834fcb09d2a8a0be39c6c7c36 02-Aug-2008 Stephan Aßmus <superstippi@gmx.de>

Moved TextSearch to apps folder, since it's actually a regular app.


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