Show active line in Lister

Here you can propose new features, make suggestions etc.

Moderators: white, Hacker, petermad, Stefan2

Post Reply
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Show active line in Lister

Post by *browny »

Real life example: text file with long lines; it is a table.
The value of interest is in the leftmost position, but search expression would be found in the column quite far to the right.
It is possible, though inconvenient, to Home key, then F3 twice to go to the next location - and so on.

It might be useful to show the active line to make it easily distinguishable; commonly this is done with a very light shade of grey.

But please no separating lines as in Compare by Content, because these separators hide underlines. :)
(That was the subject of a different suggestion).
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Show active line in Lister

Post by *petermad »

Are you sure you are talking about a plain text file. AFAIK text files does not support tables. Are you sure your file is not shown in Lister by som plugin or that it is an .rtf file? Click Options in Lister - is "1 Text only" or "4 Image/Multimedia" selected?
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
User avatar
ts4242
Power Member
Power Member
Posts: 2081
Joined: 2004-02-02, 20:08 UTC
Contact:

Re: Show active line in Lister

Post by *ts4242 »

browny wrote: 2019-03-11, 08:20 UTC It might be useful to show the active line to make it easily distinguishable; commonly this is done with a very light shade of grey.
Support++
Advanced text editors usually highlights active line, e.g. Notepad++

You can select the line manually to temporarily highlight it.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: Show active line in Lister

Post by *Stefan2 »

Please note that Lister is not an Advanced text editor, but a quick way to show even the largest files.
As Mr. Ghisler already told, such additional features could slowdown the process of QUICKly showing files.

If one would need such features, he could already use alternatives to Lister,
f.ex. see http://totalcmd.net/directory/synplus.html and others like hpg_ed or CudaLister, or even Notepad++ or Notepad2

Ahh, there is also a dedicated page for editors: http://totalcmd.net/directory/editors.html



 
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Show active line in Lister

Post by *Usher »

petermad wrote: 2019-03-11, 19:12 UTCAre you sure you are talking about a plain text file. AFAIK text files does not support tables.
I'm pretty sure it's some log file. It's more or less a table in the database meaning. Many programs use syslog format or similar – fields are separated with space. Some programs use special field separators - tab, comma,semicolon, pipe, etc., see https://en.wikipedia.org/wiki/Delimiter-separated_values

There are dedicated tools to work with such files (syslog analyzers, database utilites).
But in the simplest case I would work another way. First, limit text to browse using command:

Code: Select all

find "keyword_far_right" log.txt > keyword.log.txt
Then just browse keyword.log.txt in lister with no need to search and go Home-down-F3-Home-down-F3…
Andrzej P. Wozniak
Polish subforum moderator
User avatar
petermad
Power Member
Power Member
Posts: 14739
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Show active line in Lister

Post by *petermad »

. It's more or less a table in the database meaning.
Wouldn't that be called a Comma Separated file (.csv) or a Tab Delimited file (.tab) ?

It was just because browny called it tables, so it might be a formatted document like .rtf or of course .doc(x), and that it was maybe a plugin showing his file rather than Liste in plain Text mode.
Last edited by petermad on 2019-03-13, 10:07 UTC, edited 1 time in total.
License #524 (1994)
Danish Total Commander Translator
TC 11.03 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1371a
TC 3.50b4 on Android 6 & 13
Try: TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Show active line in Lister

Post by *browny »

petermad wrote: 2019-03-11, 19:12 UTC Are you sure you are talking about a plain text file.
Pretty sure.
If you never saw a text file formatted as a table, please use Excel/LibreOffice/OpenOffice/whatever... and save a spreadsheet as a text file (tab delimited for better results).
ts4242 wrote: 2019-03-11, 20:26 UTC Advanced text editors usually highlights active line, e.g. Notepad++
This is a stock feature nowadays; even for rather simple editors.
browny
Senior Member
Senior Member
Posts: 287
Joined: 2007-09-10, 13:19 UTC

Re: Show active line in Lister

Post by *browny »

Stefan2 wrote: 2019-03-12, 08:12 UTC Please note that Lister is not an Advanced text editor, but a quick way to show even the largest files.
There is no need to impersonate Cpt. Obvioius.
Nor did I ask which editor to use, or what convoluted steps to follow, or how to write a program for the task.
Stefan2 wrote: 2019-03-12, 08:12 UTC As Mr. Ghisler already told, such additional features could slowdown the process of QUICKly showing files.
Is there any understanding how complex and resource consuming is that particular feature?
(A hint: it is already possible to select the whole line by repeatative double-clicking on it; which effectively would make a kind of "active line cursor".)
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: Show active line in Lister

Post by *Usher »

petermad wrote: 2019-03-12, 16:51 UTC
It's more or less a table in the database meaning.
Wouldn't that be called a Comma Separate file (.csv) or a Tab Delimited file (.tab) ?
It doesn't matter, which format do you choose, known or unknown, it's a table in plain text (note: "plain text" is NOT equivalent to MIME type "text/plain"). And it was just an example.

Focus on the real problem, please: Line highlighting is needed NOW, because TC supports very long lines NOW.
It will be useful also without search, f.e. when you manually mark some text and scroll Lister window with mouse far from that text. If you move a cursor to quickly go back to that text, you will have to mark it again.
Andrzej P. Wozniak
Polish subforum moderator
Post Reply