[Qt-creator] [External] Re: Unexpected (?) behaviour for "Files in any project" short-cut

Toralf Lund toralf.lund at pgs.com
Fri Jan 21 15:31:23 CET 2022


On 21/01/2022 08:51, Eike Ziller wrote:
>
>> On 20 Jan 2022, at 17:20, Toralf Lund <toralf.lund at pgs.com> wrote:
>>
>> Hi
>>
>> Under "Keyboard" in Qt Creator Environment Options, I've assigned a keyboard shortcut to "Locator - Files in any project". The actual behaviour I get looks more like "Files in All Projects", though.. In cases where I have "non-project" files e.g. from build inside the project directory, those may be listed, too. Is that they way it should be?
>>
>> I notice that under the "Locator" tab (as opposed to the "Locator" section of "Keyboard"), the same prefix ("a") is associated with both functions - I guess that may have something to do with it. This is not something I've ever changed.
>>
>> I'm using a not-quite-new version supplied with CentOS stream 8; I could try building a newer release, but do you think it would make any difference?
> The shortcut setting is probably a bit misleading, because what it does, is to simply focus the Locator input and set the text to the “prefix” for the locator filter.

That makes some sense.

I think ideally, the interface should tell me that this is how it works. 
I'm not sure exactly how it might look, though.

>   You are right that the Files in All Project Directories and Files in Any Project filters have the same prefix by default - this was for convenience to have a prefix that shows “all files that are somehow related to all projects”.
>
> This probably doesn’t fit all possible use cases - as it doesn’t seem to fit yours ;)

Precisely. Actually, in some situations, it's useful to include 
everything in that there may be documentation data, config files etc. 
that aren't part of the build set-up and therefore won't automatically 
be identified as "project files". But in other cases, it may for various 
reasons mean getting too many matches.

>   . The good thing is that you can just change the prefix for the “Files in All Project Directories” filter in the settings.

Right.

Thanks!

- Toralf

>
> Br, Eike
>



More information about the Qt-creator mailing list