I started working on this a while ago, but I feel like there might be some traps on the way that I don't want to step in so I thought I'd ask for some input.
Currently the typical workflow has you pause playback, add one or more cards, then press one or more keys to add media to the card(s). There are two things that could make this easier:
- Automatically pause playback when focusing another window
- Automatically add media to the cards created since the last pause
You can do 1 in your mpv.conf already if you want to, but I think it could be handy to have it as an option, especially if 2 is also implemented. I've tried this locally already and it seems to work as expected.
2 feels like it should be straightforward, but maybe I'm missing something. What I'm thinking is that you can just use the same function that pauses to query Anki for new cards added today, and use the function that resumes playback to calculate the difference and add media to the cards that have been created since pause. It should probably also
Is there anything else that I'm missing? Any other input?
I started working on this a while ago, but I feel like there might be some traps on the way that I don't want to step in so I thought I'd ask for some input.
Currently the typical workflow has you pause playback, add one or more cards, then press one or more keys to add media to the card(s). There are two things that could make this easier:
You can do 1 in your
mpv.confalready if you want to, but I think it could be handy to have it as an option, especially if 2 is also implemented. I've tried this locally already and it seems to work as expected.2 feels like it should be straightforward, but maybe I'm missing something. What I'm thinking is that you can just use the same function that pauses to query Anki for new cards added today, and use the function that resumes playback to calculate the difference and add media to the cards that have been created since pause. It should probably also
Is there anything else that I'm missing? Any other input?