Created attachment 4795 Select files by coincidences (*%s*) by default. A small patch, to find/select files, whose name contains the keyword. The idea is use it to find files faster. Just type the word, and the code replaced it by "*word*". It's not hard to write yourself *word* but it's really annoying when you need to search for multiple files. To search like before, add a check, allowing filter by exact pattern we write. Well, If you see the patch, speaks for itself. If you are interested, i can improve it. Some ideas: * Could add some option for matching with case (un)sensitive. * Add some tooltip showing the possibilities of pattern. * Remember the option. Regards, Matias
Another option is to start with "**" in the dialog and add the cursor in the middle.
Created attachment 4800 Always start with ** What about this?
Is completely valid, But thinking about the common people, I prefer the previous approach, but still need to modify strings and add comments to understand exactly what is done. Or just add a tooltip/label explaining without changing the dialog. For commont people understood: Without any experience in using wildcards, and only expects to select files for matches. ;) Think of any other application. 99% of the programs that have a search function: * Always the filter is empty. - Add ** will be confusing. * Almost always search like *%s*, except when has a "Mach word" option to find the exact word. - But this is more limited than using wildcards, and for this leave the option in the patch. * Also, unless have the option to "Match case", always looking for independently of the case. (Do not always know that the capitalization of file that you search)
Well, I think the easiest would be add a check as in the orginal patch, but called "Selec any match" (Much more understandable than "Select _by Pattern"), and in the tooltip, add a description of the possibilities of using wildcards. I think it will be less confusing for anybody want to use it. Then, add an option to the capitalization, or make insensitive to it. But maybe this is a caprice. P.D: Always thinking on ordinary users. Advanced users can use wildcards to do complex searches, but not the most common. Regards.
Created attachment 4802 Select with any matches v.2
Attach another patch: * Chage "Select _by Pattern" option to "Selec any match". * Activate it by default. This is my preference, but you can change it. * And a tooltip to explain a bit: "Alternatively you can use '*' or '?' as wildcard to select specific patterns: '*' matches an arbitrary, possibly empty, and '?' matches an arbitrary character." - This is based on http://developer.gnome.org/glib/2.28/glib-Glob-style-pattern-matching.html Regards. Matias.
A possibility is to put * around the string if no * or ? was found in the string. I don't really like to change the option.
Did the latter in 394e115.
Perfect nick!. Thank you so much!.