On Tuesday, August 8, 2023 Edward K. Ream wrote:
> PR #3473 <https://github.com/leo-editor/leo-editor/pull/3473> defines
Leo's first VNode generator, v.self_and_subtree.
And now this PR defines *v.self_and_all_parents*, a generator similar to
v.self_and_subtree.
*v.setAllAncestorAtFileNodesDirty* becomes:
def setAllAncestorAtFileNodesDirty(self) -> None:
"""Original idea by Виталије Милошевић (Vitalije Milosevic)."""
v = self
for v2 in v.self_and_all_parents():
if v2.isAnyAtFileNode():
v2.setDirty()
The new code illustrates two breakthroughs:
1. Doing operations in the VNode world.
2. Defining *official *VNode generators.
Edward
--
You received this message because you are subscribed to the Google Groups
"leo-editor" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To view this discussion on the web visit
https://groups.google.com/d/msgid/leo-editor/007d6e8d-aca2-4ed9-a19d-0a4f20745420n%40googlegroups.com.