Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / lazarus / 2003-07

Patch Find in Files.

4 messages · 2 people ·

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

Mattias Gaertner
to Bob Wingard: This patch adds the options All Files In Project and All Open Files. It also cleans up a…
Show quoted text 11 lines
Mattias, This patch adds the options All Files In Project and All Open Files. It also cleans up a couple of problems that I saw while using the findinfiles dialog. I even got rid of the hard coded '/', it turned out I did not need to pass a valid directory to the MessagesView.Add. This file includes all the changes that I sent you before as well as the changes that I just made. I still have not done anything to the FindInFiles Dialog, tommorow.

I have applied the patch and broke the unit circle. Circles are avoided to get a simpler unit hierachy. I also added the history of 'find', although the handling can be improved.

To the message window:
The message window is good place for now.
It is planned to add a special "Search result" window. This window will support highlighting, updates and context information. This way search results are not lost on every simple source error. Also it can be extended to show context information, like a few lines in front and behind the found place. This will be useful especially for the search of identifiers and renaming of identifiers/code.

Mattias

Reply by email

Bob Wingard

Mattias,

This patch adds the options All Files In Project and All Open Files. It also cleans up a couple of problems that I saw while using the findinfiles dialog. I even got rid of the hard coded '/', it turned out I did not need to pass a valid directory to the MessagesView.Add.

This file includes all the changes that I sent you before as well as the changes that I just made.

I still have not done anything to the FindInFiles Dialog, tommorow.

Bob Wingard

-------------- next part --------------
A non-text attachment was scrubbed...
Name: zip00017.zip
Type: application/octet-stream
Size: 3761 bytes
Desc: "findinfiles.zip"
Url : http://localhost/pipermail/lazarus/attachments/20030728/a55a8874/zip00017.obj

Reply by email

Mattias Gaertner
to Bob Wingard
Show quoted text 20 lines
Mattias Gaertner wrote: >On Sun, 27 Jul 2003 23:43:57 -0400 >Bob Wingard wrote: > <snip> >To the message window: >The message window is good place for now. >It is planned to add a special "Search result" window. This window will >support highlighting, updates and context information. This way search >results are not lost on every simple source error. Also it can be >extended to show context information, like a few lines in front and >behind the found place. This will be useful especially for the search of >identifiers and renaming of identifiers/code. > > > Do you plan for the search result window to be a tab in the current Message Dialog using some form of the Synedit component?

Synedit and the position highlighter can be used for it. I'm not sure if the search results and the messages should be combined. The search result with context information needs much more space than the messages. So I think, the default should be a separate window. When we have docking the user can combine them.

Mattias

Reply by email

Bob Wingard
to Bob Wingard: This patch adds the options All Files In Project and All Open Files. It also cleans up a…
Mattias Gaertner wrote
On Sun, 27 Jul 2003 23:43:57 -0400 Bob Wingard wrote:

<snip>

Show quoted text 11 lines
To the message window: The message window is good place for now. It is planned to add a special "Search result" window. This window will support highlighting, updates and context information. This way search results are not lost on every simple source error. Also it can be extended to show context information, like a few lines in front and behind the found place. This will be useful especially for the search of identifiers and renaming of identifiers/code.

Do you plan for the search result window to be a tab in the current Message Dialog using some form of the Synedit component?

Bob

Reply by email