Two new plugins: Workspace Search / Zoom Navigator
- 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
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.
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.
- 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
Screenshots
You do not have the required permissions to view the files attached to this post.
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Two new plugins: Workspace Search / Zoom Navigator
whats wrong with: Ctrl-Shift-R (or from the menu: Search -> Find Resource )?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... )
It will open either file/class/member/function/namespace etc or anything that matches the search pattern
This one sounds interesting - I will check it outcaibbor 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.
Eran
Make sure you have read the HOW TO POST thread
- 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
I did not know about that feature... well shucks!eranif wrote:whats wrong with: Ctrl-Shift-R (or from the menu: Search -> Find Resource )?
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/ )eranif wrote:This one sounds interesting - I will check it out
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Two new plugins: Workspace Search / Zoom Navigator
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
- 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
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Two new plugins: Workspace Search / Zoom Navigator
I have finished (hopefully) working on that Zoom Navigator plugin
Here is the result on my Windows machine:
I added settings + the syntax highlight follows the standard codelite's coloring scheme
Eran
Here is the result on my Windows machine:
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
- 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
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.
- 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
did you upload the code?
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Two new plugins: Workspace Search / Zoom Navigator
Its already part of the SVN. Just svn up, configure and compile the codecaibbor wrote:did you upload the code?
Eran
Make sure you have read the HOW TO POST thread
- 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
oh, very nice. I suppose I don't have permissions to make changes, I'd have to submit a patch?