st3v3nmw / obsidian-spaced-repetition

Fight the forgetting curve by reviewing flashcards & entire notes on Obsidian.md
https://www.stephenmwangi.com/obsidian-spaced-repetition/
MIT License
1.42k stars 181 forks source link

[FEAT]: Button delay #996

Open 4Source opened 2 months ago

4Source commented 2 months ago

Is your feature request related to a problem? Please describe.

For me sometimes while reviewing I accidentally press multiple time on the button an than I can't see the answer.

Describe the solution you'd like

Add Setting to set a button press delay. Only after the delay has been passed the button could be pressed. This would stop accidentally inputs I think about a delay range from 0-5s in 100ms steps.

Additional context

Think it would be the easiest to add a Intervall that is started when rendering and set a buttonEnable to false after the Intervall is finished just set buttonEnable to true. In the eventhandler of the button add an if that only get executed if buttonEnable is true

4Source commented 2 months ago

Maybe it would also be useful to have an back button where you can go back to the last card with already revealed answer and the option to change the ease.

ronzulu commented 2 months ago

Maybe it would also be useful to have an back button where you can go back to the last card with already revealed answer and the option to change the ease.

Nice idea @4Source, this probably is also useful in additional cases other than the one you described.