grep fold

This forum should be used for all code folding problems, questions or suggestions. You can also use this forum to request folding support for a new language.
Post Reply
davidrudd
Posts: 1
Joined: Mon Dec 12, 2005 2:23 am

grep fold

Post by davidrudd » Mon Dec 12, 2005 2:33 am

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?

jussij
Site Admin
Posts: 2488
Joined: Fri Aug 13, 2004 5:10 pm

Post by jussij » Mon Dec 12, 2005 3:43 am

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

Post Reply
kuchnie warszawa opinie

Who is online

Users browsing this forum: No registered users and 1 guest