Find text in preview

Please check the FAQ (https://www.xyplorer.com/faq.php) before posting a question...
Post Reply
Walrez
Posts: 29
Joined: 05 May 2008 16:42

Find text in preview

Post by Walrez »

Hi,

I can't find this anywhere, so sorry if it was asked before. When I preview a text file, how can I find some text inside it?

To see where is the text that was found in a search... (or just in general, for that matter).


Thanks!

Walrez
Posts: 29
Joined: 05 May 2008 16:42

Re: Find text in preview

Post by Walrez »

>bump<


Anybody?

avsfan
Posts: 554
Joined: 29 Jun 2006 09:00
Location: Fort Collins, Colorado

Re: Find text in preview

Post by avsfan »

Walrez wrote:I can't find this anywhere, so sorry if it was asked before. When I preview a text file, how can I find some text inside it?

To see where is the text that was found in a search... (or just in general, for that matter).
There are several of us that have asked for this, but up until now it hasn't been a high priority for Don. I'm hoping that changes soon, as it would be VERY useful for me!

so another +1 on this!

PeterH
Posts: 2826
Joined: 21 Nov 2005 20:39
Location: DE W11Pro 24H2, 1920*1200*100% 3840*2160*150%

Re: Find text in preview

Post by PeterH »

Currently you have to open the file with an editor or alike.

It seems that when Don thinks he has nothing of higher priority he also might simulate an editor.
One of the problems: many people with different high priorities...

Though at least there is one true point: you can search for a file with some contents - and can't view the location where it's found.

But I'm convinced: this will last a long time...

binocular222
Posts: 1419
Joined: 04 Nov 2008 05:35
Location: Win11, Win10, 100% Scaling

Re: Find text in preview

Post by binocular222 »

To search for content and see where the found text is, I use File Locator instead of XY's built in search
I'm a casual coder using AHK language. All of my xys scripts:
http://www.xyplorer.com/xyfc/viewtopic. ... 243#p82488

Enternal
Posts: 1174
Joined: 10 Jan 2012 18:26

Re: Find text in preview

Post by Enternal »

Yeah use AgentRansack (FileLocator Lite - same program just different branding) with the ExternalSearch script and that should be good.
http://xyplorer.com/xyfc/viewtopic.php? ... ch#p100929

Stef123

Re: Find text in preview

Post by Stef123 »

binocular222 wrote:I use File Locator instead of XY's built in search
Same here. Been using the pro version for a long time. Runs portable, you can nest searches, it will highlight the found search terms in different colors, and show their occurences on mini-map bars within file previews. Besides, the boolean regex make complex queries easy, even for an regex-illiterate like me.

To include labels and tags, however, you have to fall back on XY's search engine. I still have to figure out how to pass on a paperfolder list of these search result to FileLocator. It were easier to do it all in one step, of course, so yes, I also second the orginal request of this thread.

Walrez
Posts: 29
Joined: 05 May 2008 16:42

Re: Find text in preview

Post by Walrez »

Weird, I posted a reply from home and can't see it at work...

Anyway, thanks for the answers.
I tried the script method. Installed a. ransack, ran the script, and I got in return a folder with the resulting files.
How can I see the contents and the search term inside of it?

Stef123

Re: Find text in preview

Post by Stef123 »

Walrez wrote:Weird, I posted a reply from home and can't see it at work...
Because you answered here:
http://www.xyplorer.com/xyfc/viewtopic. ... 42#p117142
Walrez wrote:How can I see the contents and the search term inside of it?
You cannot, afaik. Not by using the script, that is. You'd have to call up Ransack without the return-parameters, turning the search completely over to Ransack, out and away from XY.

Walrez
Posts: 29
Joined: 05 May 2008 16:42

Re: Find text in preview

Post by Walrez »

Stef123 wrote:
Walrez wrote:Weird, I posted a reply from home and can't see it at work...
Because you answered here:
http://www.xyplorer.com/xyfc/viewtopic. ... 42#p117142
Walrez wrote:How can I see the contents and the search term inside of it?
You cannot, afaik. Not by using the script, that is. You'd have to call up Ransack without the return-parameters, turning the search completely over to Ransack, out and away from XY.
Ah... I thought it was mentioned here because of the subject...

I wonder if there's a way to retrieve the string that was specified for a search as a variable to use it inside a script.

Should I ask in the scripting sub-forum?

Post Reply