2026-04-11 01:24:35 +08:00
|
|
|
|
# Changelog
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
All notable changes to this project will be documented in this file.
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 02:40:14 +08:00
|
|
|
|
## 认知修正
|
|
|
|
|
|
|
|
|
|
|
|
### 1. Bun 编译与 native 模块
|
|
|
|
|
|
Bun 的 `bun build --compile` 无法正确处理 native 模块(如 `@libsql/client`),运行时会报错 "Cannot find module"。这是 Bun 1.3.4+ 的已知 bug。
|
|
|
|
|
|
|
|
|
|
|
|
**解决方案**:使用纯 JS 实现的 `sql.js` 替代 `@libsql/client`,可正常编译运行。
|
|
|
|
|
|
|
|
|
|
|
|
### 2. Gitea Actions 镜像问题
|
|
|
|
|
|
自定义镜像默认未安装 git,需要在 workflow 中手动安装:
|
|
|
|
|
|
|
|
|
|
|
|
```yaml
|
|
|
|
|
|
- name: Install git
|
|
|
|
|
|
run: apt-get update && apt-get install -y git
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 3. Release 自动生成 changelog
|
|
|
|
|
|
在 workflow 中使用 git log 生成变更记录:
|
|
|
|
|
|
|
|
|
|
|
|
```bash
|
|
|
|
|
|
PREV_TAG=$(git describe --tags --abbrev=0 HEAD^ 2>/dev/null || echo "")
|
|
|
|
|
|
CHANGES=$(git log --pretty=format:"- %s (%h)" "$PREV_TAG..HEAD" 2>/dev/null || echo "")
|
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### 4. Gitea 发布二进制文件的限制
|
|
|
|
|
|
由于 runner 运行在 Linux 环境,无法直接编译 Windows/macOS 可执行文件。如需跨平台发布,考虑:
|
|
|
|
|
|
- 使用 Go/Rust 等支持交叉编译的语言
|
|
|
|
|
|
- 或仅发布源代码压缩包
|
|
|
|
|
|
|
|
|
|
|
|
---
|
|
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
## [0.1.0] - 2026-04-11
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
### Added
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
- **Two-column layout**: Note list on the left, editor/preview on the right
|
|
|
|
|
|
- **Note management**: Create, edit, delete notes
|
|
|
|
|
|
- **Markdown preview**: Custom Markdown renderer with support for:
|
|
|
|
|
|
- Headings (# ## ###)
|
|
|
|
|
|
- Lists (- *)
|
|
|
|
|
|
- Blockquotes (>)
|
|
|
|
|
|
- Code blocks (```)
|
|
|
|
|
|
- Horizontal rules (---)
|
|
|
|
|
|
- **Multi-select delete**: Double-click to enter selection mode, click to toggle selection, batch delete support
|
|
|
|
|
|
- **Title truncation**: Long titles in the list display with ellipsis
|
|
|
|
|
|
- **Time display**: Format "time · month/day/year", e.g., "12:45 · 4/11/2026"
|
2026-04-11 01:49:08 +08:00
|
|
|
|
- **Copy**: In edit mode, use Shift+Arrow to select text, then Ctrl+C to copy
|
|
|
|
|
|
- **Exit**: Press Ctrl+D to exit
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
### Technical
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
- SQLite database stored at `~/.config/mio/cache.db`
|
|
|
|
|
|
- Can be compiled to a single executable (mio.exe)
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
### Known Issues
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
2026-04-11 01:24:35 +08:00
|
|
|
|
- Multi-select uses double-click mode, not as intuitive as keyboard shortcuts
|
|
|
|
|
|
- TypeScript type warnings (bold attribute, etc.)
|
|
|
|
|
|
|
|
|
|
|
|
### Build
|
2026-04-11 01:24:17 +08:00
|
|
|
|
|
|
|
|
|
|
```bash
|
2026-04-11 01:24:35 +08:00
|
|
|
|
npm run dev # Development mode
|
|
|
|
|
|
npm run build # Build to mio.exe
|
2026-04-11 01:44:34 +08:00
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
|
### Keyboard Shortcuts
|
|
|
|
|
|
|
2026-04-11 01:49:08 +08:00
|
|
|
|
- `Shift+Arrow` - Select text in edit mode
|
|
|
|
|
|
- `Ctrl+C` - Copy selected text (in edit mode)
|
2026-04-11 01:44:34 +08:00
|
|
|
|
- `Ctrl+D` - Exit application
|
|
|
|
|
|
- `Esc` - Exit application (alternative)
|