Closed PanderMusubi closed 2 years ago
In the meantime, you should be able to open the files using your file explorer, rather than the AnkiDroid import dialog - this should be slightly faster
Can I try to implement this feature?
Sure
Would importing all decks for a given directory also be a feature request (here or in another issue)?
Would be an extra menu item called Import directory...
and the current import menu item be called Import file(s)...
I think standard user experience for "multi-select" is that for pickers that allow multi-select, there is a toggle for select all / unselect all, along with the checkboxes next to each selection entry, and nowadays it appears Android also lets you select a range of entries via a long-hold drag gesture or something.
Which is to say: probably best to use some sort of existing system multi-select widget if possible, or open the file picker in multi-select mode if that's a thing.
I have completed implimenting selection of multiple files And showing multiple files in importing dialog. Can I please get some ideas on how I can make this dialog look pretty? I'm thinking of some kind of list to display filenames.
Edit: Added progress
How does this look?
Now I'm implementing the Dialog which gets displayed once the files are imported. I have currently made it work to look something like this:
I am also working on file import progress to add some indicator which file is being imported, this is a mockup of how I wish the file progress to be:
Oh I hadn't contemplated progress reporting. This is a pretty complicated feature! I like the idea of an 'N of Y' (or N/Y) display, and keeping it separate from the % lines that are per-file since it won't be easy to aggregate across all files for full percentages
In other words, either something like you just mocked up here, or if it's hard to change the dialog title but easy to change contents, add a line without the dot that contains the File N / Y.
I do think we have an existing pattern of saying "N of Y" vs "N/Y" but I don't feel that strongly. It will need to be a format string though with two formats ($1%d
and $2%d
- or at least I think I got the % and $ right, maybe I switched them - there are examples) in order to handle RTL langauges)
@mikehardy this issue should be closed as #10851 was merged.
@n1snt Before we do this, what about the follow-up issues as mentioned in https://github.com/ankidroid/Anki-Android/pull/10851#pullrequestreview-967928674
I have already made a PR for that #11303
If that was the only follow-up then great!
Is your feature request related to a problem? Please describe. When importing multiple files, I have to import them one by one. This means also resorting the file browser even though I use the same directory and for several files, this takes unneeded a lot of time extra..
Describe the solution you'd like When selecting a file to import, allow selecting multiple files.
Describe alternatives you've considered n/a
Additional context n/a