Anki-Android icon indicating copy to clipboard operation
Anki-Android copied to clipboard

Show queue top and bottom when repositioning a card

Open voidplayer opened this issue 4 years ago • 15 comments

My only use case for reposition cards is to put them at the top of it

Desktop shows the top and the bottom of the stack in the reposition dialog and it would be neat if ankidroid showed it too

voidplayer avatar Aug 26 '21 08:08 voidplayer

Interesting? Can you include some screenshots of desktop behavior?

mikehardy avatar Aug 26 '21 15:08 mikehardy

image

voidplayer avatar Aug 26 '21 15:08 voidplayer

@mikehardy, I've been able to implement a new dialog type and it currently looks like this. However, I don't necessarily understand what queue top and bottom refer to (I'm a bit of a newbie with Anki - development wise and usage wise), so any help regarding this would be much appreciated. It also seems like I need two new strings for this, as I wasn't able to find anything similar in the XML files.

Screenshot_2021-09-01-18-00-53-951_com ichi2 anki

VladThodo avatar Sep 01 '21 15:09 VladThodo

I have to apologize and say, I honestly don't know either :laughing: - I'm busy enough managing AnkiDroid itself and just doing my personal Anki reviews that I don't have enough time to keep up with new things. I'm more like a janitor then a trend-setter I guess.

But perhaps @david-allison-1 knows?

That said: new strings are fine - just add them to only the values directory (not the translated directories) and our translation infrastructure will handle the rest

mikehardy avatar Sep 01 '21 15:09 mikehardy

image

New cards have an assigned value that determine the position in the new queue (in the screenshot it goes from 125 to 143)

In my first screenshot, the first card in the new queue has value 51 (top) and it will be the next new card shown

Last card in new has value of 15240 (botton) and it will be the last to be presented in the new queue

I dont think this is a new feature. This has been there for as long as i can remember...

voidplayer avatar Sep 01 '21 15:09 voidplayer

I dont think this is a new feature. This has been there for as long as i can remember...

It's also quite possible (actually, it's true) that I'm pretty boring and my use of available tools is usually in the simplest manner possible so I don't use 90% of features ;-)

mikehardy avatar Sep 01 '21 15:09 mikehardy

Hey whatever gets the job done for you ;)

I discovered recently that reviewing new cards sooner after adding them rather than later helps me remember them like a lot

Maybe it only helps in the context of new vocabulary, but after many months testing it, this is a no brainer for me now :)

voidplayer avatar Sep 01 '21 16:09 voidplayer

This has been a feature for years.

New cards are in a queue, lower numbered cards are shown before high numbered cards

Cards can, but shouldn't have a duplicate position in the queue


I /believe/ this is [cards].due for new cards, note: this does not match our database documentation, and the documentation should likely be fixed after this is confirmed.

image

EDIT: Removed incorrect suggestion regarding other places to change

david-allison avatar Sep 01 '21 16:09 david-allison

My only use case for reposition cards is to put them at the top of it

Desktop shows the top and the bottom of the stack in the reposition dialog and it would be neat if ankidroid showed it too

Untested, but I believe you can stick something at position 1, and that should bring it to the top

david-allison avatar Sep 01 '21 16:09 david-allison

Where is this stick at position 1 option?

voidplayer avatar Sep 01 '21 16:09 voidplayer

It's not an option, refers to leaving the "start position" at 1

david-allison avatar Sep 01 '21 17:09 david-allison

Oh, i see

Thats true, but It shifts every card position... It turns insta syncs into syncs that take a while

voidplayer avatar Sep 01 '21 17:09 voidplayer

Oh, i see

Thats true, but It shifts every card position... It turns insta syncs into syncs that take a while

Apologies - I wasn't aware of that, definitely not ideal then

david-allison avatar Sep 01 '21 17:09 david-allison

This is what card.getDue() returns after each change (for new cards), so it appears that repositioning sets the card's "due" to whatever I happen to give it as an input in the dialog. I guess this is what I was looking for, right?

2021-09-01 20:54:30.865 14577-14577/com.ichi2.anki D/CardBrowser: Card due: 2
2021-09-01 20:54:45.867 14577-14577/com.ichi2.anki D/CardBrowser: Card due: 20
2021-09-01 20:54:53.449 14577-14577/com.ichi2.anki D/CardBrowser: Card due: 107
2021-09-01 20:55:02.728 14577-14577/com.ichi2.anki D/CardBrowser: Card due: 243
2021-09-01 20:55:11.030 14577-14577/com.ichi2.anki D/CardBrowser: Card due: 923

VladThodo avatar Sep 01 '21 18:09 VladThodo

Hello 👋, this issue has been opened for more than 2 months with no activity on it. If the issue is still here, please keep in mind that we need community support and help to fix it! Just comment something like still searching for solutions and if you found one, please open a pull request! You have 7 days until this gets closed automatically

github-actions[bot] avatar Oct 31 '21 18:10 github-actions[bot]