Search doesn't look in folded text

If reporting a bug with the Zeus IDE please post the details here. Please do not post questions here.
Post Reply
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Search doesn't look in folded text

Post by Rat »

I'm not sure if this is the intended functionality or if its a setting that can be changed, but currently Zeus ignores (almost all) folded text when conducting searches?
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

I am not seeing this. For example consider this code:

Code: Select all

    public SomeCode()
    {
        FindMe();
    }
Closing the fold point and then searching for the FindMe text results in the fold being opened and FindMe being highlighted.

Cheers Jussi
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Try collapsing all of the folds in the following HTML code example and then searching for "SomeText"...

Code: Select all

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
  <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1">
  <title>Search Test</title>
  <script type="text/javascript">
   <!--
     var SomeText
   -->
  </script>
 </head>

 <body>
  Search Test
 </body>
</html>
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Thanks for the bug report, I can now replicate this issue ;)

Cheers Jussi

PS: I noticed from your sample piece of code that the last change to the XML folder has broken the folding of XML block comments :(

I have uploaded a new xFolder this fixes this: http://www.zeusedit.com/z300/xFolder.zip
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Hmmm... XML folding seems to be broken still. See example below:

Code: Select all

  <marker name="Marker 2">
   <information><![CDATA[<div>Some Test Text</div>]]></information>
  </marker>
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Note: It was definitely working with XML after you posted the original CDATA fix.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

Note: It was definitely working with XML after you posted the original CDATA fix.
I think it you are probably seeing an older cached version of the DLL zip file.

The timestamp off the dll file itself should be: 11/07/2011 2:247 PM

That timestamped dll is working for me.

Cheers Jussi
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Yep seems to be working ok on my workstation... must have stuffed up versions on my laptop.... Sorry.
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This issue should now be fixed in the latest beta version 7 found here: http://www.zeusedit.com/z300/ze397g-beta.zip

Cheers Jussi
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Hi Jussi,

If you fully collapse the following JavaScript code fragment and then do a case-sensitive whole word search for "SomeText" the program will find the word but won't open the folds enough to properly select it :(.

Code: Select all

/**
 This is a comment
 This is a comment
 This is a comment
 SomeText
 This is a comment
 This is a comment
 This is a comment
*/
AnObject = function()
{
 this.Property1 = 0;

 /**
     This is a comment
     This is a comment
     This is a comment
     SomeText
     This is a comment
     This is a comment
     This is a comment
 */
 this.Function1 = function()
 {
  try
  {
   this.Property2 = 0;
   return true;
  }
  catch (e) {}

  return false;
 };

 if (this.Function1()) {return this;}

 return null;
};
jussij
Site Admin
Posts: 2650
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij »

This issue should now be fixed in the latest version found here: http://www.zeusedit.com/zforum/viewforum.php?f=6

Cheers Jussi
Last edited by jussij on Tue Sep 20, 2011 12:35 am, edited 1 time in total.
Rat
Posts: 68
Joined: Wed Jun 15, 2011 1:18 am

Post by Rat »

Very nice Jussi... works well here. I bet there were a few late nights in that release! ;)
Post Reply