Page 1 of 3

Two new plugins: Workspace Search / Zoom Navigator

Posted: Wed Jan 23, 2013 1:37 am
by caibbor
the attached files contain source code to build these plugins. you'll still have to add the plugin directories to the configuration utility for generating the makefile.

these plugins were created using CodeBlocks svn 6132

Workspace Search
quickly access files in your workspace by hitting the workspace_search hotkey ( described how to do so here: http://codelite.org/forum/viewtopic.php?f=13&t=1984 ) and typing file names partially, fully, or with regex.

( the zip file / plugin dir are named FileSearch. just ignore that for now... )

Zoom Navigator
adds a dockable pane to your workspace book (can be detached and placed elsewhere) that shows a very far zoomed-out view of your code, highlighting the area that is currently visible on screen. clicking on any area of this view scrolls your main editor window to that position.

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Wed Jan 23, 2013 1:38 am
by caibbor
Screenshots

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Wed Jan 23, 2013 2:14 am
by eranif
caibbor wrote:Workspace Search
quickly access files in your workspace by hitting the workspace_search hotkey ( described how to do so here: viewtopic.php?f=13&t=1984 ) and typing file names partially, fully, or with regex.

( the zip file / plugin dir are named FileSearch. just ignore that for now... )
whats wrong with: Ctrl-Shift-R (or from the menu: Search -> Find Resource )?

It will open either file/class/member/function/namespace etc or anything that matches the search pattern
caibbor wrote:adds a dockable pane to your workspace book (can be detached and placed elsewhere) that shows a very far zoomed-out view of your code, highlighting the area that is currently visible on screen. clicking on any area of this view scrolls your main editor window to that position.
This one sounds interesting - I will check it out

Eran

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Wed Jan 23, 2013 6:22 am
by caibbor
eranif wrote:whats wrong with: Ctrl-Shift-R (or from the menu: Search -> Find Resource )?
I did not know about that feature... well shucks!
eranif wrote:This one sounds interesting - I will check it out
I'd like the click+drag to work differently than it currently does, but otherwise I like. I tried to clone the same feature from Sublime Text ( http://www.sublimetext.com/ )

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Wed Jan 23, 2013 8:26 pm
by eranif
I took your plugin and re-factored it:

- There is no need to use a custom timer class ( I am using simple wxTimer class and connect the event to the plugin )
- The plugin now handles the following codelite's events:
. wxEVT_ALL_EDITORS_CLOSING
. wxEVT_ACTIVE_EDITOR_CHANGED
- The preview is now using events to handle clicks inside the preview pane
- Fixed the "lagging" when clicking inside the preview
- The preview is now using the same synatx highlight as an editor

Eran

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Thu Jan 24, 2013 1:15 am
by eranif
I have finished (hopefully) working on that Zoom Navigator plugin
Here is the result on my Windows machine:
zn.png
I added settings + the syntax highlight follows the standard codelite's coloring scheme
Eran

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Thu Jan 24, 2013 9:04 am
by caibbor
very nice! I can't wait to look at your changes. I wanted syntax highlighting and did this all the best way I could figure, but wxWidgets is not something I've ever used before. this has been a crash course in many areas for me. glad to see someone likes it.

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Thu Jan 24, 2013 9:13 am
by caibbor
did you upload the code?

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Thu Jan 24, 2013 10:09 am
by eranif
caibbor wrote:did you upload the code?
Its already part of the SVN. Just svn up, configure and compile the code

Eran

Re: Two new plugins: Workspace Search / Zoom Navigator

Posted: Thu Jan 24, 2013 11:26 am
by caibbor
oh, very nice. I suppose I don't have permissions to make changes, I'd have to submit a patch?