Page 1 of 1

FiF3 and FiF4: comparing and future

Posted: 07.05.2020 15:42
by kvichans
CudaText now has two my plugins to search in files/tabs
"FindInFiles-v3" (FiF3)
"FindInFiles-v4" (FiF4)
I want to talk about them.

Important:

FiF3 is almost frozen. Only serious bugs will be fixed. No plans to hide/delete FiF3.
FiF4 will supersede FiF3. Now FiF4 has only one disadvantage - it has no "Replace". "Replace" will appear later (maybe in the summer).

Details of comparison:

Common features:
1. Speed of search.
    Speed of FiF3 is stable.
    FiF4 can search faster or slower depending on the settings. In the "slow" mode FiF4 gives more complex Results or uses more complex filters.
2. Encoding detection.
    FiF4 allows to set more flexible plan (see submenu "=/Encoding plan").
3. Presets.
    Both versions allow to define and restore named set of search parameters.
    FiF4 allows to run dialog and start immediate search with parameters from a preset (see main menu command "Find by preset...").
    FiF4 allows to restore [pre]previous parameters (runtime auto saving).
4. Results/Source
    FiF3 allows to put Results in old/new tab or in dialog editor control.
    FiF4 allows to put Results only in dialog editor control and has a command to copy Results to new tab.
    Both allow to open the source file for specified fragment in new tab.
    FiF3 can place Results and Source vertically or horizontally. FiF4 has only one way.
5. FiF3 has commands to count fragments and to show only filenames. FiF4 skips such commands as unnecessary.
6. FiF3 can search in project folder(s). FiF4 will do that soon. UPD Version in GitHub is fixed: macro "{p}" will replaced with project folders.
7. FiF3 can save dialog layouts. FiF4 saves layout as part of preset.


Main new features:
1. FiF4 can report the found fragment with its around lines (see "-?+?" button).
2. FiF4 can search multi-line fragments (see "+" button).
3. FiF4 can search in many start folders.
4. FiF4 allows to use lexer data to filter and report fragments (in/out string/comment, lexer path).
5. FiF4 allows to show lines in the Results with its lexer colors from source files.
6. FiF4 allows to use macro-variables (OS environments, properties of current file/tab and free-set names) in any editable fields.
7. FiF4 has statusbar to show statistics of the last search: folders/files/fragments/timing.
8. FiF4 allows to reformat Results (change tree type and more) without new search.
9. FiF4 allows to show modification time of files in the Results.

Posted: 15.05.2020 00:10
by hycmos
I installed FIF3&4 before.
It seems FIF4 got frozen after I searched something.
Even I re-started the Cudatext the FIF4 still frozen.
So I returned to FIF3.

expect that "Replace" will appear later in FIF4

Posted: 15.05.2020 09:34
by kvichans
FiF4 was not frozen but only not developing - i was busy a half year. Now i am more free and want to update FiF4.
Issues and proposals are welcome.

Posted: 15.05.2020 22:58
by hycmos
sorry, I didnot show my idea clearly.
I want to say, FIF4 can not work well in my computer.
It seems FIF4 has a little bug.
FIF3 is more stable in my computer.
so I use FIF3 now.

but I re-installed FIF4 yesterday, it is OK by now.

Posted: 16.05.2020 07:43
by kvichans
I will wait your issues on github

Posted: 16.05.2020 13:26
by hycmos
kvichans wrote:I will wait your issues on github
OK, thank you for your FIF.
I update the cudatext frequently.
Now I use the last cudatext. hope the issue is related to the version of cudatext.
because the FIF4 works well by now, the cudatext I use now is v1.99.0.0.

Posted: 24.10.2020 17:00
by dhealey
FIF4 doesn't work in the right click context menu for find in directory.

Posted: 24.10.2020 18:25
by Alexey
@kvichans
Repro:
in Project Manager, add a folder, right click it, item "Selected directory / Find in directory",
it don't work with FIF4 (only FIF3).

Posted: 27.10.2020 15:32
by Alexey
FIF4 will be called too, like FIF3. From next Cud update. Tks.