arista
arista copied to clipboard
Multiple Selection from File System
It would be nice to select multiple files from the filesystem and add them to the queue at the same time.
What do you think?
You can already select an entire folder in the latest version, which kind of helps with this issue, but it's tough to represent multiple files in the UI. One thing I've recently added is a Nautilus extension so you can actually select multiple files in your file browser, right click, and convert to a device and preset (currently it spawns arista-transcode but a new simple GUI is coming soon).
How would this best be represented in the GUI? Particularly the source drop down?
I think that the best option is to show a label like "4 files" and some kind of icon representing a multiple file selection. Then when you click on add button, arista would show 4 jobs independently.
So to officially spec this out a bit, this requires the following:
- Allow selecting multiple items in the source file chooser
- Add multiple items icon and translatable string label
- Store multiple items (e.g. a python list) in selected item iter
- Modify preset_ready method to treat multiple files like a folder
- Reorganize a bit so folder and multiple items can share code
This should be fairly easy to add. I'm going to shoot for the release after 0.9.5 which I'm finishing up this week.
what about not adding a UI for choosing multiple files at all, but allow drag and drop from Nautilus or whatever on to the Arista preview pane?
I've added in basic drag and drop in ad671ba, but it only supports single files and directories at this point. Handling multiple files will take a bit more work, and I'm not sure it'll make it into the next release, but this is a start.
Thanks Daniel! I will try it.