obsidian-spaced-repetition icon indicating copy to clipboard operation
obsidian-spaced-repetition copied to clipboard

[FEAT] ability to search through flash cards by deck

Open jamesonBradfield opened this issue 1 year ago • 4 comments

Is your feature request related to a problem? Please describe. would be nice to have a grep search of some sort that would look through the names of flashcards. This way when you are blanking on the exact definition in school work or study time you can easily review your "definition".

Describe the solution you'd like a command pallette that would give you a selection of what deck to look in and display each card by name so you can search through your flashcards.

Additional context

jamesonBradfield avatar Jan 24 '24 21:01 jamesonBradfield

Hi @jamesonBradfield

Interesting idea. Unfortunately, this project has many outstanding issues and realistically your idea likely wouldn't receive attention for a long time.

Is there some alternate mechanism that would achieve what you are after without changes to this plug-in?

For example, can the obsidian built-in search give you part of what you want? Is there some advanced search plug-in available that could be useful? I use the Dataview plug-in which does have powerful query features. However it is best suited to structured data, so I'm not sure if that will help, might still be worth looking at.

Out of curiosity, what do you mean by "display each card by name"? A note has a file name and can contain multiple cards. For nearly all question types (except for cloze), a card has a front and a back but no name.

Cheers Ronny

ronzulu avatar Jan 25 '24 10:01 ronzulu

I imagine something like search front or search back, where you can feasibly search (excluding any other note content before the #flashcards tag for example, and Ideally detecting the last flashcard and excluding anything after as well) There might be a way to do so, as I use the omnivore plugin for school, so my flashcard notes tend to have the same term recurring multiple times. (I would like to go the easiest route and store flashcards in my omnivore notes.)

I am sure the robust search for obsidian could get me 60% there but wouldn't be able to exclude omnivores other note contents. I will probably look into doing something with the shell commands plugin and a powershell script for what i want in the meantime, might be fun to work with files and something like fzf or ripgrep.

jamesonBradfield avatar Jan 25 '24 17:01 jamesonBradfield

@ronzulu Could you elaborate on how you use the Dataview plugin to achieve searches? I thought you had to index your data in order to be able to search for it, so how would you go about indexing any flashcard type, especially a multi-line flashcard?

Daoet avatar Feb 02 '24 15:02 Daoet

Hi @Daoet regarding dataview, it was just a "throw away" suggestion. Not something that I knew would work, but rather something that could be useful exploring. Sorry, no further info to add.

ronzulu avatar Feb 03 '24 03:02 ronzulu