Fermat
Search
⌃K

Space

You can request all the blocks contained in a Fermat space by using the space.blocks method. The following example deletes all blocks excepts myself:
for each in space.blocks (block): // loop through all blocks
if block is not me:
delete block
end
end
Here's another example changing the background of all text block:
for each in space.blocks (block):
if type of block is "t@text":
set block.background to "salmon"
end
end
Last modified 1yr ago