feat: initial commit - terminal note app with SQLite

This commit is contained in:
2026-04-11 01:24:17 +08:00
parent 3e05fd06fe
commit 6e2c50ca30
9 changed files with 653 additions and 11 deletions

34
changelog.md Normal file
View File

@@ -0,0 +1,34 @@
# 更新日志
## v0.1.0 (2026-04-11)
### 新增功能
- **双列布局**: 左侧笔记列表,右侧编辑器/预览
- **笔记管理**: 创建、编辑、删除笔记
- **Markdown 预览**: 手动实现的 Markdown 渲染器,支持:
- 标题 (# ## ###)
- 列表 (- *)
- 引用 (>)
- 代码块 (```)
- 分割线 (---)
- **多选删除**: 双击进入选择模式,点击切换选中状态,支持批量删除
- **标题截断**: 左侧列表标题过长时显示省略号
- **时间显示**: 格式为 "时间 · 月/日/年",如 "12:45 · 4/11/2026"
### 技术改进
- SQLite 数据库存储位置:`~/.config/mio/cache.db`
- 可编译为单个可执行文件 (mio.exe)
### 已知问题
- 多选功能使用双击模式,不如键盘快捷键直观
- TypeScript 类型警告bold 属性等)
### 构建
```bash
npm run dev # 开发模式
npm run build # 编译成 mio.exe
```