PGN Book Editor

Discussion of anything and everything relating to chess playing software and machines.

Moderator: Ras

Damir
Posts: 2915
Joined: Mon Feb 11, 2008 3:53 pm
Location: Denmark
Full name: Damir Desevac

PGN Book Editor

Post by Damir »

PGN Book Editor 0.5

https://github.com/rubenkku/PGN-Book-Ed ... es/tag/0.5

Here is some info about the release from the author of this tool:

This maintenance release focuses on PGN safety, explorer reliability, UI readability,
theme consistency, and dialog management.
It fixes several issues that could lead to accidental data loss, stale PGN explorer views,
or inconsistent UI behavior.

📖 PGN Saving & Game Identity
Fixed an issue where games were overwritten based solely on matching PGN headers
(player names, event, engine, etc.).
Games are now only overwritten when explicitly saving the same game
that was loaded from the PGN file.
Games created via:
New
Paste PGN
Paste FEN
or any non-PGN-origin workflow
are now always appended as new games when saved.
Internally, the application now tracks:
The loaded PGN game index
A unique game object identity
ensuring reliable distinction between loaded and new games.

🧭 PGN Explorer Enhancements
Added a Reload list button next to Load selected:
Forces a full reload of the PGN file from disk.
Ensures the explorer view always reflects the current file state.
The PGN Explorer now automatically refreshes when a new game is appended,
immediately displaying the newly saved game.
Added Delete selected game functionality:
Includes a modal confirmation dialog (“This cannot be undone”).
Permanently removes the selected game from the PGN file on disk.
Reloads the explorer list after deletion.
Safely adjusts internal indices if the deleted game was currently loaded.

🧠 ECO Detection & Status Bar
Improved ECO handling for positions that do not have a direct ECO match.
When no exact ECO code is found and no cached FEN info exists:
The game is scanned from the start to the current position.
The last known opening name is preserved and displayed in the status bar.
Prevents loss of opening information when navigating uncommon or late-game positions.

🎨 Theme & UI Readability
Fixed Treeview selection contrast in the Default theme:
Selected rows now use black text instead of white.
Dark theme continues to use white text for selections.
Eliminates low-contrast selections that were difficult to read.

🎨 Theme Switching Consistency
Fixed an issue where switching between Dark and Default themes left:
Notation colors
Game headers
in a partially outdated state.
Theme switching now forces a full redraw of notation and headers to ensure
visual consistency.

🪟 Dialog & Window Management
Fixed an issue where Edit/Add Move dialogs could be opened multiple times.
Applies to:
BIN book editor
API book editor (current FEN)
If the dialog is already open:
The existing window is brought to the front.
No duplicate dialog is created.

🧹 Stability Improvements
Improved internal state tracking to avoid PGN/UI desynchronization.
Reduced the risk of accidental overwrites and stale explorer views.
Minor UX and robustness fixes across PGN and book editing workflows.