"Next file" and "Previous file" in Lister don't work

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

"Next file" and "Previous file" in Lister don't work

Post by *Sektor »

Say, I have several text files in a folder. When I run Lister to watch them through and press N or P, Lister does nothing - it doesn't show me next or previous file.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: "Next file" and "Previous file" in Lister don't work

Post by *Dalai »

Next and Previous only do something when you mark multiple files in TC before opening Lister. They don't switch to the next/previous file in the same directory (and never did). See also TC help (search the Index for Lister):
If you open the viewer with multiple files, (see Configuration - Edit / View), you can switch from one file to the next/previous using the keys n (next) and p (previous file).
(emphasis added)

Regards
Dalai
Last edited by Dalai on 2019-08-02, 16:36 UTC, edited 1 time in total.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: "Next file" and "Previous file" in Lister don't work

Post by *Sektor »

@Dalai Doesn't work either when I selected several files.
License #299429
There is no knowledge that is not power
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: "Next file" and "Previous file" in Lister don't work

Post by *Sektor »

I have found out that if I scroll several lines down and press either N or P, Lister just scrolls to the top of the file.
License #299429
There is no knowledge that is not power
User avatar
Horst.Epp
Power Member
Power Member
Posts: 6449
Joined: 2003-02-06, 17:36 UTC
Location: Germany

Re: "Next file" and "Previous file" in Lister don't work

Post by *Horst.Epp »

Sektor wrote: 2019-08-02, 16:41 UTC I have found out that if I scroll several lines down and press either N or P, Lister just scrolls to the top of the file.
Test it with a fresh ini and you will see that N and P in internal Lister are working as described.
If you use any plugins it may depend on their behaviour.
I have CudaLister and ULister for example which also support the N and P keys to cycle thru the selected files from TC.
Windows 11 Home x64 Version 23H2 (OS Build 22631.3374)
TC 11.03 x64 / x86
Everything 1.5.0.1371a (x64), Everything Toolbar 1.3.2, Listary Pro 6.3.0.69
QAP 11.6.3.2 x64
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: "Next file" and "Previous file" in Lister don't work

Post by *Sektor »

@Horst.Epp
Indeed, in clean TC installation everything is OK! In my TC I have also checked "Redefine hotkeys" - nothing is assigned to these letters. Also, I don't have any extensions. BTW, Lister goes into endless loop when moving to the next file, i.e. it doesn't stop after last after the last file - it goes again to first file (like Photo Viewer in Windows 7).
License #299429
There is no knowledge that is not power
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: "Next file" and "Previous file" in Lister don't work

Post by *Dalai »

Sektor wrote: 2019-08-02, 17:30 UTCAlso, I don't have any extensions.
Are you sure? What does Lister say in the title bar?

Can you switch files via Lister's File menu or the << and >> items directly in Lister's menu?

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: "Next file" and "Previous file" in Lister don't work

Post by *Sektor »

Dalai wrote: 2019-08-02, 18:50 UTC
Sektor wrote: 2019-08-02, 17:30 UTCAlso, I don't have any extensions.
Are you sure?
Yes, I've checked all plugins in Configuration - none was found.
What does Lister say in the title bar?
It says "Lister - [C:\Temp\docs\changes.txt]"
Can you switch files via Lister's File menu or the << and >> items directly in Lister's menu?
Commands in menu don't work either. :(
Couldn't find the location of << and >> items...
Last edited by Sektor on 2019-08-03, 07:00 UTC, edited 1 time in total.
License #299429
There is no knowledge that is not power
User avatar
HolgerK
Power Member
Power Member
Posts: 5406
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Re: "Next file" and "Previous file" in Lister don't work

Post by *HolgerK »

Sektor wrote: 2019-08-02, 16:33 UTC @Dalai Doesn't work either when I selected several files.
Configuration -> Options -> Edit/View:
"(o) Internal Viewer with selected files" ?
or do you have select "(o) Internal Viewer with file under cursor" ?

Regards
Holger
Make our planet great again
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: "Next file" and "Previous file" in Lister don't work

Post by *Dalai »

The << and >> items appear all the way to the right of Lister's menu after you select multiple files in TC and open them in Lister. If they don't appear, you didn't select multiple files.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
User avatar
Usher
Power Member
Power Member
Posts: 1675
Joined: 2011-03-11, 10:11 UTC

Re: "Next file" and "Previous file" in Lister don't work

Post by *Usher »

Or maybe selected, but didn't run, depending on F3/Shift+F3/Alt+F3 assignment in Edit/View options.
Andrzej P. Wozniak
Polish subforum moderator
Sektor
Member
Member
Posts: 157
Joined: 2007-04-04, 10:11 UTC
Location: Russia

Re: "Next file" and "Previous file" in Lister don't work

Post by *Sektor »

@Usher, @Dalai, @HolgerK
Oh! 😐I should press Shift+F3 rather F3! Now all is OK! Thanks everyone! :)
License #299429
There is no knowledge that is not power
User avatar
Phred
Senior Member
Senior Member
Posts: 375
Joined: 2009-06-16, 15:24 UTC
Location: SEAu

Re: "Next file" and "Previous file" in Lister don't work

Post by *Phred »

After umpteen years of relying on 'Lister.exe', 495,040 bytes, dated 4th July 2007, I have just seen the beauty of TC's internal implementation of Lister.
A revelation.

It makes me wonder why I always dragged Lister.exe out of the installing administrator's Program Files\Total Commander\ folder (where I put TC) and put it in \Users\Public\Downloads\OtherApps\.
It was invariably impossible to configure the external Lister as an everyday standard user, but now the internal version excels.

And I've just found the << and >> controls in the program's Menu Bar - up at the top right / of its window.

I note that the (optional) multiple loaded files will retain any internal search words - 'Find text' - allowing you to [N]ext to the next file and F3 for the same search text without re-entering it.
For example, Files, Commands, Search (or Alt, c, s)(or Alt+F7), enter a file spec, Find text (Alt, t), enter some text, Start (Alt+s)(or Enter), [wait], Feed to listbox (Alt, l), [select all] (Ctrl++), F3 F3 F3, n for the next file (or Alt+[right-arrow] or >>)(or p for the previous file (or Alt+[right-arrow] or <<), F3. Repeat.

Remember, Configuration, Options [Alt, o, o if desired], Edit/View, Viewer for F3, [radio-button] Internal viewer with selected files ..F3.

Notice the 'Configure internal viewer' [Alt+c if desired] button-bar a little lower down, too.

Esc(ape) closes the viewer, if desired.
Refresh the listpanel with Ctrl+R after a file-search and feed to listbox (or Ctrl+Page Up if it's easier to feel for those keys).


[Note to Author Ghisler: after an aborted/stopped/paused (Enter), 'Go to file' default has no effect since no file is selected. Alt+s to restart the search loses the default Stop button.]

Tags for future reference: new lister configure internal Viewer for F3 Edit/View continue find text
Regards, PhredE
Licence holder since 1999
Awaiting a $D donors-token for the title-bar so we can display that we have donated further.
Post Reply