script function for Highlight names or words in list or tree

Features wanted...
Post Reply
martin
Posts: 4
Joined: 26 Nov 2018 12:30

script function for Highlight names or words in list or tree

Post by martin »

Hi,

Can we have a script function command working like the "Type Ahead Find Highlight" ?
like the " >>spot " in the adress bar

to use in addition of : search, search filters, instant color filters, color filters, visual filters, etc...

function command like :
highlight_spot_text ( "text to find" , "in list or tree or both" , "color" )

to have a script for find and select files, and show to us exactly where is the text finded.

Code: Select all

"Selection|:select"
   $FILECONTENT = readfile( "<xydata>\My Data\list of text to find.txt" );
   selfilter $FILECONTENT ;
   highlight_spot_text ( $FILECONTENT , "in list" , "#FFFF00" )
   
Image

Thank you so much !!

highend
Posts: 14954
Joined: 06 Feb 2011 00:33
Location: Win Server 2022 @100%

Re: script function for Highlight names or words in list or tree

Post by highend »

Why don't you just use the ">><string>" function?

Code: Select all

goto ">><the text you want to highlight>";
One of my scripts helped you out? Please donate via Paypal

martin
Posts: 4
Joined: 26 Nov 2018 12:30

Re: script function for Highlight names or words in list or tree

Post by martin »

Hi,

Thank you !
you're smart,

Code: Select all

goto ">><the text you want to highlight>";
goto ">>$FILECONTENT";
this works perfectly, thank you,

I didn't use this before because I didn't find it in the "Scripting Commands Reference"
I was thinking "goto" can only be used to go to a location like c: …
But look like "goto" send data to adress bar...

so in adress bar :

Code: Select all

>text
equal

Code: Select all

::goto ">text";
I understand now "goto" can be used in script

thank you again for your very fast answer

Post Reply