I have made some changes to the Incremental Search macro (srchincr.vdm).
- When you type the search string, if the string is no more found, the prompt turns red.
If you delete characters so that the string is found again, the prompt turns back to blue.
This is similar to how the search works in Firefox and some other programs.
- Uses fixed colors on the prompt instead of using Color_Prompt.
The prompt colors in most color schemes are not very nice and often have low contrast. *)
- I don't like the red color for cursor line. Red normally means some kind of alarm. In addition, the block highlight is not very clearly visible against red.
Therefore I changed the cursor line color to light gray. If the text background or block highlight happens to be gray, then yellow color is used instead.
- F3 key can now be used for "search next" (same as Return key).
Vedit online help for Incremental Search is not up-to-date. Not all the keys are listed. And the comment "...a bit difficult to see in the Windows version" is no more valid.
Incremental search can not be found in help Index. I assume this also means that it is not possible to have context sensitive help topic for it.
*) BTW, there is no option to select prompt colors in config dialog.
Looks like the only way to select prompt color is to use config commands, for example by running color.vdm.
I think the C_W_PROMPT and C_W_HIGHLIGHT colors set by color.vdm need some adjusting.