News:

The new Release 25.03 is out! You can download binaries for Windows and many major Linux distros here .

Main Menu

BrowseTracker plugin

Started by Pecan, June 05, 2007, 11:23:22 PM

Previous topic - Next topic

Pecan

#45
BrowseTracker 1.2.44 2007/12/16
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

  • Saves/Restores BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by holding Left-mouse down for 1/4 second, allowing user better control over BrowseMarks.
  • Ctrl-Left click on a line clears the browse mark.
  • Ctrl-Left click on any unmarked line clears *all* BrowseMarks

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

Commit  1.2.44 2007/12/16
30) Ctrl+LeftMouse click on non-marked line clears *all* markers;
       Ctrl+LeftMouse click on marked line clears the line marker;
31) Added BrowseTracker ProjectData class
32) Added BrowseTrackerLayout class
33) Fixed: Crash when no project and file opened at StartUp
34) Persistent Browse_Marks via Load/Save layout file.
35) Restore BrowseMarks when a previously active editor    closed/reopened
36) Toggle BrowseMark with LeftMouseClick
37) Convert BookMarks class to use full file names as index to save
       Browse/Book marks of unactivated files in project
39) Persistent Book marks via Load/Save Layout file  "<projectName>.bmarks"
39) Fix: Browse/Book marks not saved when fileShortName used
40) Save Browse/Book marks when CB exited w/o closing projects
41) Ignore Browse/Book marks for files outside projects in EVT_EDITOR_CLOSE
42) Mouse must be down 250 millisecs (1/4 sec) to toggle BrowseMark. Better control.
43) Ignore Left-Double-clicks that reads like a long left click.
44) Fix non-pch includes for linux

MortenMacFly

Quote from: Pecan on December 16, 2007, 11:06:59 PM
BrowseTracker 1.2.44 2007/12/16
I used BT the first time today but found a nasty issue in the version:
- open a workspace (project)
- open *one* file in a tab
- right-click in the source code -> select "BrowseTracker" -> "Backward Ed"

--> Result: An empty BT window opens that cannot be clicked away -> clicking anywhere does not help, ESC does not help -> the only way to get rid of this window it two times ALT+TAB (switching to another app and returning to C::B). I guess this can be considered as bug. ;-)

With regards, Morten.
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pecan

Quote from: MortenMacFly on December 17, 2007, 09:44:12 AM
Quote from: Pecan on December 16, 2007, 11:06:59 PM
BrowseTracker 1.2.44 2007/12/16
I used BT the first time today but found a nasty issue in the version:
- open a workspace (project)
- open *one* file in a tab
- right-click in the source code -> select "BrowseTracker" -> "Backward Ed"

--> Result: An empty BT window opens that cannot be clicked away -> clicking anywhere does not help, ESC does not help -> the only way to get rid of this window it two times ALT+TAB (switching to another app and returning to C::B). I guess this can be considered as bug. ;-)

With regards, Morten.

Yes. This is a bug. The empty dialog can be dismissed via an Alt-Left or Alt-Right begin hit twice in succession.

Then double click on another project in the workspace to cause cbEVT_PROJECT_ACTIVATE to be issued. Then switch back to your chosen project.
All should work after that.
I'll fix this issue asap.

Thanks for the report.

Pecan

BrowseTracker 1.2.48 2007/12/17
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

  • Saves/Restore BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by holding Left-mouse down for 1/4 second, allowing user better control over BrowseMarks.
  • Ctrl-Left click on a line clears the browse mark.
  • Ctrl-Left click on any unmarked line clears *all* BrowseMarks
  • Multi-Project workspace fixes

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

Commit  1.2.48 2007/12/17
45) Fixed layout loading in multi-project workspace
46) Fixed frozen dialog popup in multi-project workspace
47) Decoupled ProjectData from dependency on EditorBase indexes.
48) Added Search for ProjectData/cbProject by fullPath

Pecan

BrowseTracker 1.2.49 2007/12/21
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

  • Saves/Restore BrowseMarks and Book marks.
  • Toggles BrowseMark on/off by user configurable mouse click
  • Clears Browse marks via user configurable mouse click.
  • New BrowseTracker Settings menu item and dialog



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

Commit  1.2.49 2007/12/21
48) Added Mouse toggle/clear options and dialog

Pecan

BrowseTracker 1.2.57 2008/01/2
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

  • User choice of BrowseMark, BookMark, or Hidden.
  • Fixed: Do not set Mark on double click.
  • Save/Restore marks even when no "extension" in project xml file.
  • Remove dependency on ProjectLoading Hook and IsLoading() calls.



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



dje

Quote from: Pecan on January 02, 2008, 04:54:45 PM
  • Fixed: Do not set Mark on double click.

Thanks for that Pecan !

Dje

MortenMacFly

