CMorooney / obsidian-game-search-plugin

Obsidian plugin that automatically creates notes by searching for video games
MIT License
34 stars 9 forks source link

Create a way to "Update All" Game notes currently made. #6

Closed Negative-light closed 1 year ago

Negative-light commented 1 year ago

Premise

Add a command to Update all of the current games to the latest template. This allows the user to easily both change the template and incorporate new data. This allows us to plan out different sections and steadily incorporate parts of the API. Particularly I would like this for the sake of the new Publisher feature and I would also like to more easily add the ESRB ratings.

CMorooney commented 1 year ago

@Negative-light This makes sense to me -- at the moment i can't think of a guaranteed way to replace current game files without potentially blowing away any content that was not generated from the template (depending on how the user has mingled their own content with their templated content).

I may just include a warning to back up any important notes before updating any game notes unless you had a different thought!

CMorooney commented 1 year ago

@Negative-light This makes sense to me -- at the moment i can't think of a guaranteed way to replace current game files without potentially blowing away any content that was not generated from the template (depending on how the user has mingled their own content with their templated content).

I may just include a warning to back up any important notes before updating any game notes unless you had a different thought!

Or i could just try and ONLY replace the metadata 🤔

Negative-light commented 1 year ago

I kinda feel that might need some config possibly. Maybe add a toggle in the settings. I personally think a full rewrite makes sense as I usually have updated the template. The usability of this feature is that one doesn't have to manually redo all of the games that they have pulled in. An alternative would be to allow users to provide a link or some kind of id that you could easily get from the game's name and have them in a file and pull all of that in one go. I feel that is a separate feature and could be useful possibly its own issue even

CMorooney commented 1 year ago

@Negative-light I'm going to sleep on this to make sure I didn't overthink anything but here's a PR with a full-file-replace options I guess that's a good first step!

https://github.com/CMorooney/obsidian-game-search-plugin/pull/7

CMorooney commented 1 year ago

@Negative-light [0.1.5] has been released and can be updated to through obsidian plugin manager. let me know if you have other issues or this doesn't work for you! https://github.com/CMorooney/obsidian-game-search-plugin/releases/tag/0.1.5

Negative-light commented 1 year ago

Love it thanks