CAN note-existence handler should emit NOTE_EXISTENCE¶
So other systems can respond when a note is identified in CAN, the note-existence handler will fire a NOTE_EXISTENCE event with the following argument
{ address: string
, ast: Node
, exists: boolean
}
Backlinks¶
- CANs note-existence handler should listen for SCRATCHFILE_ADDRESSED
- So CAN can learn if the scratchfile contains a new note. The note-existence handler should listen to the SCRATCHFILE_ADDRESSED event. Once recieved, the handler should check if a note at this address exists in the notebook. CAN's note-existence handler should fire NOTE_EXISTENCE when it determines if a note exists.
- When a CAN scratchfile is addressed, check to see if the note is new