<div dir="ltr"><br><div class="gmail_extra">[...]</div><div class="gmail_extra"><br><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
> > custom - this is exactly the same as entering something in Files.<br>
><br>
> Well, its "Not Project", ie you need some way to switch away from using<br>
> project settings, how good "Custom" is as a name is open.<br>
<br>
So it only exists because Project exists, and has no intrinsic value.<br></blockquote><div><br></div><div>The key point of the "project" option is that the file patterns are stored in the *project* file not in the *user* preferences.  </div>
<div><br></div><div>The project patterns are edited in the project preferences and the changed value appears in the FIF dialog field.</div><div><br></div><div>This is consistent with all the other places project settings override user settings, they need to be edited in the project prefs so the user understands that they are saved in the project file.  </div>
<div><br></div><div>I'm not sure this is such a brilliant general UI decision, but its an attempt to ensure that users are not confused by the "complex" idea that one set of settings can override another, and that they know which set they are editing.  I don't think this setting should deviate from the norm.</div>
<div><br></div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
> > project - this is not exactly the same as placing the Project 'File<br>
> > patterns' in Files. It pastes them, all right, but then locks the<br>
> > field, so you can't add / remove / edit a pattern. And the only reason<br>
> > to lock them is "consistency": the 'project' choice must correspond to<br>
> > these patterns exactly. Well, if you do a Find, and then switch to<br>
> > 'custom', and then open the Files history, you will be able to edit<br>
> > the patterns after all... Last and least, 'project' grays the patterns,<br>
> > making them less visible.<br>
> ><br>
><br>
> Make sure this functionality isn't important to the project plugin(s).  I<br>
> remember vaguely some significant discussion on the subject during one of<br>
> the project plugin developments.<br>
<br>
If a plugin can access the field, it can simply fill it with something<br>
and lock it, without using an additional combo box.<br></blockquote><div><br></div><div>Its not just the project plugins, the built-in project does it too, see above.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
Of course, if I change FiF, I will make sure that the plugins work.<br>
<br>
> The fact that you can edit the paths when you have switched to custom is<br>
> irrelevant, that doesn't save to the project.<br>
<br>
I could not understand this sentence, but agree about "not saving the<br>
project". It doesn't save "all" and "custom" either. :)<br></blockquote><div><br></div><div>Hopefully explained better above, sorry.  Note that the combo box value and the "custom/non-project/whatever we want to call them" file patterns are meant to be saved in the user preferences, and it works for me.</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> > Proposition:<br>
> > Remove the combo box.<br>
> > Add a paste icon on the right of files, above the Directory selection<br>
> > icon, and set it's tooltip to "Paste the project patterns, if any".<br>
> ><br>
><br>
> This is not the same functionality, choosing project on the combo is a<br>
> sticky choice that follows the project settings, with this change the user<br>
> would have to remember to paste when changing the project setting or after<br>
> a custom search.<br>
<br>
And it also blocks editing the patterns. The most common starting point<br>
for specifying custom patterns does not work.<br></blockquote><div><br></div><div>Explained (hopefully) above.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
The "same functionality" can be achieved by using a check box, since<br>
the distinction between "all" and "custom" is nonsense. That'll still<br>
block editing, but at least won't be so clumsy.<br></blockquote><div><br></div><div>I wasn't meaning to argue *for* a combo, just the distinction between project and custom/non-project/whatever.  As we agreed, "all" is redundant if the delete is available, so a "project" check box is fine by me so long as it does the same as the project setting on the combo.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
Or we can check if the field contains the current project patterns,<br>
and fill it with the new project patters on switch. Big deal.<br></blockquote><div><br></div><div>If "project" is selected copy whatever the project has in it.  Blank means "everything" so it too has to be copied.  There is really no need to check if its the same, just copy it :)</div>
<div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> > FiF checks if a project is open, but not whether it really contains<br>
> > 'File patterns' - RFC.<br>
><br>
> Which is the project's problem, not the search's.  Search should not impose<br>
> requirements on projects.<br>
<br>
It doesn't, and I do not propose such a thing. It's just strange that<br>
"project" is disabled if there is no project, but enabled if there are<br>
no project paths.<br></blockquote><div><br></div><div>See above, no patterns means "everything".</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

[...]<br>
<br>
We are not using POSIX grep, it doesn't even support recursive search<br>
AFAIK. We are using GNU grep, and the above options work on our<br>
supported platforms, *NIX and Win32.<br></blockquote><div><br></div><div>I understood that in the past there was an attempt to not limit this to GNU Grep.</div><div><br></div><div>Personally I would agree that it isn't worth supporting anything else, but Colomban needs to approve that decision and the documentation needs to be updated to note the limitation, and I guess the label on preferences->tools->grep should be "GNU grep" to make sure its understood thats all that is supported.</div>
<div><br></div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<br>
> The hard coded grep options thing has always been a<br>
> problem (eg see the Note in the manual).  The grep setting in tools should<br>
> accept a whole command like most of the other settings, probably with the<br>
> usual %something substitutions.<br>
<br>
"should" == "does not, and there's nobody willing to do it"?<br></blockquote><div><br></div><div>Yep, or "nobody thought it was important enough to do it" :)</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
And you won't be able to produce one --include= directive for each<br>
pattern in Files with the usual substitutions.<br></blockquote><div><br></div><div>By "usual" I just meant using the %, not what the actual possible substitutions would be.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

<br>
> > 5. Pressing ENTER in Directory does not activate Find.<br>
> ><br>
> > Proposition: obvious.<br>
><br>
> I thought that was a PR, but I can't find it, nvm.<br>
<br>
Maybe I was unclear. ENTER in 'Search for' or 'Files' activates the<br>
Find button. ENTER in Directory does not.<br></blockquote><div><br></div><div>Yes, you were clear, I just thought it had been raised, but anyway, yes it should be fixed to be consistent.</div><div><br></div><div> [...]</div>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
I'll explain again. The only point of the checkbox is to be able to<br>
quickly disable the extra options, which is the same as clearing them,<br>
*except* that you can restore them quickly.<br>
<br>
If we consider them so important as to have an extra interface element,<br>
why don't we use a normal history, and have several sets of options?<br></blockquote><div><br></div><div>"why don't" == "doesn't, and nobody cared enough to do it" ;-)</div><div> </div><div>
<br></div><div>Cheers</div><div>Lex</div><div><br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<span class="HOEnZb"><font color="#888888"><br>
--<br>
E-gards: Jimmy<br>
_______________________________________________<br>
Devel mailing list<br>
<a href="mailto:Devel@lists.geany.org">Devel@lists.geany.org</a><br>
<a href="https://lists.geany.org/cgi-bin/mailman/listinfo/devel" target="_blank">https://lists.geany.org/cgi-bin/mailman/listinfo/devel</a><br>
</font></span></blockquote></div><br></div></div>