Fix FTS search for path punctuation like /idobkin.
Sanitize MATCH tokens so slash/dot queries no longer error and leave a stale full history list; clear the UI on search failure.
This commit is contained in:
@@ -154,7 +154,7 @@ When you select an entry, maCopy writes it to the system clipboard (text or imag
|
||||
|
||||
### SQLite + FTS5
|
||||
|
||||
The database uses a content-synced FTS5 virtual table with triggers that automatically keep the full-text index in sync with the `clipboard_entries` table. This enables instant prefix search as you type. Opened with `journal_mode=WAL` + `synchronous=NORMAL` so the UI can read while the background poller writes, without blocking on full fsyncs.
|
||||
The database uses a content-synced FTS5 virtual table with triggers that automatically keep the full-text index in sync with the `clipboard_entries` table. This enables instant prefix search as you type. User queries are tokenized before `MATCH` so path punctuation (`/…`, `.`) does not trip FTS5 syntax. Opened with `journal_mode=WAL` + `synchronous=NORMAL` so the UI can read while the background poller writes, without blocking on full fsyncs.
|
||||
|
||||
### Window behavior
|
||||
|
||||
@@ -173,9 +173,9 @@ The SQLite database is stored at:
|
||||
See **[docs/TESTING.md](docs/TESTING.md)** for the full map.
|
||||
|
||||
```bash
|
||||
npm test # ~60 frontend tests
|
||||
npm run test:rust # ~52 Rust tests
|
||||
npm run check # lint + all tests (~112)
|
||||
npm test # ~72 frontend tests
|
||||
npm run test:rust # ~67 Rust tests
|
||||
npm run check # lint + all tests (~139)
|
||||
```
|
||||
|
||||
## Building for Release
|
||||
|
||||
Reference in New Issue
Block a user