Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2012-02

SourceEditor: strange "gap" on right hand side

19 messages · 7 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

John Repucci
Show quoted text 19 lines
Date: Tue, 28 Feb 2012 15:53:38 +0100 From: Bart Subject: [Lazarus] SourceEditor: strange "gap" on right hand side To: Lazarus mailing list Message-ID: < > Content-Type: text/plain; charset="iso-8859-1" Hi, After upgrading from r34833 to r35612 I noticed that the SourceEditor now had a strange "gap" on the right hand side, see attached screenshot. Anybody knwos what it is, or why it is there? Bart

It shows (with a little dash within that vert space) where your changes have been made.
I also saw that recently and wondered, but I do find it useful. -------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120228/88711a6e/attachment.html>

Reply by email

Martin
to John Repucci
John Repucci wrote 23 lines
Date: Tue, 28 Feb 2012 15:53:38 +0100 From: Bart < <mailto:>> Subject: [Lazarus] SourceEditor: strange "gap" on right hand side To: Lazarus mailing list < <mailto:>> Message-ID: < <mailto:>> Content-Type: text/plain; charset="iso-8859-1" Hi, After upgrading from r34833 to r35612 I noticed that the SourceEditor now had a strange "gap" on the right hand side, see attached screenshot. Anybody knwos what it is, or why it is there? Bart It shows (with a little dash within that vert space) where your changes have been made. I also saw that recently and wondered, but I do find it useful.

It can be switched on and off in the IDE options.

It does show (for the entire file):
- position of breakpoints
- position of bookmarks
- changes (unsaved/saved) per line
- implementation/interface/initialization (shaded grey)
- current visible page (shaded grey)

The current visible page slightly differs from the scrollbar, as this overview is slightly longer than the scrollbar.

In some distant future, there will be more info being added

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120228/f5ba645f/attachment.html>

Reply by email

Sven Barth
to Bart: After upgrading from r34833 to r35612 I noticed that the SourceEditor now had a strange…
Bart wrote 6 lines
Hi, After upgrading from r34833 to r35612 I noticed that the SourceEditor now had a strange "gap" on the right hand side, see attached screenshot. Anybody knwos what it is, or why it is there?

Yay!!! The overview gutter is finally here by default :D

Make some changes in the file, save it, make more changes and place some breakpoints. You'll then see what this baby is useful for ;)

Regards,
Sven

Reply by email

Martin
to Sven Barth
Sven Barth wrote 12 lines
Am 28.02.2012 15:53, schrieb Bart: > Hi, > > After upgrading from r34833 to r35612 I noticed that the SourceEditor > now had a strange "gap" on the right hand side, see attached > screenshot. > Anybody knwos what it is, or why it is there? Yay!!! The overview gutter is finally here by default :D Make some changes in the file, save it, make more changes and place some breakpoints. You'll then see what this baby is useful for ;)

And "WithTopInfo" is also a normal feature now

If you are (caret pos) in a big class (or procedure) it shows you the name

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120228/93da19da/attachment-0001.html> -------------- next part --------------
A non-text attachment was scrubbed...
Name: jaaadjfd.png
Type: image/png
Size: 50664 bytes
Desc: not available
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120228/93da19da/attachment-0001.png>

Reply by email

Sven Barth
to Martin
Martin wrote 18 lines
On 28/02/2012 15:11, Sven Barth wrote: > Am 28.02.2012 15:53, schrieb Bart: >> Hi, >> >> After upgrading from r34833 to r35612 I noticed that the SourceEditor >> now had a strange "gap" on the right hand side, see attached >> screenshot. >> Anybody knwos what it is, or why it is there? > > Yay!!! The overview gutter is finally here by default :D > > Make some changes in the file, save it, make more changes and place > some breakpoints. You'll then see what this baby is useful for ;) And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or procedure) it shows you the name

I definitely need to update my Lazarus version... but that has to wait till after my exam... ^^

Regards,
Sven

Reply by email

Bart
to Sven Barth: Yay!!! The overview gutter is finally here by default :D Make some changes in the file,…
Sven Barth wrote
Yay!!! The overview gutter is finally here by default :D Make some changes in the file, save it, make more changes and place some breakpoints.

I can see little green squared dots when I change a line, but they do not appear at/near the line I changed, and they are static (they do not scroll with the synedit), same for breakpoints (little red line) and bookmarks (blue line).
Also they are not "click-able", so they do not provide some jumping mechanism.

Also, on the left hand side gutter, didn't I already have a visible clue for saved/unsaved edits, breakpoints etc.?

You'll then see what this baby is useful for

