Two new plugins: Workspace Search / Zoom Navigator

Discussion about CodeLite development process and patches
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Two new plugins: Workspace Search / Zoom Navigator

Post 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.
You do not have the required permissions to view the files attached to this post.
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post by caibbor »

Screenshots
You do not have the required permissions to view the files attached to this post.
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post 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
Make sure you have read the HOW TO POST thread
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post 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/ )
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post 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
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post 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
You do not have the required permissions to view the files attached to this post.
Make sure you have read the HOW TO POST thread
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post 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.
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post by caibbor »

did you upload the code?
User avatar
eranif
CodeLite Plugin
Posts: 6367
Joined: Wed Feb 06, 2008 9:29 pm
Genuine User: Yes
IDE Question: C++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post by eranif »

caibbor wrote:did you upload the code?
Its already part of the SVN. Just svn up, configure and compile the code

Eran
Make sure you have read the HOW TO POST thread
User avatar
caibbor
CodeLite Veteran
Posts: 78
Joined: Thu Jan 10, 2013 10:37 pm
Genuine User: Yes
IDE Question: c++
Contact:

Re: Two new plugins: Workspace Search / Zoom Navigator

Post by caibbor »

oh, very nice. I suppose I don't have permissions to make changes, I'd have to submit a patch?
Post Reply