Author Topic: BrowseTracker plugin  (Read 54801 times)

Offline Lazybones

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: BrowseTracker plugin
« Reply #60 on: January 24, 2008, 03:01:23 pm »
Hi Pecan,

I have some ideas for the BrowseTracker, especially for setting the browsemarks.

Do you think it is possible to set the browsemarks on:
- highlighting text by double clicking on one word
- highlighting text with Shift+<left>/<right>

Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

Any maybe it is possible to add a BrowseMark in the same way as a bookmark, by left-clicking between the line numbers and the folding marks? This would make it easier to manually set the BrowseMarks!

Sven



Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2186
Re: BrowseTracker plugin
« Reply #61 on: January 24, 2008, 04:59:58 pm »
BrowseTracker 1.2.68 2008/01/24
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:
  • Disable BrowseTracker for project when SDK issues project events without a project pointer



Download zip file contains .cbplugin(s) for Nightly 4830.


Commit 1.2.68 2008/01/24
 67) Guard against null project pointer when importing projects
       Sdk is issueing project events without a project pointer.
       Eg. importing Visual Studio Solution project
 68) OnProjectOpen: turn off ProjectLoading flag when no project     pointer


Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2186
Re: BrowseTracker plugin
« Reply #62 on: January 24, 2008, 05:08:59 pm »
...
Do you think it is possible to set the browsemarks on:
- highlighting text by double clicking on one word
- highlighting text with Shift+<left>/<right>

Browse tracker used to do this, but there were so many complaints about it, it got removed.

In the future, I'll add options to the Settings menu to re-instate your first two requests if there's enough demand. But for now it seems you and I are the only ones who like this kind of feature.


Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

I don't understand this.  On my system, when I mark a line before doing a search, I have no problem jumping back to it.

As for integration into the CodeCompletion plugin, I don't think I have the where-with-all to climb that mountain.

Any maybe it is possible to add a BrowseMark in the same way as a bookmark, by left-clicking between the line numbers and the folding marks? This would make it easier to manually set the BrowseMarks!
...

Look at the Setting menu entry. (Menu/View/BrowseMarks/Settings).
You can use BrowseMarks as if they were Bookmarks.

Edit: Ok, I see what you mean. Setting the book mark in the margin  is not seen by BrowseTracker. I'll see what I can do about that.

In the meantime: you can use the View/BrowseTracker/Settings/BookMarks option. When you set a BrowseMark, it will actually be set as a bookmark and behave as one.
« Last Edit: January 24, 2008, 05:35:00 pm by Pecan »

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9524
Re: BrowseTracker plugin
« Reply #63 on: January 24, 2008, 06:00:22 pm »
Another minor issue: I think the config dialog looks pretty ugly. Have a look how it looks like on my system:

Maybe the sizer's are not setup properly? Or maybe a sizer re-design should take place...?! ;-)
With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline Lazybones

  • Multiple posting newcomer
  • *
  • Posts: 14
Re: BrowseTracker plugin
« Reply #64 on: January 25, 2008, 11:32:13 am »
Additionally it would be nice to have an integration in the "find declaration / implementation"-functions. (and maybe in the ThreadSearch-plugin, too?): if the line with the search result is in the same file, you do not have the possibility to jump back to the line you entered the search value in.

I don't understand this.  On my system, when I mark a line before doing a search, I have no problem jumping back to it.

As for integration into the CodeCompletion plugin, I don't think I have the where-with-all to climb that mountain.


But you have to mark the line manually. My suggestion is to automatically mark the line, so you always have the possibility to easily jump back from the result-line to the initial line.

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: BrowseTracker plugin
« Reply #65 on: January 26, 2008, 07:55:19 pm »
I have been using the BrowseTracker plugin for a couple of months now and find it to be very helpful.
The plugin is described in the CodeBlocks manual; however, it is not included in the svn repository - in either the core or contributed plugins.
It would sure be convenient if it were available via svn.
Are there any plans to commit it to the repository?
Thanks.

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: BrowseTracker plugin
« Reply #66 on: February 14, 2008, 09:01:11 am »
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline MortenMacFly

  • Administrator
  • Lives here!
  • *****
  • Posts: 9524
Re: BrowseTracker plugin
« Reply #67 on: February 14, 2008, 09:27:35 am »
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.
As a workaround for now: Please remove the "ToolBox" include and the member variable in that class. It won't do any harm, might be this is code has been forgotten to be removed (the member variable is not being used).
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: http://www.codeblocks.org/docs/main_codeblocks_en.html
C::B FAQ: http://wiki.codeblocks.org/index.php?title=FAQ

Offline kisoft

  • Almost regular
  • **
  • Posts: 194
Re: BrowseTracker plugin
« Reply #68 on: February 14, 2008, 09:33:31 am »
As a workaround for now: Please remove the "ToolBox" include and the member variable in that class. It won't do any harm, might be this is code has been forgotten to be removed (the member variable is not being used).
As usual ;) you right. Thanks! No problems on compile now.
OS: WinXPSP3
wxWidgets: 2.8.12
CodeBlocks: Master github cbMakefileGen plugin:
https://github.com/kisoft/cbmakefilegen

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2186
Re: BrowseTracker plugin
« Reply #69 on: February 14, 2008, 03:22:11 pm »
rev 43. Compile error: ToolBox.h: No such file or directory
Check repository, please.


Sorry about that. ToolBox is used for debugging. I've now included them in the repository.

Thanks for the report.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
Re: BrowseTracker plugin
« Reply #70 on: February 16, 2008, 06:11:31 pm »
what about still adding it to contribs ?? then it's part of the release ;-)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2186
Re: BrowseTracker plugin
« Reply #71 on: February 16, 2008, 10:14:48 pm »
what about still adding it to contribs ?? then it's part of the release ;-)

I agree, but you'll have to do it. You have the svn authorization level.

Offline killerbot

  • Administrator
  • Lives here!
  • *****
  • Posts: 5209
Re: BrowseTracker plugin
« Reply #72 on: February 16, 2008, 11:23:40 pm »
If you can provide me with a download link (zip file), with all the sources, project files, make files , preferably already on the level of contrib dir, I will try to get it in before we release ;-)

Offline Pecan

  • Plugin developer
  • Lives here!
  • ****
  • Posts: 2186
Re: BrowseTracker plugin
« Reply #73 on: February 17, 2008, 12:31:07 am »
If you can provide me with a download link (zip file), with all the sources, project files, make files , preferably already on the level of contrib dir, I will try to get it in before we release ;-)

http://code.google.com/p/cbbrowsetracker/
cbbrowsetracker - Google Code

Both source in SVN "Source" tab and source in "Downloads ".zip files.

The SVN is the most up to date. cbBrowseTracker1-2-7.zip contains the same code.


« Last Edit: February 17, 2008, 12:51:13 am by Pecan »

Offline rhf

  • Multiple posting newcomer
  • *
  • Posts: 123
Re: BrowseTracker plugin
« Reply #74 on: February 17, 2008, 07:14:44 pm »
Pecan,
I just did an SVN update, to Rev 45, on your source code in
http://cbbrowsetracker.googlecode.com/svn/trunk/  and am still getting the ToolBox error discussed earlier.
Are you sure that you fixed the repo version? Maybe I am looking in the wrong place.