Add Command (CAN)¶
Backlinks¶
- The add command should tame a name as an argument
- CAN's add command takes the name of the new note as an argument. CAN note names are letters, numbers and dashes
- CAN's inform-add handler should listen to NOTE_EXISTENCE
- CAN's inform-add handler should inform the user of the existence of the add command when the NOTE_EXISTENCE event is fired and the address field matches the current scratchfile address.
- CAN's add command should fire a COMMAND_ADD event
- CAN's add command should trigger a COMMAND_ADD event, with the name provided as an argument.
- Can should inform the user of the add command when a new note is in the scratchfile
- CAN's inform-add handler should listen to NOTE_EXISTENCE, informing the user of the add command. The add command should exist at this point and should fire a COMMAND_ADD event with the user-passed name.
- CAN's add command should save the current scratchfile as a note.
- CAN's add command is intended to add new notes to the notebook. When a new note has been detected and the add command is run, this new note should be created at the correct address. Each address in a CAN notebook is a directory. Each CAN address contains the AST of the note at this address and a metadata file containing names.