linanwx / aosr

Aosr is Another Obsidian plugin for Spaced Repetition.
Other
68 stars 7 forks source link

It is suggested to increase the area that can choose to review #22

Open fireflysss opened 1 year ago

fireflysss commented 1 year ago

Thank you very much for making this plug-in. It may be more convenient to use than ANKI.

In the process of learning, often learn different knowledge. Some are in a hurry, while others are not so anxious. For example, the exam is divided into many subjects. You, the plug-in, cannot set up the review area or folder.

fireflysss commented 1 year ago

I am not a programmer, can you provide a few settings without code, thank you very much.

fireflysss commented 1 year ago

`

{
    "rule": {
        "conditions": {
            "all": [{
                "fact": "card",
                "operator": "contains",
                "value": "#KEYWORD",    <-- Replace with the tag you want to filter
                "path": "$.tags"
            }]
        },
        "event": {
            "type": "match"
        }
    }
}

` Using tags to manage is also a good way. But according to your example I replaced the keyword, but it didn't work.

linanwx commented 1 year ago

I'm sorry to hear about the difficulties you're experiencing. I'll consider adding some features to simplify this process.

Regarding the Deck creation code you mentioned, please check the following:

First, this code can be copied into any note; it doesn't have to be a specific one. Second, make sure the code block starts with ```aosr-deck-config and ends with ```, without any extra spaces in between. Assuming you have a card tagged with #math, like this:

#Q
a^2 + b^2 = ? :: c^2 #math

The code to filter corresponding cards would be:

{
    "rule":{
        "conditions":{
            "all":[
                {
                    "fact":"card",
                    "operator":"contains",
                    "value":"#math",
                    "path":"$.tags"
                }
            ]
        },
        "event":{
            "type":"match"
        }
    }
}

Make sure to wrap this code with ```aosr-deck-config and ``` .

After you finish editing, move the cursor out of this code block or switch Obsidian to preview mode. You should see this code block correctly transformed into a review interface.

The final note should look something like this:
Final Note Example

linanwx commented 1 year ago

Suppose you have a folder called math containing many notes, each with multiple cards. You can use the following code to review all the notes within the math folder:

```aosr-deck-config
{
    "rule": {
        "conditions": {
            "all": [{
                "fact": "card",
                "operator": "regexMatch",
                "value": "math", 
                "path": "$.path"
            }]
        },
        "event": {
            "type": "match"
        }
    }
}
fireflysss commented 1 year ago

Thank you for your busy reply to me, thank you very much It turned out that I misunderstood that there must be another label at the same time as #Q. I thought it was to replace #Q and mark it with different labels, such as different examination subjects. I just tried the path method, which uses directories to distinguish between methods, I think it is very useful. I hope you will reduce the difficulty of using this plug-in, and more people will like it, obsidian more and more people use this software, and many people who are not programmers are also using it, such as mine.

Best wishes for you

linanwx commented 1 year ago

Thank you for your feedback. I will enhance the relevant documentation and explore ways to simplify the process.