[PB5.31+] Total number of source code lines

Working on new editor enhancements?
User avatar
marcoagpinto
Addict
Addict
Posts: 947
Joined: Sun Mar 10, 2013 3:01 pm
Location: Portugal
Contact:

[PB5.31+] Total number of source code lines

Post by marcoagpinto »

Hello!

Freddy, can you place the total number of lines to appear at the bottom of the IDE?

Every time I want to know it, I have to scroll down to the bottom of the source code...

Thanks!
User avatar
Kiffi
Addict
Addict
Posts: 1357
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: [PB5.31+] Total number of source code lines

Post by Kiffi »

marcoagpinto wrote:Every time I want to know it, I have to scroll down to the bottom of the source code...
1.) Press a key (e.g. <Space>)
2.) Press <Ctrl> + <End>
3.) Take a look at the linenumber
4.) Press <Ctrl> + <Z> (to undo Step 1 and jump to your last position)

That's all.

Greetings ... Peter
Hygge
User avatar
Thunder93
Addict
Addict
Posts: 1788
Joined: Tue Mar 21, 2006 12:31 am
Location: Canada

Re: [PB5.31+] Total number of source code lines

Post by Thunder93 »

It sure would be convenient to have the total number lines on that status bar.

Also a single-click feature that could process all the sources tied and give total number of lines without having to compile every-time.
ʽʽSuccess is almost totally dependent upon drive and persistence. The extra energy required to make another effort or try another approach is the secret of winning.ʾʾ --Dennis Waitley
User avatar
luis
Addict
Addict
Posts: 3876
Joined: Wed Aug 31, 2005 11:09 pm
Location: Italy

Re: [PB5.31+] Total number of source code lines

Post by luis »

I'm curious: what use do you have for that information ?

I've never felt the need to know how many lines long is something I'm working on... the most close to that it's the size in bytes of the whole project if I need to transfer / deploy it in some way.

@Kiffi

Isn't CTRL+END followed by CTRL+L enough ?
"Have you tried turning it off and on again ?"
A little PureBasic review
IdeasVacuum
Always Here
Always Here
Posts: 6425
Joined: Fri Oct 23, 2009 2:33 am
Location: Wales, UK
Contact:

Re: [PB5.31+] Total number of source code lines

Post by IdeasVacuum »

Not sure why one would need a line count (perhaps a Tutor's requirement?) but since the PB IDE is using Scintilla, it should be possible to add a command that invokes the SCI_GETLINECOUNT function as a short cut (Tool).
IdeasVacuum
If it sounds simple, you have not grasped the complexity.
User avatar
Kiffi
Addict
Addict
Posts: 1357
Joined: Tue Mar 02, 2004 1:20 pm
Location: Amphibios 9

Re: [PB5.31+] Total number of source code lines

Post by Kiffi »

luis wrote:Isn't CTRL+END followed by CTRL+L enough ?
ah, much more easier! :D

Thanks & Greetings ... Peter
Hygge
Post Reply