On Thursday, August 22, 2019 at 1:02:11 PM UTC+2, lewis wrote: > > Leo docs describe Global Node Index (gnx) as giving each node a unique, > immutable identity. > > I have a few questions. > 1. How do you find the gnx identity of a node? >
Using p.v.gnx (or p.v.fileIndex it used to be old name of this attribute). > 2. Once you know the gnx of a node, can a script be directed to read the > data in that node? > > If you have gnx and wish to know headline or body, you can get corresponding v node using: v = c.fileCommands.gnxDict.get(gnx) v.h is headline, v.b is body. I get the impression gnx's are related to external files, or clones. > Whereas I am looking for a simple way to identify a node and read it's data. > > Yes in the external files gnxes are written inside sentinel comments. Without them written in the external files, clones would loose their clone-yness and become unrelated nodes. HTH Vitalije -- 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/1ebd5cbc-755c-46b0-9375-0631ac3b36b0%40googlegroups.com.
