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

Adding <Prev, Next> buttons to Card Browser's Editing Screen to edit faster

Open sibilek opened this issue 10 years ago β€’ 20 comments

Research

Enter an [ x ] character to confirm the points below:

[ x ] I have read the support page and am reporting a bug or enhancement request specific to AnkiDroid

[ x ] I have checked the manual and the FAQ and could not find a solution to my issue

[ x ] I have searched for similar existing issues here and on the user forum

I have added 1200 words in English to a main deck and it's subdecks in AnkiDroid. During adding process to make it faster I skipped adding auido files to cards. Now I am using a free open-source app called Sound4Ankidroid to add audio files to cards, here is youtube demonstration for Sound4Ankidroid, here is Github Page for Sound4Ankidroid.

It would be faster to edit a card or add audio file to a card if "Prev" & "Next" buttons added to Card Browser's Editing Screen as in the picture below. After editing finish when user press one of the "Prev" & "Next" buttons AnkiDroid will save changes just as in AnkiDesktop browser. with this way user can easily move between cards just like in Preview screen and as in AnkiDesktop browser.

picsart_07-07-11 02 33

Production Steps
  1. To edit each card I have to go card browser
  2. click card to edit
  3. copy word
  4. drag drop down main screen to open Sound4Ankidroid
  5. click to play&(audio will be downloaded to collection.media folder)&copy file as [sound:xxxx.mp3]
  6. click to hide button of Sound4Ankidroid
  7. paste filename into audio field.
  8. hit OK button up right
  9. find next word to add audio file

screenshot_2016-07-07-13-37-06 screenshot_2016-07-07-10-51-24 screenshot_2016-07-07-10-52-14 screenshot_2016-07-07-10-52-26 screenshot_2016-07-07-10-52-48 screenshot_2016-07-07-10-53-02 screenshot_2016-07-07-10-53-19 screenshot_2016-07-07-13-40-44 screenshot_2016-07-07-13-37-12

sibilek avatar Jul 07 '16 10:07 sibilek

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 Jul 24 '20 11:07 github-actions[bot]

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 Sep 22 '20 12:09 github-actions[bot]

Added edit button to the preview, but not buttons on the note editor

david-allison avatar Sep 22 '20 13:09 david-allison

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 Nov 30 '20 14:11 github-actions[bot]

I'll get to this after other big ticket items are completed, it's nowhere near as high priority now, but will help with UX

david-allison avatar Nov 30 '20 18:11 david-allison

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 Jan 29 '21 19:01 github-actions[bot]

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 Mar 31 '21 01:03 github-actions[bot]

I would like to work on this issue.

prateek-singh-3212 avatar Apr 06 '21 10:04 prateek-singh-3212

I would like to work on this issue.

Okay, could you sketch out a rough design for how you'll go about this before you begin, and define the edge cases, and how you'll handle this.

It would be ideal if the solution contains unit tests, as the logic may be a little hairy, and you'll want to explain to future developers what your intention is here.

In my mind, the main issue is that the card browser shows cards, and the note editor shows notes. You'll need to define what do to, if, for example, you're trying to view:

  • n1, n1, n2, n2 - do you show the same note again?
  • n1, n2, n1, n2 - how do you handle duplicates? Ignore them?

david-allison avatar Apr 06 '21 11:04 david-allison

