Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Change bar feature in scintilla
Jenna:
--- Quote from: mariocup on November 20, 2008, 02:44:39 pm ---Hi Jens,
I did not try the changebar feature, therefore I have some questions:
1. Where is the changebar history stored in CB? Will this history be cleared when I close the file?
2. Is every changebar saved in a local history?
3. What would be cool to have same navigation feature like in a diff program (e.g. kdiff3) to jump to the next and previous difference/changebar.
--- End quote ---
1. it's stored inside the active editor, and will therefore be cleared if editor is closed,
2. yes
3. you mean a shortcut to find the next changed line, without stepping through the history ? I think, this should be possible.
To make it clear, I am not the author of the changebar-feature (http://groups.google.com/group/scintilla-interest/browse_thread/thread/2e5e1b82350886cc/adea77152522a434?lnk=gst&q=change#adea77152522a434), I just merged it with scintilla 1.7.5 and modified it, to make it optional, to switch it on and off and to delete history. (and of course changed C::B to use this)
MortenMacFly:
--- Quote from: jens on November 20, 2008, 02:18:16 pm ---I did not (yet) test it under windows.
--- End quote ---
I'll do it.
BTW: I believe you still missed that part (unless you have a reason not to apply it):
--- Code: --- const int margin = m_pControl->GetMarginWidth(lineMargin) + // numbers, if present
m_pControl->GetMarginWidth(markerMargin) + // breakpoints, bookmarks... if present
m_pControl->GetMarginWidth(foldingMargin) + // folding, if present
m_pControl->GetMarginWidth(changebarMargin); // changebar
--- End code ---
mmkider:
--- Quote from: mariocup on November 20, 2008, 02:44:39 pm ---Hi Jens,
I did not try the changebar feature, therefore I have some questions:
1. Where is the changebar history stored in CB? Will this history be cleared when I close the file?
2. Is every changebar saved in a local history?
3. What would be cool to have same navigation feature like in a diff program (e.g. kdiff3) to jump to the next and previous difference/changebar.
--- End quote ---
Hi, changebar is exciting.
If you want store traces, you can reference Bookmark plugin.
Because Bookmark is stored inside the active editor,too.
I implement record historys for Bookmarks.
Next, I will implement Navigate Backward and forward.
http://forums.codeblocks.org/index.php/topic,9531.0.html
Jenna:
--- Quote from: MortenMacFly on November 20, 2008, 04:01:54 pm ---
--- Quote from: jens on November 20, 2008, 02:18:16 pm ---I did not (yet) test it under windows.
--- End quote ---
I'll do it.
BTW: I believe you still missed that part (unless you have a reason not to apply it):
--- Code: --- const int margin = m_pControl->GetMarginWidth(lineMargin) + // numbers, if present
m_pControl->GetMarginWidth(markerMargin) + // breakpoints, bookmarks... if present
m_pControl->GetMarginWidth(foldingMargin) + // folding, if present
m_pControl->GetMarginWidth(changebarMargin); // changebar
--- End code ---
--- End quote ---
Shame on me ! :oops:
Too less sleep, too old, whatever.
Here's a patched patch: https://apt.jenslody.de/patches/scintilla_changebar_20081120-3.patch .
MortenMacFly:
--- Quote from: MortenMacFly on November 20, 2008, 04:01:54 pm ---I'll do it.
--- End quote ---
Looks good, besides on objection:
We have under editor settings the category "margins and caret".
I believe because the changebar *is* a margin the settings option should go there...?!
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version