Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Custom study screen suggestion #2358

Open
dae opened this issue Feb 2, 2023 · 4 comments
Open

Custom study screen suggestion #2358

dae opened this issue Feb 2, 2023 · 4 comments

Comments

@dae
Copy link
Member

dae commented Feb 2, 2023

https://forums.ankiweb.net/t/custom-study-study-a-random-selection-of-cards/27033

@sachingooo
Copy link
Contributor

Is the idea here to:

  1. Prompt the user for a number of cards
  2. Select that many random cards from the current deck
  3. Create a filtered deck with just those cards?

@dae
Copy link
Member Author

dae commented Feb 16, 2023

This was about being able to cram cards without having to select tags first. This screen will likely be rewritten in Svelte at one point, so I'd prefer not to make changes to it until then.

@sachingooo
Copy link
Contributor

Is there an issue or tracker for monitoring which components/pages have been migrated to svelte, and which remain? I could take on something reasonably small like this screen if the migration project is ongoing/already started.

@dae
Copy link
Member Author

dae commented Feb 20, 2023

I don't think we're tracking this anywhere at the moment. Work on custom study could potentially begin now if you felt you were up for it, but there are a few things that may be difficult depending on your ability:

  • the code that changes the collection needs to be written in Rust, like the deck options screen
  • the tag selection in Svelte needs to deal with potentially thousands of tags. A naive approach that renders them all to the DOM will likely result in slow rendering, so the selection widget would need to be a virtual list, similar to the approach seen here: https://github.com/sveltejs/svelte-virtual-list

If you don't feel confident being able to tackle those things largely on your own, it may not be the best thing to start on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants