obsidian-chess-study icon indicating copy to clipboard operation
obsidian-chess-study copied to clipboard

feat: navigation can cycle through root board position

Open latenitecoding opened this issue 1 year ago • 3 comments

This fixes the navigation logic so that users can use the left and right navigation arrows to cycle through the root board position and then to the first or last move. I also fixed a few bugs in the code. There were a few lines that assumed that the saved chess file study data would have a rootFEN, but they won't if they already exist. The error reporting for PGN parsing should have said FEN/PGN parsing.

latenitecoding avatar Feb 12 '24 18:02 latenitecoding

I just noticed that you have a catch in the loadFile to add the rootFEN if it's not already there. You could still leave the guards I have in place just in case the rootFEN ever becomes an empty string.

latenitecoding avatar Feb 12 '24 18:02 latenitecoding

Hey @latenitecoding, can you please rebase trunk *again? Not sure where the conflicts are?

chrislicodes avatar Feb 16 '24 14:02 chrislicodes

@chrislicodes Done

latenitecoding avatar Mar 03 '24 00:03 latenitecoding