Create a note
Updated 2026-10-01
Create a note
Section titled “Create a note”Create note lets a user save a titled note from the browser or CLI, cancel an unfinished draft, and confirm the saved note from a second user-facing view.
Sub-features
Section titled “Sub-features”create-openopens a blank editor from each browser entry point.create-savepersists a title and body.create-canceldiscards an unfinished browser draft.create-clicreates the same note shape from the terminal.
How to get to it (user POV)
Section titled “How to get to it (user POV)”- Choose the
New notebutton in the browser toolbar. - Press
nin the browser while focus is outside an editable field. - Run
notes create --title <title> --body <body>in a terminal.
Driving it with control-notes
Section titled “Driving it with control-notes”Preconditions:
-
Notes is healthy at
http://127.0.0.1:4173. -
No note is titled
Release checklist. -
control-notes doctorreports the expected URL and disposable data directory. -
Open editor. Choose
New note. Runcontrol-notes browser click --role button --name "New note". A form namedNote editorappears with focus in theTitletextbox. -
Enter content. Type the title and body. Run
control-notes browser fill --role textbox --name "Title" --value "Release checklist"andcontrol-notes browser fill --role textbox --name "Body" --value "Tag and publish". TheSave notebutton becomes enabled. -
Save note. Choose
Save note. Runcontrol-notes browser click --role button --name "Save note". A status namedNote savedappears and the heading readsRelease checklist. -
Confirm persistence. Return to the note list and reopen the note. Run
control-notes browser click --role link --name "All notes"andcontrol-notes browser click --role link --name "Release checklist". The editor shows both saved values. -
Cancel draft. Open a new note, enter
Discard me, and chooseCancel. Runcontrol-notes browser click --role button --name "New note",control-notes browser fill --role textbox --name "Title" --value "Discard me", andcontrol-notes browser click --role button --name "Cancel". The note list returns and has noDiscard melink. -
CLI entry. Create a second note. Run
control-notes cli -- notes create --title "CLI note" --body "Created from terminal" --format json. Exit code0and stdout contain the new note ID and title. -
Proof. Reopen both saved notes from
All notes. Runcontrol-notes browser snapshot --aria --path artifacts/create-note/list.aria.txtandcontrol-notes browser screenshot --path artifacts/create-note/list.png. The artifacts showRelease checklistandCLI note.
Gotchas
Section titled “Gotchas”- Pressing
nwhile a textbox has focus types the character instead of opening a new editor. - Titles are trimmed on save. Assert the rendered title, not the draft input value.
- A save status alone is insufficient proof. Reopen the note from the list.
- Remove
Release checklistandCLI noteduring fixture cleanup, but retain their proof artifacts.
This is an unofficial Chinese learning site for pstack. It is not affiliated with poteto. Translations follow the pstack/ directory in the cursor/plugins repository. This site does not ship a Chinese plugin. github.com/cursor/plugins