⚡️ Ideas
Bruce F. Donnelly Bruce F. Donnelly Aug 23, 2023

Commands for up and down generations

Explain the problem as you see it

As Maciej Smoła noted in "GREAT-GRANDPARENT and higher levels of PARENT search operator," "There is no way to reference a node that is more than GRANDPARENT level above search node."

Why is this a problem for you?

I want to be able to refer to nodes all over the place in a tree that is "canonical" for my workflow. See the idea noted above.

Suggest a solution

GREATGRANDPARENT is a lot of typing, and it's just one option. Perhaps either a family of commands or one command that takes parameters as you type it:

PARENT becomes UP_1
GRANDPARENT becomes UP_2
GREATGRANDPARENT becomes UP_3
GREATGREATGRANDPARENT becomes UP_4.

PARENTS_DESCENDANTS becomes UP_1_DOWN_N

Parent's grandchildren would be UP_1_DOWN_2.

Realistically, there has to be a limit. UP_10_DOWN_10 is ridiculous unless you want to fry eggs on the processor.