Display corresponding line in the status of the IDE

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Display corresponding line in the status of the IDE

Post by Michael Vogel »

I would like to the the partner line of a statement in the status. When investigating a code like IF a>1 ... IF b<a ... IF n>m .... ENDIF ... ENDIF ... ENDIF its hard to see which statement is the corresponding IF to a certain ENDIF line. So if the cursor is somewhere over a ENDIF line, a "[IF b<a...][ENDIF]" would help to keep the orientation :wink:

Another cool status information would be the name of the procedure where the cursor is at moment.

Michael
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Display corresponding line in the status of the IDE

Post by PB »

> Another cool status information would be the name of the procedure
> where the cursor is at moment

+1
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Display corresponding line in the status of the IDE

Post by freak »

PB wrote:> Another cool status information would be the name of the procedure
> where the cursor is at moment

+1
I don't see the point of that. If you are so lost in the code that you do not even know that anymore, you probably shouldn't be editing there anyway :P
quidquid Latine dictum sit altum videtur
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Display corresponding line in the status of the IDE

Post by PB »

> I don't see the point of that

It's very handy when paging down through your code, for navigation.
Quite often I've been browsing my sources and wishing I knew where
the cursor was as I went. So that's why I put my +1 to the topic. :)
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
User avatar
Michael Vogel
Addict
Addict
Posts: 2797
Joined: Thu Feb 09, 2006 11:27 pm
Contact:

Re: Display corresponding line in the status of the IDE

Post by Michael Vogel »

freak wrote:I don't see the point of that. If you are so lost in the code that you do not even know that anymore, you probably shouldn't be editing there anyway :P
A typical example for "getting lost" is when using the find (and replace) command to change variable names etc.

Michael
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Display corresponding line in the status of the IDE

Post by PB »

Another reason why I get lost in my code: I use PureBasic on my Eee PC,
which has a resolution of 800 x 480 pixels. So it's quite normal for a whole
procedure NOT to be seen on one screenfull of the IDE. Thus, I don't know
which procedure I'm in without scrolling up or down, which is a hassle. Not
everyone codes with a 1600 x 1280 screen (or whatever the ratio is).
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Re: Display corresponding line in the status of the IDE

Post by freak »

PB wrote:Another reason why I get lost in my code: I use PureBasic on my Eee PC,
which has a resolution of 800 x 480 pixels. So it's quite normal for a whole
procedure NOT to be seen on one screenfull of the IDE. Thus, I don't know
which procedure I'm in without scrolling up or down, which is a hassle. Not
everyone codes with a 1600 x 1280 screen (or whatever the ratio is).
Well, especially if you use such a small resolution, do you really want to waste a big part of the statusbar for the procedure name ? Because the information about the current command under the cursor certainly won't fit anymore then.
quidquid Latine dictum sit altum videtur
#NULL
Addict
Addict
Posts: 1497
Joined: Thu Aug 30, 2007 11:54 pm
Location: right here

Post by #NULL »

you could show the procedurename only if no command info is availabe from the cursor position. or you could color the current procedure in the procedure browser different from the other procedures.
..or you could simply say you don't want it :P
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Post by Matt »

+1 on the ability to highlight which if endif statement you are in. Same with loops, etc... would be very useful. A lot of editors have this functionality and the PB IDE is missing it :)
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

Post by freak »

Matt wrote:+1 on the ability to highlight which if endif statement you are in. Same with loops, etc... would be very useful. A lot of editors have this functionality and the PB IDE is missing it :)
Already done for the next release, but don't tell anyone ;)
quidquid Latine dictum sit altum videtur
Matt
Enthusiast
Enthusiast
Posts: 447
Joined: Sat May 21, 2005 1:08 am
Location: USA

Post by Matt »

freak wrote:
Matt wrote:+1 on the ability to highlight which if endif statement you are in. Same with loops, etc... would be very useful. A lot of editors have this functionality and the PB IDE is missing it :)
Already done for the next release, but don't tell anyone ;)
Yes! thanks!!
I won't I promise :lol:
JCV
Enthusiast
Enthusiast
Posts: 580
Joined: Fri Jun 30, 2006 4:30 pm
Location: Philippines

Post by JCV »

Is it something like this? That would be great!
Image

[Registered PB User since 2006]
[PureBasic 6.20][SpiderBasic 2.2]
[RP4 x64][Win 11 x64][Ubuntu x64]
User avatar
Blue
Addict
Addict
Posts: 964
Joined: Fri Oct 06, 2006 4:41 am
Location: Canada

Post by Blue »

freak wrote:Already done for the next release, but don't tell anyone ;)
Yes, yes, yessssssss. And no, of course (re: don't tell)
+1 and 1 and 1

Thank God... err... Freak.

So, will that next version be ready tomorrow morning before i leave for work ?
PB Forums : Proof positive that 2 heads (or more...) are better than one :idea:
User avatar
Kurzer
Enthusiast
Enthusiast
Posts: 670
Joined: Sun Jun 11, 2006 12:07 am
Location: Near Hamburg

Re: Display corresponding line in the status of the IDE

Post by Kurzer »

freak wrote:
PB wrote:Another reason why I get lost in my code: I use PureBasic on my Eee PC,
which has a resolution of 800 x 480 pixels. So it's quite normal for a whole
procedure NOT to be seen on one screenfull of the IDE. Thus, I don't know
which procedure I'm in without scrolling up or down, which is a hassle. Not
everyone codes with a 1600 x 1280 screen (or whatever the ratio is).
Well, especially if you use such a small resolution, do you really want to waste a big part of the statusbar for the procedure name ? Because the information about the current command under the cursor certainly won't fit anymore then.
+1
It's a big problem for me too (being lost in large procedures).

But hey, we have the "procedures-panel" on the right/left side of the PB-IDE. But bad luck, the panel works only in one direction. You can click on an entry and the cursor in the sourcecode will be set to the first line of this procedure.

But if you move the cursor into another procedure the highlighted entry in the procedurepanel will not follow. :(
In other RAD-IDEs such navigation panels allways show the current procedure.

Image
PB
PureBasic Expert
PureBasic Expert
Posts: 7581
Joined: Fri Apr 25, 2003 5:24 pm

Re: Display corresponding line in the status of the IDE

Post by PB »

I just discovered another reason for the IDE to show which procedure I'm in. I was doing a repeated F3 keypress to find all occurrences of a variable, because I needed to find a certain procedure it was in. So after each F3 keypress, I had to stop and scroll up to see if I was in the procedure I was looking for. If the IDE showed it somewhere, I could just hit F3 over and over while watching the statusbar (or wherever) to see when I reached it.
I compile using 5.31 (x86) on Win 7 Ultimate (64-bit).
"PureBasic won't be object oriented, period" - Fred.
Post Reply