parent: ancestor: and partial paths

Have a suggestion for "Everything"? Please post it here.
Post Reply
jimspoon
Posts: 187
Joined: Tue Apr 26, 2011 11:39 pm

parent: ancestor: and partial paths

Post by jimspoon »

It seems that full paths must be specified with the parent: and ancestor: functions. If a partial path could be specified, really any string in the parent or ancestor pathname, it would save a lot of typing, plus you wouldn't have to know the whole pathname. Of course the results would contain the child and descendant items of different parents/ancestors, but that could be handled by sorting the results list by path.
therube
Posts: 4953
Joined: Thu Sep 03, 2009 6:48 pm

Re: parent: ancestor: and partial paths

Post by therube »

parent: shows only, limits the search to the specified (full path) directory (contents, no subdirectories, no files in any subdirectories [is that a descendant ?), is that correct?

(I have no idea what ancestor: does. Anyhow.)

If you then end up with results that throw children... into the picture, then how is that different from simply specifying parts of a path as (a start of) your search (that you then refine further)?
void
Developer
Posts: 16665
Joined: Fri Oct 16, 2009 11:31 pm

Re: parent: ancestor: and partial paths

Post by void »

Please try the parent-path:, parent-name: or ancestor-name: search functions.
jimspoon
Posts: 187
Joined: Tue Apr 26, 2011 11:39 pm

Re: parent: ancestor: and partial paths

Post by jimspoon »

void wrote: Tue Oct 01, 2024 10:29 pm Please try the parent-path:, parent-name: or ancestor-name: search functions.
Thanks so much! You are way ahead of me as always. :lol: I have a project to go to Everything School but haven't found the time yet.
jimspoon
Posts: 187
Joined: Tue Apr 26, 2011 11:39 pm

Re: parent: ancestor: and partial paths

Post by jimspoon »

therube wrote: Tue Oct 01, 2024 9:01 pm parent: shows only, limits the search to the specified (full path) directory (contents, no subdirectories, no files in any subdirectories [is that a descendant ?), is that correct?
I think Parent: shows the files and first-level directories in that specified directory. You'd have to add file: or folder: to limit the list accordingly.
(I have no idea what ancestor: does. Anyhow.)
I think Ancestor: lists all the files and directories in and under the specified directory.
If you then end up with results that throw children... into the picture, then how is that different from simply specifying parts of a path as (a start of) your search (that you then refine further)?
Good question! I need to think through it through better.
Post Reply