Own databases: create PGN bases, add, save, delete games; library logging
Desktop: «✚ New database» on the shelf (Ctrl+Shift+N), «Add to database…»
(Ctrl+Shift+S, 💾, ☰) for any game — new, pasted, from a ChessBase, online or
legacy-encoded database — into a PGN of the user's choice; Ctrl+S saves the
changes back into the game's own PGN (its record is replaced) or adds the game
when the source is read-only; the game data editor (F2, the title, ☰) asked once
when a new game is first added; duplicate check (same players, date, moves →
replace / add as new, no Enter); delete from the table with a question and Undo
(Ctrl+Z, 6 s, waits under the mouse); UTF-8 copy for legacy-encoded files with
the restored letters; online and ChessBase stay read-only. Writes are explicit:
append, or an atomic rewrite through a temporary file and a rename (through a
symlink, keeping the mode, syncing the folder), refused when the file changed on
the disk. chess_core::pgn::store: append/replace/remove/restore/write_utf8_copy,
find_same_game, pgn_date; Game::remove_tag and order_roster. Settings: your
name (annotator), the folder for new databases, the last target. Nine languages.
Also: library warnings (wgpu, winit) go to chesspenguin.log, CP_LOG_FRAMES=1
traces egui_wgpu frames (the GNOME hang hunt); dev hooks CP_OWN, CP_PASTE,
CP_COMMENT, CP_KEYS with Ctrl+, CP_SETTINGS=interface.
Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
This commit is contained in:
parent
b6024e9bdd
commit
0f66486a22
20 changed files with 4428 additions and 73 deletions
|
|
@ -83,6 +83,13 @@
|
|||
- **Чем поиск сейчас отличается** (`docs/design/large-databases.md` §9.2): одно поле ищет сразу по всему — игрокам, турниру, комментатору, ECO, году, дате — без выбора поля и без открытия панели; слова можно смешивать («вафин 2025»). Фильтры точнее: цвет, диапазон лет, Эло, результат, длина, аннотации. Поиск и фильтры складываются.
|
||||
- **Что решить:** оставить оба (поиск — быстрый ввод, фильтры — точная настройка), объединить (поле поиска сверху панели фильтров) или убрать поиск. Обсудить с дизайнером на реальном использовании.
|
||||
|
||||
### 9. Режим ввода партии: писать комментарии к ходам
|
||||
- **Статус:** новая.
|
||||
- **Добавлено:** 2026-10-25.
|
||||
- **От кого:** владелец.
|
||||
- **Суть:** при вводе партии (новая партия, своя база) нужно писать текстовые комментарии к ходам прямо в программе — сейчас комментарии только читаются (и приходят из анализа).
|
||||
- **Мысли:** поле комментария под нотацией или по двойному клику/клавише у хода; запись через `Game::annotate` (уже есть, с Undo); комментарии до хода и после; NAG-символы (!, ?, ±…) той же панелью; сохранение в свою базу — Ctrl+S (задача «свои базы»).
|
||||
|
||||
## Сделано
|
||||
|
||||
(пусто)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue