Difference between revisions of "ThreadSearch plugin"

From Code::Blocks
Line 2: Line 2:
 
{{Infobox_Plugin|
 
{{Infobox_Plugin|
 
   name = Thread search |
 
   name = Thread search |
   developer = [[User:Jérôme ANTOINE]] |
+
  logo = [[Image:ThreadSearch.png]] |
 +
   developer = [[User:dje|Jérôme ANTOINE]] |
 
   maintainer = Jérôme ANTOINE |
 
   maintainer = Jérôme ANTOINE |
 
   version = 0.7
 
   version = 0.7
Line 22: Line 23:
 
=== Why ? ===
 
=== Why ? ===
 
<ul>
 
<ul>
<li>The default ''Search in files'' displays a blocking dialog I worked on a project that was big enough to take 6 minutes to search all files</li>
+
<li>The default ''Search in files'' displays a blocking dialog. Being blocked for 6 minutes is unpleasant.
<li></li>
+
Workaround was to run 2 Code::Blocks instances.</li>
<li>The default </li>
+
<li>The default ''Search in files'' automatically move to first occurrence. Current edition situation is lost, either a new editor is open or cursor is moved.</li>
 +
<li>The line containing search expression may be senseless without its context, forcing user to open the file to browse the result.</li>
 +
<li>Impossibility to search in files both in workspace and other directory.</li>
 
<li>I love Code::Blocks and I wanted to bring my contribution.</li>
 
<li>I love Code::Blocks and I wanted to bring my contribution.</li>
 
</ul>
 
</ul>
    * I am working on very big projects (700 Mo of cpp, h files) and text searches take up to 5 minutes. It is very frustrating being blocked because of the search. It is now possible to continue editing code during searches.
 
    * I do not like leaving the editor position to browse 'Search in files' resuts. There is now the 'Code preview' to do this with possibility to open the file at the right position.
 
  
  
 
=== Configuration ===
 
=== Configuration ===
 +
To access '''ThreadSearch''' plugin configuration panel click on:
 +
<ol>
 +
<li>''Options'' button on Messages notebook ''Thread search'' panel.</li>
 +
<li>''Options'' button on ''Thread search'' toolbar.</li>
 +
<li>''Settings/Environment'' menu item and then on the ''Thread search'' item on the left columns</li>
 +
</ol>
 +
Note :
 +
items 1 and 2 may not be available according to current configuration.
 +
 +
That is what appears:
 +
[[Image:MainAndOptions.png]]
  
  
 
=== Usage ===
 
=== Usage ===
 
Once the plugin is installed, there are 4 ways to run a search :
 
Once the plugin is installed, there are 4 ways to run a search :
<ul>
+
<ol>
 
<li>Type/Select a word in the search combo box and press enter or click on ''Search'' on the ''Thread search'' panel of the Messages notebook</li>
 
<li>Type/Select a word in the search combo box and press enter or click on ''Search'' on the ''Thread search'' panel of the Messages notebook</li>
 
<li>Type/Select a word in the toolbar search combo box and press enter or click on ''Search'' button</li>
 
<li>Type/Select a word in the toolbar search combo box and press enter or click on ''Search'' button</li>
 
<li>Right click on any 'word' in active editor and click on ''Find occurrences of 'word' ''</li>
 
<li>Right click on any 'word' in active editor and click on ''Find occurrences of 'word' ''</li>
 
<li>Click on Search/Thread search in the toolbar to search for current word in active editor</li>
 
<li>Click on Search/Thread search in the toolbar to search for current word in active editor</li>
</ul>
+
</ol>
 
+
Note :
The toolbar,
+
items 1, 2 and 3 may not be available according to current configuration.

Revision as of 15:03, 1 July 2007

Thread search
ThreadSearch.png
Developer(s): Jérôme ANTOINE
Maintainer(s): Jérôme ANTOINE
Version: 0.7

ThreadSearch

Features

ThreadSearch plugin offers the following features:

  • multi-threaded "Search in files"
  • internal read-only editor to preview the results
  • file open in editors notebook
  • highly configurable
  • contextual menu "Find occurrences" to start a search in files with the word under cursor


Why ?

  • The default Search in files displays a blocking dialog. Being blocked for 6 minutes is unpleasant. Workaround was to run 2 Code::Blocks instances.
  • The default Search in files automatically move to first occurrence. Current edition situation is lost, either a new editor is open or cursor is moved.
  • The line containing search expression may be senseless without its context, forcing user to open the file to browse the result.
  • Impossibility to search in files both in workspace and other directory.
  • I love Code::Blocks and I wanted to bring my contribution.


Configuration

To access ThreadSearch plugin configuration panel click on:

  1. Options button on Messages notebook Thread search panel.
  2. Options button on Thread search toolbar.
  3. Settings/Environment menu item and then on the Thread search item on the left columns

Note : items 1 and 2 may not be available according to current configuration.

That is what appears: File:MainAndOptions.png


Usage

Once the plugin is installed, there are 4 ways to run a search :

  1. Type/Select a word in the search combo box and press enter or click on Search on the Thread search panel of the Messages notebook
  2. Type/Select a word in the toolbar search combo box and press enter or click on Search button
  3. Right click on any 'word' in active editor and click on Find occurrences of 'word'
  4. Click on Search/Thread search in the toolbar to search for current word in active editor

Note : items 1, 2 and 3 may not be available according to current configuration.