@david-allison-1 I have analyzed the situations and came out with 2 possible solutions.

  1. Showing the note editor to the user 1 time only i.e Ignoring the note editor for the rest of the card associated with it.
  2. Showing the note editor Fields according to the Fields used in a particular card. Let me explain it to you through example. I have created the decks of name 7 wonders of the world and I created custom type name 'Monuments' in which Fields are the Country in which they are located(Let's say 'India'), the location of a monument in a country(Let's say 'Agra'), the Image of a monument(Image of Taj Mahal), Name of a Monument(Let's Taj Mahal). I have created 4 custom cards as Follow's:

Card 1: Front :Country in which {{Name of a Monument}} Located? Back: {{Country Name}}

Card 2: Front: {{Image of Monument}} Back: {{Name of Monument}}

Card 3: Front: Location of the {{Name of Monument}} in {{Country}} Back: {{the location of a monument in a country}}

Card 4(Reverse of card 1): Front: Name of Monument located in {{Name of Country}} Back: {{Monument Name}}

So, what I want to say from all of this thing that when the user is browsing the cards and wants to edit card 2 then the user will see fields associated with that card only i.e Image of Monument and Name of Monument

another one will be to display all the fields associated with all four cards and edit at one place and Ignore the rest of the 3 cards Note Editor.

Anki Desktop is showing all the Feilds in the note editor irrespective of that field is used in that particular card or not.

prateek-singh-3212 avatar Apr 07 '21 13:04 prateek-singh-3212

I will use buttons that we are using in preview while browsing through the note editor. WhatsApp Image 2021-04-07 at 19 01 34

prateek-singh-3212 avatar Apr 07 '21 13:04 prateek-singh-3212

@Arthur-Milchior @infinyte7 @mikehardy

Thoughts on the above?

Personally, the idea of matching a card to its fields is very interesting. I think we could leverage the "collapse field" functionality, and get something really useful and novel here.

I'm not sure it would work in the general case: basic (and reversed), or cloze wouldn't work well, and we'd need a selection strategy: (per card: distinct by fields used, or similar).

I'm not sure about the UX, but I would like to consider the idea further.

david-allison avatar Apr 07 '21 13:04 david-allison

If I were in the note editor I would expect a carousel to take me around whole notes? πŸ€”

mikehardy avatar Apr 07 '21 22:04 mikehardy

aa

We can use the above layout and when the user swipes to the next layout then we can hide the irrelevant fields.

We may provide settings to the user that I case he/she gets confused with UI so they can turn it off and we just show Editor once for all cards as mention in this

1. Showing the note editor to the user 1 time only i.e Ignoring the note editor for the rest of the card associated with it.

prateek-singh-3212 avatar Apr 08 '21 06:04 prateek-singh-3212

Before we get too fancy with the next/prev idea, we need the card template editor to structurally match desktop more I think

If the next/prev idea conflates scrolling through notes and scrolling through cards in notes I am -1 on that, I think it will be non-intuitive / people will become lost

mikehardy avatar Apr 09 '21 13:04 mikehardy

Okay, .distinct() on the note IDs and navigating through that collection sounds best given the above. @mikehardy Does this work?

david-allison avatar Apr 09 '21 16:04 david-allison

I believe that means it will be going next/prev on entire notes (not cards inside notes or fields in cards) which I think makes sense in context of note editor, so yes

mikehardy avatar Apr 09 '21 17:04 mikehardy

I agree with mike. It may lead to strange result. E.g. if you sort cards by due date, then the cards of a single note may be a little bit everywhere in the list of cards. When all cards are not together, deciding which cards to select to show may be non trivial.

  • If you show the first card in the list of card and you click on the second card, then the card you click on can not even be seen
  • if you show the first card in the list of card, starting where you clicked, then the behaviour will be different before and after the card you clicked on

I can see plenty of edge cases. But I'm really in favour of it.

I'd like to note that we have an openΒ PR to display a single card by note. Both features seems heavily related. (It's a feature that is currently being added to upstream. Last time I checked they had not decided entirely what they want to do in all details)

I believe the idea of displaying only the fields that are shown is great when you edit a note opened in the reviewer. This way, you can concentrate on data actually shown and need to click to open the other fields that are probably not relevant right now. However, I don't like this idea from the card browser at all, since most of the time, I don't even know which card I click on, I'd find it confusing.

Arthur-Milchior avatar Apr 09 '21 18:04 Arthur-Milchior

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 Jun 08 '21 18:06 github-actions[bot]

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 Aug 07 '21 19:08 github-actions[bot]