Page 1 of 1

Find text in preview

Posted: 13 Jan 2015 10:55
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!

Re: Find text in preview

Posted: 17 Jan 2015 15:42
by Walrez
>bump<


Anybody?

Re: Find text in preview

Posted: 17 Jan 2015 21:03
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!

Re: Find text in preview

Posted: 18 Jan 2015 00:05
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...

Re: Find text in preview

Posted: 18 Jan 2015 03:21
by binocular222
To search for content and see where the found text is, I use File Locator instead of XY's built in search

Re: Find text in preview

Posted: 18 Jan 2015 03:59
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

Re: Find text in preview

Posted: 18 Jan 2015 09:15
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.

Re: Find text in preview

Posted: 20 Jan 2015 14:55
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?

Re: Find text in preview

Posted: 20 Jan 2015 15:12
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.

Re: Find text in preview

Posted: 20 Jan 2015 17:12
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?