Developer forums (C::B DEVELOPMENT STRICTLY!) > Plugins development
BrowseTracker plugin
Pecan:
--- 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
--- End quote ---
...The BrowseTracker menu lists the operation: Sort BrowseMarks.
What does this operation do?
--- End quote ---
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.
--- End quote ---
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
--- End quote ---
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. :-(
Pecan:
--- Quote from: MortenMacFly on January 23, 2008, 03:23:42 pm ---
--- Quote from: Pecan on January 04, 2008, 10:20:01 pm ---
--- End quote ---
... 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. :-(
--- End quote ---
Fixed in Head.
BrowseTracker will be disabled for projects whos OnProject cb events are entered without a project pointer.
Thanks for the report.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version