Page 1 of 1

grep fold

Posted: Mon Dec 12, 2005 2:33 am
by davidrudd
A feature I found in CodeWrite to be very useful was the ability to grep within the F9 command line. This acted upon the current document by folding all the lines in the edit window except those satifying the grep regular expression. They didn't have the language-specific folding feature that Zeus edit has. Would it be possible to have a feature like this added to Zeus?

Posted: Mon Dec 12, 2005 3:43 am
by jussij
Hi David,
A feature I found in CodeWrite to be very useful was the ability to grep within the F9 command line. This acted upon the current document by folding all the lines in the edit window except those satisfy the grep regular expression.
By this I assume you mean all files matching the grep are displayed, while those that do not match the grep are hidden.

I might be missing something here, but isn't this how the search results windows currently works :?:

For example if I was to do this:
  1. Open the c:\program files\zeus\zexample\wildcard.c file
  2. Use the Tools, Command Line menu
  3. Type in the xfgrep.exe -f -n -i int "$fn" command line
  4. Run the command
Isn't the resulting search window nothing more than a folded representation of file in that the search window only displays lines matching the grep :?
Would it be possible to have a feature like this added to Zeus?
To me this sounds like a totally new type of folding feature, but having never used CodeWrite I am having a little difficult picturing how this feature actually works :(

For example what sort of user interface did this feature use. Was it mouse, menu or keyboard driven :?:

How where the folds displayed, could they be toggle on and off, is there an extra left margin control that manages this etc :?:

Also how did the user tell CodeWrite this was is the special fold the active file grep as apposed to a more general find in files grep :?:

Cheers Jussi