#52
Quote from: Pecan on January 02, 2008, 04:54:45 PM
BrowseTracker 1.2.57 2008/01/2
Fails to compile on my machine due to the cbStyledTextCtrl refactoring. It's missing to include "cbstyledtextctrl.h" in:
- BrowseMarks.cpp and
- BrowseTracker.cpp
Other than that: Works nice! :-)
With regards, Morten.

Edit: In addition: The repository includes a ZIP file that seems to have been added not on purpose (it just includes manifest.xml which is in the repo anyway...)
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

rhf

Quote from: Pecan on January 02, 2008, 04:54:45 PM
BrowseTracker 1.2.57 2008/01/2
Pecan, I want to thank you for the nice BrowseTracker plugin which I find very useful.
I have one minor question. The BrowseTracker menu lists the operation: Sort BrowseMarks.
What does this operation do?

Thanks!


Pecan

Quote from: MortenMacFly on January 02, 2008, 08:50:57 PM
Quote from: Pecan on January 02, 2008, 04:54:45 PM
BrowseTracker 1.2.57 2008/01/2
Fails to compile ...

Fixed. Repository cleaned up also.
Thanks for the report.

Pecan

#55
Quote from: rhf on January 02, 2008, 09:18:39 PM
Quote from: Pecan on January 02, 2008, 04:54:45 PM
BrowseTracker 1.2.57 2008/01/2
...The BrowseTracker menu lists the operation: Sort BrowseMarks.
What does this operation do?

The Alt up/down arrows follow the marks in the order that the user placed them. Sorting causes the Alt up/down to follow the marks in ascending or decending order of line numbers.

Just like the behavior of the current book marks (Alt PgUp/PgDn).

Personally, I prefer to go to marks as I placed them last. Thus, I don't have to ascend/decend through intervening marks.

But in the case where you've set a large number of marks, you can get some serious/disorienting jumping around. Sorting the Browse/Book marks can help this situation.

It's also nice to sort them before closing the file. The marks will be reloaded in line sort order when the file is re-opened.

A side effect of sorting: the cursor will always be placed at the beginning of the line. Not at the offset (within the line) at which you placed the mark.

rhf

Quote from: Pecan on January 02, 2008, 09:35:30 PM
The Alt up/down arrows follow the marks in the order that the user placed them. Sorting causes the the Alt up/down to follow the marks in ascending or decending order of line numbers.
I see now. Thanks.

Pecan

BrowseTracker 1.2.64 2008/01/4
http://code.google.com/p/cbbrowsetracker/
http://wiki.codeblocks.org/index.php?title=BrowseTracker_plugin

Summay of changes:

  • Follow BookMarks more closely when used as BrowseMarks.
  • Bug fixes at file load.
  • Work-around for ProjectLoadingHook not being called.




Download zip file contains .cbplugin(s) for Nightly 4734-4771.


Commit 1.2.64 2008/01/4
59) update Makefile.am
60) Re-instated use of ProjectLoadingHook. Hook is skipped when extra </unit> in project.cbp after file adds. Forcing re-save project.cbp solves problem.
61) Finish code to shadow Book marks as BrowseMark.
62) Refactored ClearLineBrowseMarks/ClearLineBookMarks/ToggleBook_Mark
63) Don't initiate a BrowseMark on initial load of source file.
64) Correct linux cbstyledtextctrl.h spelling & project camel case.

MortenMacFly

Quote from: Pecan on January 04, 2008, 10:20:01 PM
BrowseTracker 1.2.64 2008/01/4
I have serious issues with this plugin (recently). Whenever I try to import a Visual Studio solution C::B crashes. The reason is the BT plugin, file ProjectData.cpp, line 63 (m_ProjectFilename = pcbProject->GetFilename();). It seems pcbProject *is* NULL sometimes in the case of an import. So you better don't rely on it. I had to disable the BT plugin to be able to import VS solutions again. :-(
Compiler logging: Settings->Compiler & Debugger->tab "Other"->Compiler logging="Full command line"
C::B Manual: [url="https://www.codeblocks.org/docs/main_codeblocks_en.html"]https://www.codeblocks.org/docs/main_codeblocks_en.html[/url]
C::B FAQ: [url="https://wiki.codeblocks.org/index.php?title=FAQ"]https://wiki.codeblocks.org/index.php?title=FAQ[/url]

Pecan

Quote from: MortenMacFly on January 23, 2008, 03:23:42 PM
Quote from: Pecan on January 04, 2008, 10:20:01 PM
... It seems pcbProject *is* NULL sometimes in the case of an import. So you better don't rely on it. I had to disable the BT plugin to be able to import VS solutions again. :-(

Fixed in Head.

BrowseTracker will be disabled for projects whos OnProject cb events are entered without a project pointer.

Thanks for the report.