Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development

ThreadSearch plugin is born !

<< < (3/12) > >>

MortenMacFly:
Sorry for being dumb, but where do I actually access the plugin? It did compile/load fine now, but I can't see any menu for this feature...?! What am I missing?!
With regards, Morten.

dje:
Hi !


--- Quote ---where do I actually access the plugin?
--- End quote ---

In the view menu, there is a 'Thread search' entry that makes a 'Thread search' panel appears in the Messages notebook.

Another solution is to open a file and right-click on it; by default, a 'Find occurrences of' entry is added below the 'Find implementation of' entry. This allows running a search of the word under cursor.

Searches history is stored in the combo box; it can also be used to run searches.

To configure it, you can go to the 'Settings/Environment' panel and go at the bottom or click on the 'Options' button of the panel.



--- Quote ---would be nice that we could somehow also put the png's in that package so they also get installed automatically
--- End quote ---
I asked for this in another thread; the manifest file is should be used for this but it is not implemented for now.

Dje

MortenMacFly:

--- Quote from: dje on March 14, 2007, 08:20:00 am ---In the view menu, there is a 'Thread search' entry that makes a 'Thread search' panel appears in the Messages notebook.

--- End quote ---
Ah sorry - I have been blind. So I've tested it a little and I'm  quite impressed! Nicely done! :D
Hence there are a few points I'd like to state:
1.) The GUI looks pretty broken (as you can see on the first screenshot attached) if C::B isn't maximised
2.) (For the future) a menu entry in the "Search" menu would be nice - that's where I would have expected the functionality. I guess it's enough activating and switching to the panel when clicking on that menu entry.
3.) Displaying the found item in another editor next to the search results is nice in principle, but I believe with most layouts of C::B this won't be of much help as the editor window is just too small. Why not opening a "big" (usual) editor instead (I guess you have reasons for that)?
4.) If you enable the "dir items" things get worse for me. I usually keep the message panel quite small and then it looks like the other screenshot attached. I'm not sure how to handle this any better... But: If this goes to core all worries are gone because then it would replace the current find dialog.

In the end that's all I have to say. I think it's great... no, wait a second: it's GREAT! ;-) Very fast search, nicely presented / configurable... well done! My worries above maybe a point for discussion but I believe they are minor in the end.

With regards, Morten.

[attachment deleted by admin]

dje:
First, thanks for congratulations !


--- Quote ---The GUI looks pretty broken
--- End quote ---
It's true I systematically use C::B in maximised mode; I'll try to find how to add scroll bars (does not seem too difficult) but more space will be wasted whereas they appear because of the few available space...
There no miracle but 50'' screen  :)


--- Quote ---I guess it's enough activating and switching to the panel when clicking on that menu entry.

--- End quote ---
Yes, I'll add another menu entry in the Search menu with the same event ID as in the view menu.
Is this what you mean ?


--- Quote ---Why not opening a "big" (usual) editor instead (I guess you have reasons for that)?
--- End quote ---
Yes, I have  :D
In fact, when I read code, I often search for items but leaving my current position to switch to another place in the same file bores me a lot : where was I in this wonderful 20000 lines file I got back :evil:
Another thing, I often need to browse method calls to see how it works and the use context. But I want to keep the editor I am working on in the same state. In this case, I either change Messages notebook size or I play (a lot) with F2 to switch Messages notebook visibility : far more efficient !
Note that single click on a result line previews the code whereas double click opens a "big" (usual) editor


--- Quote ---If you enable the "dir items" things get worse for me. I usually keep the message panel quite small and then it looks like the other screenshot attached. I'm not sure how to handle this any better...
--- End quote ---
I was aware of this problem, that's why there is the 'Hid dir items' button. Data are managed but you spare one line of controls space. You do not need to display dirs items to perform search in directories.

Dje

MortenMacFly:

--- Quote from: dje on March 14, 2007, 10:35:07 am ---Yes, I'll add another menu entry in the Search menu with the same event ID as in the view menu.
Is this what you mean ?

--- End quote ---
Yes, exactly. ;-)


--- Quote from: dje on March 14, 2007, 10:35:07 am ---In fact, when I read code, I often search for items but leaving my current position to switch to another place in the same file bores me a lot : where was I in this wonderful 20000 lines file I got back :evil:

--- End quote ---
I understand - BTW: I'm using the bookmark feature for that purposes. But I agree this can be annoying.


--- Quote from: dje on March 14, 2007, 10:35:07 am ---with F2 to switch Messages notebook visibility : far more efficient !

--- End quote ---
Ok then. The only thing that worries me (haven't tried yet) are those "mini" editors writable? Because that would be evil! You would have to take care about syncing with any other open editor of the same file. If this is not already done: Please make the mini editors at least read-only.


--- Quote from: dje on March 14, 2007, 10:35:07 am ---Note that single click on a result line previews the code whereas double click opens a "big" (usual) editor

--- End quote ---
Oh great! I didn't try - and yes, it works! 8)


--- Quote from: dje on March 14, 2007, 10:35:07 am ---You do not need to display dirs items to perform search in directories.

--- End quote ---
That's right... maybe what you had said above with the scrollbars would be another option. But in the end I think when it comes down to replacing the "old" find dialog with this one you might not need all that control functionality in the panel and/or enable toggling visibility of certain settings even more options.

With regards, Morten.

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version