bramses / chatgpt-md

A (nearly) seamless integration of ChatGPT into Obsidian.
MIT License
854 stars 64 forks source link

New chat from template doesn't work if `chats` folder is missing #28

Closed Maximilian-Staab closed 1 year ago

Maximilian-Staab commented 1 year ago

Steps to reproduce:

  1. delete ChatGPT_MD/chats folder
  2. select Create new chat from template from the command menu
  3. watch as nothing happens

Steps to troubleshoot:

  1. create ChatGPT_MD/chats folder
bramses commented 1 year ago

Thanks for the issue @Maximilian-Staab I can have it raise a notice, but this functionality is intended. A chat and templates folder are required.

Maximilian-Staab commented 1 year ago

Thanks for the quick response Bram, but there seems to be some confusion about this issue. Setting a folder for templates and chats is documented in the Readme, but I assume a user would still expect the folder to be created automatically if it's missing. Either that or a popup message telling the user about the missing folder (+ button for creating it quickly).

Right now, without a notification or documentation in the Readme, the user might assume that the template feature is broken.

lukemt commented 1 year ago

This is actually a good idea. I had the same issue when i installed the plugin. This would make it more friendly for beginners

bramses commented 1 year ago

Hmm gotcha, good point both. I'll add a modal to create default folders as an FR.