Skip to main content

Module option_labels

Module option_labels 

Source
Expand description

The one rule turning entity names into picker labels.

Functions§

unique_labels
Unique, cell-safe labels for (id, path) pairs, in input order; a path is its names from the root down (one name for a flat source). An entry is shown by its shortest form (name, then parent:name, …) that no other entry has as any form, judged on fold after every transformation. An entry with no such form, or only UUID-shaped ones, gets its whole path with the shortest id prefix no entry of the same path shares, so the result does not depend on the input order.