Dfind


Lightning


Programmers fast text search tool.

  1. Dfind
      1. Programmers fast text search tool.
        1. Features:
        2. Looking at results
        3. Viewing options and how to set
        4. Advanced functions
        5. Advanced options - Search Multiple Folders
        6. Search History
        7. Miscellaneous features
        8. Advanced Options - Search Multiple Strings
        9. Example of search selections using multiple folders and multiple strings
      2. Search/Replace
        1. Example using Search/Replace
        2. Search/Replace Backup files
        3. Archive example

Features:


Dfind 1

Folders - The current button selects the current folder, the Browse button allows you to choose a folder

Looking at results

You can search for any text within results using CTRL+F  and F3 for Find Next

In the results, CTRL+N jumps to the next file,  CTRL+P to the previous file

You can view a window of 10 lines around the highlighted line. Press CTRL+W to toggle this window on and off

Dfind results screen


You can view the entire file of the highlighted line.  Press CTRL+V to toggle this window on and off

(This shows part of the file viewer on the right over the results window on the left.  Normally the file viewer will fill the screen).

VIewFile-V

You can Double-click any line of the file and depending on what is set as the Viewer for that file it will open with this.

Viewing options and how to set

If there is no action defined for this file type, the program will ask how to open the file

ViewAsk


Possible options you can set up for any file extension/file type are:

ASK    Asks how to open the file

WINDOWS  using the windows default program to open the file

VIEWER   uses the built in file viewer

Notepad

Notepad++ and EditPlus can alos be used if installed - you need to set where installed to and the advantage of these programs is they will position the cursor at the exact part of the file

These can be set in the ini file - for example:

[Viewer]
TXT=Notepad
BAT=E:\JBData\Programs\EditPlus4\Editplus.exe
XML=E:\Utilities\Programs\Notepad++.exe
PAS=E:\JBData\Programs\EditPlus4\Editplus.exe
BAK=ASK
LST=Viewer

Advanced functions

The "Advanced" check box at the top of the screen turns on a few extra facilities:

More than one folder can be searched

Multiple strings can be searched

The button at the end of each selection can add more advanced functions

The extra options tabs are:

Search filenames by date and time - you can select only files that were created or modified in a date range

Options for View Window - if you are looking up a file where a non-proportional font looks better then use this option

and also the default is to allow searching files that may be in use - select the other option (Standard LoadFromFile)  to skip in use files.

Advanced options - Search Multiple Folders

Folder Selection

Search History

Miscellaneous features

Advanced Options - Search Multiple Strings

Example of search selections using multiple folders and multiple strings

Advanced search 1


Search/Replace

Example using Search/Replace

Selection screen

SearchReplace options

Examples of Search/Replace running, with query about replacing a line

QueryLine


When changes are completed for a file, the screen below is seen - this shows the changed lines for the file.

Save File

Before you decide to save the file or not, it is strongly recommended you use the Show Differences option:

Show Differences

This provides a cross check that the changes will be as you expect.   Note you can do this check before you elect to overwrite the original file with the changes.

Search/Replace Backup files

There are several ways that Search/Replace changes are tracked

Archive example

-<<<< Dfind Archive >>>>-
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><1
Archived:26-Aug-18 ~ 19:06:47 ~ Lines=506 ~  Size=21663 ~ E:\JBData\Test Long with Spaces\Replace2.txt ~ Changes=3 ~ 17-Apr-18 13:07 size=21663<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><2
(complete file contents of Replace2.txt before changes are here)
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><3
Archived:26-Aug-18 ~ 19:06:47 ~ Lines=506 ~  Size=21663 ~ E:\JBData\Test Long with Spaces\Replace2.txt ~ Changes=3 ~ 17-Apr-18 13:07 size=21663
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><4
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><1
Archived:26-Aug-18 ~ 19:12:55 ~ Lines=490 ~  Size=20170 ~ E:\JBData\Test Long with Spaces\Replace3.txt ~ Changes=7 ~ 18-Apr-18 12:07 size=20170
<><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><><2
(complete file contents of Replace3.txt before changes are here)



This Header information repeats at the beginning and end of the file - followed by the next file archived