Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
ThreadSearch plugin 0.6 release
dje:
Hi all !
I took time but I'm proud to release ThreadSearch plugin 0.6 :D
It runs finally both on Windows AND Linux (I can not test on other OSs but sources are available :))
Stability is improved a lot.
--- Quote from: dje on March 13, 2007, 09:52:46 pm ---The "ThreadSearch" plugin offers the following features:
* multi-threaded "Search in files"
* preview of the results (left single click on log window)
* file open (left double click on log window)
* check boxes instead of radio boxes to allow searches with both project and directories for example.
* contextual menu "Find occurrences" to start a search in files with the word under cursor (can be activated or not)
Why ?
* 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.
--- End quote ---
I massively rewrote the code to solve major problems, ie application hanging on cancel, crash and GUI problems on Linux.
I rewrote my own search classes to avoid the use of GUI items in the worker thread and I use a shared queue in the main thread to cancel quickly a search.
@eranif thanks for your proposition, but I had already rewritten the code when you posted it
--- Quote from: eranif on April 07, 2007, 03:11:39 am ---Hi dje!,
I recently developed a search thread that supports the following:
- match case
- match whole word
- regular expression
- file extensions
- events and easy interface with the main thread
Source code (5 sources + 1 sample):
http://www.eistware.com/st/SearchThread.zip
--- End quote ---
What's new:
* Runs on Linux
* GUI correction on Linux (preview window took more place than available in the notebook page)
* Bug correction by Jamie : the file was not reloaded in the preview window when externally modified
* No crash on very long search (form the root of wxWidgets for example)
* Application does not hang any more on find Cancel
* Added the possibility to hide/show columns header in list control to spare space
* Added the possibility to draw lines to separate columns in list control
* Minor bugs corrections
Limitations :
* On Windows, I put the full path of the files in a small column because tooltips gives it. It does not work on Linux (no tooltip).
* For sure, when user choose to hide list control column headers, colums cannot be resized.
Installation :
* Download the following files:
Windows ThreadSearch 0.6 plugin or Linux (Ubuntu) ThreadSearch 0.6 plugin, ThreadSearch.png and ThreadSearch-off.png
* Copy and paste the downloaded pngs in the <...>\CodeBlocks\share\CodeBlocks\images\settings directory
* Click on Plugins/Manage plugins
* Click on Install new and select the downloaded plugin
To build the plugin, extract the source code in src\plugins\contrib\ThreadSearch, open the CodeBlocks project and build it. The .cbplugin is generated in src\plugins\contrib\ThreadSearch and is ready for install.
Thanks to Pecan to inform me on wxListCtrl problems on Linux. Now my code runs on Linux (at least on Ubuntu :))
Thanks to Jamie for code propositions/corrections.
Thanks to users for suggestions and congratulations. They are really appreciated !
I'll write a status concerning future evolutions.
Dje
MortenMacFly:
Just for the record: Where are the sources again? As usual the binary is not compatible with my version of C::B... :-( I guess I missed something...?!
With regards, Morten.
dje:
Oups, I forgot the sources link :oops:
It still GPLed !
ThreadSearch 0.6 sources
--- Quote ---As usual the binary is not compatible with my version of C::B...
--- End quote ---
The same problem remains... Binary is provided for latest nightly but does not work with debugging environment.
I began working on it but it is not finished. A new target has appeared in the project for debug.
You have to link with the debug static lib instead of the dlls.
Sorry,
Dje
dje:
Hi all !
--- Quote ---News: Better no news than bad news :wink:
--- End quote ---
No feedback... Does it mean that everything is OK both on Windows and Linux, that this plugin is not interesting or that the weather is too beautiful for developping ?
Dje
MortenMacFly:
--- Quote from: dje on April 26, 2007, 01:48:47 pm ---No feedback... Does it mean that everything is OK [...]
--- End quote ---
Ooops - sorry, I missed that you had posted the sources... compiling now... ;-)
Navigation
[0] Message Index
[#] Next page
Go to full version