Page 1 of 1

Pass text to find in Lister via command line

Posted: 2011-02-24, 14:14 UTC
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!

Posted: 2011-11-29, 14:12 UTC
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:

Posted: 2011-11-30, 15:51 UTC
by ghisler(Author)
Hmm, what would be the use of it? It seems that no one else showed any interest in it so far.

Posted: 2011-11-30, 17:36 UTC
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 :)

Posted: 2011-12-01, 14:22 UTC
by ghisler(Author)
You mean that Lister wouldn't have to search for the string, just remember it for the next press of F3?

Posted: 2011-12-02, 09:58 UTC
by Valentino
Exactly.

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