Must be me, but I don't see it right now.
How Am I supposed to use this information in the overviewgutter?

(And yes, I found out how to disable this feature, so no need to pint that out to me)

Bart

Reply by email

Sven Barth
to Bart
Bart wrote 15 lines
On 2/28/12, Sven Barth wrote: > Yay!!! The overview gutter is finally here by default :D > > Make some changes in the file, save it, make more changes and place some > breakpoints. I can see little green squared dots when I change a line, but they do not appear at/near the line I changed, and they are static (they do not scroll with the synedit), same for breakpoints (little red line) and bookmarks (blue line). Also they are not "click-able", so they do not provide some jumping mechanism. Also, on the left hand side gutter, didn't I already have a visible clue for saved/unsaved edits, breakpoints etc.?

It's an overview for the complete file, this is why it does not move. There is a small gray area (a different gray then the rest) that shows your current scroll view.

To quote Martin's mail:

Show quoted text 11 lines
It does show (for the entire file): - position of breakpoints - position of bookmarks - changes (unsaved/saved) per line - implementation/interface/initialization (shaded grey) - current visible page (shaded grey) > You'll then see what this baby is useful for Must be me, but I don't see it right now. How Am I supposed to use this information in the overviewgutter?

As said it presents a complete overview of the current file to you. You see where you changed something (yellow and green like on the left) and where you put breakpoints. In the future there might be icons to indicate compilation failures, warnings, hints, etc.

Regards,
Sven

Reply by email

Martin
to Bart: I can see little green squared dots when I change a line, but they do not appear at/near…
Bart wrote 10 lines
On 2/28/12, Sven Barth wrote: > Yay!!! The overview gutter is finally here by default :D > > Make some changes in the file, save it, make more changes and place some > breakpoints. I can see little green squared dots when I change a line, but they do not appear at/near the line I changed, and they are static (they do not scroll with the synedit), same for breakpoints (little red line) and bookmarks (blue line).

Yes, they do not scroll.

This is an overview gutter. It represents the entire file. (the current visible part is shaded grey)

Also they are not "click-able", so they do not provide some jumping mechanism.

That is why this feature lived "IFDEF" hidden, for a long time.

But I got some feedback, that it was already usable to some. So I made it available. It has an option, so you can switch it off.

Someday, it will be extended...

Also, on the left hand side gutter, didn't I already have a visible clue for saved/unsaved edits, breakpoints etc.?

Yes. And that scrolls with the lines.

> You'll then see what this baby is useful for Must be me, but I don't see it right now. How Am I supposed to use this information in the overviewgutter?

Scroll and watch the shaded grey.

You can see as you gt to a bookmark/breakpoint. Or (most usable to me) the begin of implemantation

(And yes, I found out how to disable this feature, so no need to pint that out to me)

Reply by email

Mark Morgan Lloyd
to Sven Barth: It's an overview for the complete file, this is why it does not move. There is a small…
Sven Barth wrote 39 lines
Am 28.02.2012 16:53, schrieb Bart: > On 2/28/12, Sven Barth wrote: > >> Yay!!! The overview gutter is finally here by default :D >> >> Make some changes in the file, save it, make more changes and place some >> breakpoints. > > I can see little green squared dots when I change a line, but they do > not appear at/near the line I changed, and they are static (they do > not scroll with the synedit), same for breakpoints (little red line) > and bookmarks (blue line). > Also they are not "click-able", so they do not provide some jumping > mechanism. > > Also, on the left hand side gutter, didn't I already have a visible > clue for saved/unsaved edits, breakpoints etc.? It's an overview for the complete file, this is why it does not move. There is a small gray area (a different gray then the rest) that shows your current scroll view. To quote Martin's mail: > It does show (for the entire file): > - position of breakpoints > - position of bookmarks > - changes (unsaved/saved) per line > - implementation/interface/initialization (shaded grey) > - current visible page (shaded grey) >> You'll then see what this baby is useful for > > Must be me, but I don't see it right now. > How Am I supposed to use this information in the overviewgutter? As said it presents a complete overview of the current file to you. You see where you changed something (yellow and green like on the left) and where you put breakpoints. In the future there might be icons to indicate compilation failures, warnings, hints, etc.

Nice one, I did something similar way back for bookmarks in an embedded script editor.

Could it be merged with the scrollbar to avoid visual duplication?

