kuchejak / obsidian-bible-linker-plugin

Obsidian.md plugin that allows you to link multiple bible verses easily
MIT License
75 stars 6 forks source link

Settings profiles #46

Open matthew-boyens opened 1 week ago

matthew-boyens commented 1 week ago

Hey Kuchejak,

Fantastic work with the plugin, it's been very helpful.

It would be awesome if there was a modal/option that allows you to make bible flashcards in the Obsidian Spaced Repetition Format

Something like

What is Bible Reference? ? Output from the Copy and link bible references

Thanks

kuchejak commented 1 week ago

Hello Matthew, I'm glad you find the plugin useful. 

The format you are requesting should already be achievable with the following settings:

I understand that this might not be the only output format you would like, but right now there is no option to set multiple "settings profiles" and switch between them easily. But this is a feature that could be added in the future (I can see myself using it as well). Sadly, my free time is still quite limited and will be at least for several months as I'm finishing my university degree. However, I might get to it when the procrastination hits me. 

There is a workaround you can use before the profiles get implemented, though:

  1. Navigate to your Obsidian vault folder in File Explorer.

  2. Locate the folder called .obsidian (it is hidden by default in almost every operation system, so you have to enable hidden files in the file explorer).

  3. Navigate to the subfolder called plugins; this is where all the Obsidian plugins in your vault are stored.

  4. Copy the obsidian-bible-linker folder and rename it to something else, for example, obsidian-bible-flashcards

  5. Open the folder you have just created and open the file manifest.json in any text editor.

  6. Change the fields id and name to something like the following and save the file.

        "id": "obsidian-bible-flashcards",
        "name": "Bible Flashcards",
  7. In Obsidian, go to Community plugins and click on the Reload plugins button. A new plugin called "Bible Flashcards" should appear; enable it.

  8. You should now have a new plugin called Bible Flashcards available as a copy of the Obsidian linker with it's own settings.

matthew-boyens commented 1 week ago

Thanks for taking the time to promptly reply to my request!

I didn't think to use the link prefixes/postfixes as work around - thanks for making a flexible solution.

I got a bit excited before I seeing your message, dusting off my old javascript skills and modifying the main.ts to include flashcard support via separate dropdown. In global settings you can specify the deck, and specify which format you want to default to. I've also added the ability to remove the '[^a]' footnote references using some regex as my bible study kit has footnotes switched on.

image

I think your settings profile is probably a more flexible idea though - so I understand if you didn't want to go with the option I provided above.

I haven't cloned your repo yet, instead doing it via the plugin main.ts directly. However, if you think it would be worthwhile to clone, update and raise a PR in lieu of a more general solution, I will happily do that for you. (in the meantime, here is the code changes I made updated_flashcard_main_ts.txt).

Thanks again for building this and good luck with your studies.

kuchejak commented 1 week ago

I still think that the profiles would be better because they allow users to create any output format they need, not just flashcards. That was the idea behind many of the options in the settings as well: creating something that can be used in a multitude of ways (so using the options for flashcards is not a workaround, but one of the possible usages). 

Duplicating the plugin with a new name to create another set of settings, on the other hand, is a workaround, there is no doubt about that 😁 

I don't know how many people are looking for flashcard support (no other requests yet), but maybe you could upload your main.js file here so potential users could use it before the profiles are ready.