Hint on how to find git or vscode working directories

General discussion related to "Everything".
Post Reply
piyo
Posts: 6
Joined: Fri Mar 20, 2020 8:23 am

Hint on how to find git or vscode working directories

Post by piyo »

I just learned of this tip from somewhere and I see it is already mentioned indirectly.

This is how I search for git working directories:

Code: Select all

wfn:child:.git
This is how I search for Visual Studio Code working folders:

Code: Select all

wfn:child:.vscode
wfn: is short for wholefilename: It seems like child:wfn:.git does not work.
child: and wfn: have been available for a long time, at least since version 1.3.4 but I just figured this out now. :lol:

Also it would be pedantically correct if there was a way to make sure the child found is a folder.
Unfortunately something like

Code: Select all

folder:wfn:child:.git
does not work.
void
Developer
Posts: 16683
Joined: Fri Oct 16, 2009 11:31 pm

Re: Hint on how to find git or vscode working directories

Post by void »

It seems like child:wfn:.git does not work.
wfn: is a search modifier.
child: is a search function.

Search modifiers MUST come before search functions.

search-modifier1:search-modifier2:search-modifier3:search-function:
Also it would be pedantically correct if there was a way to make sure the child found is a folder.
child: will only match folders. The folder: search modifier is not necessary.

Is wfn:child:.git returning file results? do you have any OR operators (|) in your search?
Post Reply