Mark Morgan Lloyd markMLl .AT. telemetry.co .DOT. uk [Opinions above are the author's, not those of his employers or colleagues]

Reply by email

Martin
to Mark Morgan Lloyd
Mark Morgan Lloyd wrote 11 lines
Sven Barth wrote: > As said it presents a complete overview of the current file to you. > You see where you changed something (yellow and green like on the > left) and where you put breakpoints. In the future there might be > icons to indicate compilation failures, warnings, hints, etc. Nice one, I did something similar way back for bookmarks in an embedded script editor. Could it be merged with the scrollbar to avoid visual duplication?

Only if the scrollbar is owner drawn....

But there are more differences:
- Folded lines: present in overview, but not in scrollbar
- "Scroll past end of text" allows the last line to scroll to the top of the editor. This is done by showing none existing empty lines. present in Scr.Bar, but not overview

Reply by email

Martin
to Martin
Martin wrote 21 lines
On 28/02/2012 18:50, Mark Morgan Lloyd wrote: > Sven Barth wrote: >> As said it presents a complete overview of the current file to you. >> You see where you changed something (yellow and green like on the >> left) and where you put breakpoints. In the future there might be >> icons to indicate compilation failures, warnings, hints, etc. > > Nice one, I did something similar way back for bookmarks in an > embedded script editor. > > Could it be merged with the scrollbar to avoid visual duplication? > Only if the scrollbar is owner drawn.... But there are more differences: - Folded lines: present in overview, but not in scrollbar - "Scroll past end of text" allows the last line to scroll to the top of the editor. This is done by showing none existing empty lines. present in Scr.Bar, but not overview

And of course, if someday you can split the editor vertically, you have 2 scrollbar, but one overview....

Reply by email

Graeme Geldenhuys
to Martin: And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or…

2012/2/28 Martin

And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or procedure) it shows you the name

Now this is going to be very useful, though I would have to get used to how it is displayed... a bit
Regards,
? - Graeme -

_______________________________________________
fpGUI - a cross-platform Free Pascal GUI toolkit
http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Graeme Geldenhuys
Graeme Geldenhuys wrote
Now this is going to be very useful, though I would have to get used to how it is displayed... a bit confusing at first.
From your screenshot it looked confusing, but actually using it in

practice, it works very well. Awesome feature! Thank you.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Graeme Geldenhuys
to Martin: It can be switched on and off in the IDE options. It does show (for the entire file): -…

2012/2/28 Martin :

Show quoted text 8 lines
It can be switched on and off in the IDE options. It does show (for the entire file): - position of breakpoints - position of bookmarks - changes (unsaved/saved) per line - implementation/interface/initialization (shaded grey) - current visible page (shaded grey)

I don't know who implemented this, but it is a nice feature. Beyond Compare has such an "overview" bar for a long time, at it works very nice in BC.

One suggestion (though I know it is probably still work-in-process) from my experience with Beyond Compare... make it clickable. So when you click on a bookmark area, the editor jumps to that area instantly.

Regards, ? - Graeme - _______________________________________________ fpGUI - a cross-platform Free Pascal GUI toolkit http://fpgui.sourceforge.net

Reply by email

Martin
to Graeme Geldenhuys
Graeme Geldenhuys wrote 19 lines
2012/2/28 Martin : > It can be switched on and off in the IDE options. > > It does show (for the entire file): > - position of breakpoints > - position of bookmarks > - changes (unsaved/saved) per line > - implementation/interface/initialization (shaded grey) > - current visible page (shaded grey) I don't know who implemented this, but it is a nice feature. Beyond Compare has such an "overview" bar for a long time, at it works very nice in BC. One suggestion (though I know it is probably still work-in-process) from my experience with Beyond Compare... make it clickable. So when you click on a bookmark area, the editor jumps to that area instantly.

Clickable is on the todo.

But the feature is currently low prior. In fact what is there today, has all been developed long ago and lived in Ifdef...

Reply by email

Juha Manninen
to Martin: And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or…

2012/2/28 Martin

And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or procedure) it shows you the name

Martin, how to enable the "WithTopInfo" feature without a compile time define?
I don't see the top line and I don't find a config setting for it. (not even with the new filter feature :)

Juha
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120305/7d181e3c/attachment-0001.html>

Reply by email

Martin
to Juha Manninen
Juha Manninen wrote 12 lines
2012/2/28 Martin < <mailto:>> And "WithTopInfo" is also a normal feature now If you are (caret pos) in a big class (or procedure) it shows you the name Martin, how to enable the "WithTopInfo" feature without a compile time define? I don't see the top line and I don't find a config setting for it. (not even with the new filter feature :)

options > Editor > Display > "Show Class/Proc Hint"

btw, what did you search for?
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.lazarus.freepascal.org/pipermail/lazarus/attachments/20120304/b64e95cb/attachment.html>

Reply by email