Allow the attributes for a cell to be computed. #22
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Right now, each cell individually stores its attributes and although they can be set in a block, they cannot change based on the contents of cells, nor is there a way to update the format that's used for a certain purpose other than finding all of the cells and setting the attributes on each.
It would be very helpful to have computed and/or linked attributes. It seems to me that a teapot-ish way to do this would be to have an additional expression for the computed attribute, and when it is set, then when the attributes are needed, the expression is evaluated. If it resolves to a location, then the attributes of the cell at that location are used. Ideally that would have the effect that changing the attributes of that location would instantly cause all of the linked cells to change.
The only other alternative I hae thought of is to make Attribute objects another data type, and stop including attribute info in every cell, and anything that's not default has an associated attribute object, and have functions in the expression language that can create attributes, but there still has to be a way to set the attribute-generating expression for a cell, so it's not clear what one gains by this route which will surely be more effort. Maybe some amount of memory savings as the possible palette of attributes expands.
In any case, it would be good to implement some system.