Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[ENHANCEMENT] More descriptive default file name when saving a json conversation #12

Open
NintendoManiac64 opened this issue Apr 13, 2023 · 6 comments
Labels
enhancement New feature or request kiv for now kiv for now, but not planning to proceed at this time

Comments

@NintendoManiac64
Copy link

NintendoManiac64 commented Apr 13, 2023

Currently the default file name is just saved_story.json which, let's be honest, isn't exactly all that descriptive.

A simple way to make it more descriptive is to have it begin with a timestamp in ISO8601 format (year-month-day hours꞉minutes:seconds.milliseconds) followed by the scenario chosen (or something like "custom scenario" if not using one of the stock ones).

So in total it could look something like one of the following examples:

  • 2023-04-13 19꞉27.123 Haruka.json
  • 2023-04-13T19꞉27.123 Emily.json
  • 2023-04-13 19꞉27.123 custom.json
  • 2023-04-13T19꞉27.123 custom scenario - saved-story.json
  • 2023-04-13 19꞉27.123 Fantasy Isekai - saved-story.json

(note that, since Windows doesn't like having colons for file names, I've replaced all instances of colons with the "Modifier Letter Colon (U+A789)" which looks nearly identical and is compatible with WIndows' file names; also the last example uses an "Ideographic Space (U+3000)" to make a larger visual gap)

@LostRuins
Copy link
Owner

Actually that's not the case, it's only saved_story.json if you started a new story without loading an existing one. Otherwise, it will attempt to save back to the previous filename. Unfortunately, browser limitations means that the UI cannot determine the actual name of the .json when it saves, only when it loads.

Autogenerating a name may cause issues for people who want to overwrite their existing story though. I'd imagine many people not wanting to deal with multiple files and versions, but just continuing their progress on the same file. By generating a new timestamp each time, you always get a new filename each time you save.

I think it's probably best to keep the name consistent, and allow the OS to deduplicate if the file already exists.

@NintendoManiac64
Copy link
Author

Actually that's not the case, it's only saved_story.json if you started a new story without loading an existing one.

I am aware of this - that is why I said default file name.

Maybe I should have been more clear in that I am not at all talking about when you've previously loaded a .json file.

@henk717
Copy link
Collaborator

henk717 commented Oct 22, 2023

Couple possible idea's.

  • Story / instruct / adventure mode, probably best to leave as is or pull an MS word and make it the first sentence that isn't the instruction tag.
  • Chat mode, character name.

@LostRuins LostRuins added enhancement New feature or request kiv for now kiv for now, but not planning to proceed at this time labels Oct 22, 2023
@fuhrriel
Copy link

Would it be possible to add a text field to the save/load box that would be the name for the downloaded file? I'd rather download it already named the correct way, rather than having to open my trash of a Downloads directory and find the file there.

@LostRuins
Copy link
Owner

Yes, you can do that. Enable Rename save file
image
image

@fuhrriel
Copy link

Yeah, that solves my issue, but I don't think that's the best place for this option to be. Way too hidden.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request kiv for now kiv for now, but not planning to proceed at this time
Projects
None yet
Development

No branches or pull requests

4 participants