CAN create-note handler¶
Backlinks¶
- CAN's create-note handler should fire NOTE-CREATED-ERROR on failure
- CAN's create-note handler will attempt to create a new note at an address in the notebook. If this goes wrong for any reason, the handler should fire a NOTE-CREATED-ERROR event to allow other handlers to listen and respond.
- CAN's create-note handler should fire NOTE_CREATED
- The create-note handler is intended to create a new note at the correct address within the CAN notebook.
- CAN's create-note handler should listen for COMMAND_ADD
- CAN's create-note handler is intended to add a new note at the note's address using the current state of the scratchfile to determine which note is added.
- CAN's add command should save the current scratchfile as a note.
- To get this done, a create-note handler should be created to listen for the COMMAND_ADD event, upon which it should store the note as described above.