Two new plugins: Workspace Search / Zoom Navigator

Discussion about CodeLite development process and patches

Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Wed Jan 23, 2013 1:37 am

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: 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.
Attachments
FileSearch.zip
(14.59 KiB) Downloaded 128 times
ZoomNavigator.zip
(14.28 KiB) Downloaded 120 times
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Wed Jan 23, 2013 1:38 am

Screenshots
Attachments
zoomnav-small.png
Screenshot of the Zoom Navigator plugin in action
zoomnav-small.png (158.62 KiB) Viewed 1766 times
workspacesearch-small.png
Screenshot of the Workspace Search plugin in action
workspacesearch-small.png (226.7 KiB) Viewed 1766 times
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby eranif » Wed Jan 23, 2013 2:14 am

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
eranif
CodeLite Plugin
 
Posts: 4359
Joined: Wed Feb 06, 2008 9:29 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Wed Jan 23, 2013 6:22 am

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/ )
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby eranif » Wed Jan 23, 2013 8:26 pm

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: 4359
Joined: Wed Feb 06, 2008 9:29 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby eranif » Thu Jan 24, 2013 1:15 am

I have finished (hopefully) working on that Zoom Navigator plugin
Here is the result on my Windows machine:

zn.png
zn.png (169.02 KiB) Viewed 1742 times


I added settings + the syntax highlight follows the standard codelite's coloring scheme
Eran
Make sure you have read the HOW TO POST thread
User avatar
eranif
CodeLite Plugin
 
Posts: 4359
Joined: Wed Feb 06, 2008 9:29 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Thu Jan 24, 2013 9:04 am

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.
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Thu Jan 24, 2013 9:13 am

did you upload the code?
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby eranif » Thu Jan 24, 2013 10:09 am

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
eranif
CodeLite Plugin
 
Posts: 4359
Joined: Wed Feb 06, 2008 9:29 pm

Re: Two new plugins: Workspace Search / Zoom Navigator

Postby caibbor » Thu Jan 24, 2013 11:26 am

oh, very nice. I suppose I don't have permissions to make changes, I'd have to submit a patch?
C++98/11 programmer, Game Developer.
Original Author of the ZoomNavigator plugin for CodeLite.
User avatar
caibbor
CodeLite Veteran
 
Posts: 56
Joined: Thu Jan 10, 2013 10:37 pm

Next

Return to CodeLite Development / Patches

Who is online

Users browsing this forum: No registered users and 2 guests