FAYT ":" suffix selection?

Hello,

So I have a bunch of *.h and *.hlsl and/or say *.c and *.cpp files. How I can select only the *.h files, or only the *.c files? How I can select both *.h and *.c files at the same time?

In many app you can add delimiter, say :*.h;*.c will match both ends, tho DO does partial matching only probably it needs some way to be told that's the end of filename, for example *.h$;*.c$ or so.

I think the FAYT select mode always does partial matching, which doesn't give you a way to match .c files without including .cpp files as well.

But if you use the Filter Bar instead, it can do that. Even if Partial Matching is turned on for the Filter Bar, if you explicitly start the pattern with * then it will turn off Partial Matching for that pattern. So *.c in the Filter Bar will only match the .c files and not the .cpp files.

(Push * to open the Filter Bar by default. Then type the pattern, including the *. After filtering, you can select-all with Ctrl-A or via the Edit menu to select everything that's still visible.)

Matching multiple extensions is done via *.(h|c) and similar. See Pattern Matching Syntax, or let the Filter Bar build the patterns for you using its drop-down list of extensions in the current file display.

1 Like