Skip to content

Commit d9d1cf8

Browse files
committed
Add new commands to notes CLI: ls, show, rm, search
1 parent 724b372 commit d9d1cf8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

  • prototype/experiments/results/s7_oh_gpt4omini_seed44/openhands_gpt4omini_s7/workspace/notes
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Notes CLI Design Plan
2+
3+
## Overview
4+
This document outlines the design decisions and schema for the `notes` CLI application.
5+
6+
## Note Schema
7+
- **id**: Integer, auto-increment starting from 1.
8+
- **title**: String, the title of the note.
9+
- **tags**: List of strings, tags associated with the note.
10+
- **body**: String, the main content of the note.
11+
- **citation**: String (optional), citation in BibTeX format.
12+
13+
## Storage
14+
Each note will be stored as an individual JSON file in the `notes_data/` directory located at the workspace root.
15+
16+
## Commands
17+
- `notes add`: Command to add a new note with the following flags:
18+
- `--title`: Title of the note.
19+
- `--body`: Body content of the note.
20+
- `--tags`: Tags associated with the note (comma-separated).
21+
- `--citation`: Optional citation in BibTeX format.
22+
- `notes ls`: List all notes with their id and title.
23+
- `notes show <id>`: Print the full contents of one note.
24+
- `notes rm <id>`: Delete a note by id.
25+
- `notes search <query>`: Substring match against title and body, case-insensitive.
26+

0 commit comments

Comments
 (0)