Pass text to find in Lister via command line

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Pass text to find in Lister via command line

Post by *Valentino »

It is possible to launch Lister via command line:

Code: Select all

TotalCmd.exe /S=L:<options> <file to view>
It works fine. But when I press F3 in Lister it asks for the text to find. Is it possible to add one more command line switch (or better sub-switch in /S=L) to pass the text to find, so that pressing F3 in Lister would find first occurrence without showing any dialogs?

For example:

Code: Select all

TotalCmd.exe /S=L:NF"text to search" <file to view>
Search options (case-sensitive, whole-words, hex, regex) could be passed between F and the text:

Code: Select all

TotalCmd.exe /S=L:NFCWHX"text to search" <file to view>
Thanks!
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Christian, you recently added this feature in beta 10:
20.11.11 Added: Lister: Jump to bookmark in html when loading from command line e.g. TOTALCMD.EXE /S=L:T5 file.html#bookmark (32/64)
Please consider this suggested feature on the hot track :roll:
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

Hmm, what would be the use of it? It seems that no one else showed any interest in it so far.
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

I wrote little app that performs some search in files on disk according to my criteria and shows the results. To quickly look at the found files I implemented launching TC's Lister on pressing F3 on the found file. Then I'd like to press F3 one more time (in Lister) to quickly show me the found string. But since Lister does not support what I'm asking in this topic, pressing F3 shows me the dialog box where I have to type what I want to find.

I understand that this request is not widely wanted. I just thought that maybe it's easy for you in current circumstances since you already touched this code. If it takes time to implement then of course let it be in your long-long to do list :)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50873
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

You mean that Lister wouldn't have to search for the string, just remember it for the next press of F3?
Author of Total Commander
https://www.ghisler.com
User avatar
Valentino
Power Member
Power Member
Posts: 709
Joined: 2003-02-07, 00:21 UTC
Location: Ukraine

Post by *Valentino »

Exactly.

P.S. Maybe it makes sense to provide both functions: D - defer find (what I asked) and F - find immediately?
Post Reply