Skip to content

Automate more things #141

@emiham

Description

@emiham

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:

  1. Automatically pause playback when focusing another window
  2. 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?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions