Are line numbers needed in Lister

Only forum where polls are allowed. You may announce a new poll in the matching support forum.

Moderators: Hacker, petermad, Stefan2, white

Post Reply

Are line numbers needed in Lister

Yes
26
54%
No- Plugin is enough
22
46%
 
Total votes: 48

User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Are line numbers needed in Lister

Post by *Alextp »

Are line numbers (shown at the left, in column)
needed in Lister?

This can be realized by analizing the file and counting the line numbers,
I think.
Last edited by Alextp on 2008-08-24, 14:17 UTC, edited 1 time in total.
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

:arrow: Alextp

I voted yes, it could be usefull when you want to use "Go to... Line number"

Friendly

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
Clo
Moderator
Moderator
Posts: 5731
Joined: 2003-12-02, 19:01 UTC
Location: Bordeaux, France
Contact:

But it's missing

Post by *Clo »

2Vansumsen

:) Hello Paul !

• I voted “Yes” too, but AFAIK, there is no "Go to line #… ” in Lister yet !
- Only the position as percentage…

• However, I would prefer the numbered lines, one reason among others :
- The % position doesn't work with RTF files…
- And finally, I'ld prefer such a built-in feature, using a plug-in just for that sucks.

:mrgreen: Friendly,
Claude
Clo
#31505 Traducteur Français de TC French translator Aide en Français Tutoriels Français English Tutorials
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3880
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

I prefer the Lister as is, because it shows each part of a file ultrafast, just by using the scrollbar.

To assign line numbers, Lister has to parse the whole file byte by byte for any occurrence of CRLF or CR or LF.

In case of very long lines there is currently a forced linebreak, which would result in wrong line numbers.

In case of huge logfiles, it takes ages to reach the end of file.
Currently it takes less than a second using Ctrl-End.

If I need line numbers, I can open it in an editor.
#5767 Personal license
User avatar
Vansumsen
Power Member
Power Member
Posts: 761
Joined: 2003-11-09, 08:16 UTC
Location: Belgique
Contact:

Post by *Vansumsen »

:arrow: sga_wizard

To preserve Lister speed : may be optional ?

And what about the RTF files for which the % doesn't work, and never'll work ?

Paul
Ouistiti, #11943

L'important n'est pas de convaincre, mais de donner à réfléchir.
The important thing is not to convince, but to incite to think.

1,77245385090552...
User avatar
dott
Senior Member
Senior Member
Posts: 285
Joined: 2007-03-04, 00:58 UTC
Location: La Plata, Argentina

Post by *dott »

I vote No- Plugin is enough (Scintilla Lister)
IMHO line numbers are not needed however will be welcome.

About the optional issue, I found, some time ago(searching for Line Number), this OLD (2003) tread http://ghisler.ch/board/viewtopic.php?p=1031#1031
Maybe 5 years later...
User avatar
fenix_productions
Power Member
Power Member
Posts: 1979
Joined: 2005-08-07, 13:23 UTC
Location: Poland
Contact:

Post by *fenix_productions »

I've voted for no also because I think that plugins are enough.

After all there is even a sample plugin for lister's SDK.
Sample's readme wrote:This is a sample lister plugin to show c and Pascal files with line numbers.
"When we created the poke, we thought it would be cool to have a feature without any specific purpose." Facebook...

#128099
User avatar
petermad
Power Member
Power Member
Posts: 15479
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Post by *petermad »

I voted Yes, but I don't want line numbers in the side of Lister, only info in a Status Bar showing the line and column position of the cursor (like in most text editors) - or alternatively shown in the upper right corner of the Menu Line.
License #524 (1994)
Danish Total Commander Translator
TC 11.50b4 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1383a
TC 3.60b4 on Android 6, 13 & 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 49100
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

I'm sorry but this isn't possible because of the way how lister works. If I added it, Lister would have to read the whole file from the beginning to count the lines -and would no longer be able to show GB-sized files almost instantaneously.

You can use one of the lister plugins which supports line numbers, like hpg-ed, but you will quickly notice the speed difference with big files.
Author of Total Commander
https://www.ghisler.com
User avatar
theosdikaios
Senior Member
Senior Member
Posts: 228
Joined: 2006-02-04, 13:02 UTC

Post by *theosdikaios »

2ghisler(Author)
I miss a count function in Search dialog.
Today: Search stops with every match
Wanted:Search stops not until a given number e.g. 3rd match is found

It is possible?
"Since there are many things which have never happened and never will happen,
and which nevertheless are clearly conceivable, and imply no contradiction,
how can one say they are absolutely impossible?" Leibniz
User avatar
Alextp
Power Member
Power Member
Posts: 2321
Joined: 2004-08-16, 22:35 UTC
Location: Russian Federation
Contact:

Post by *Alextp »

That will be advantage of UV..
This is possible (not for Gb file)
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

@Alextp:
Just see these threads:
http://www.ghisler.ch/board/viewtopic.php?t=4461
http://www.ghisler.ch/board/viewtopic.php?t=9805

The comments ghisler has made in there are identical to those in here. Disappointing to read such redundancies years later, really looks like the Kelly Bundy effect.
This is possible (not for Gb file)
ListXP has no problems with GB files. Like mentioned in the other threads it creates an index and autodisplays files instantly like Lister, once the index is created. Maybe that's something to think about for UV as well.

Anyway, meanwhile there also is a text editor which works somewhat like a lister, only part of the file is loaded in RAM, so no problems with huge files:
HiEditor

%tmp% drive has to be big enough to hold a working copy of the file though and it doesn't support Unicode till now. But it has another advantage over lister: It can display (and edit) control chars, for example NUL for 0x00. It includes syntax highlighting, tabs, multiline search&replace and only weighs a few kB.

It is also available as a DLL, majkinetor has created a wrapper for AHK:
http://www.autohotkey.com/forum/viewtopic.php?t=19141

Icfu
This account is for sale
Post Reply