crahan / ipyfilechooser

Python file chooser widget for use in Jupyter/IPython in conjunction with ipywidgets
MIT License
103 stars 19 forks source link

select multiple files? #11

Open toqduj opened 4 years ago

toqduj commented 4 years ago

Would it be possible to add support for multiple file selection (i.e. using command-click or shift-click?)

crahan commented 4 years ago

Hi @toqduj, thanks for the suggestion. Unfortunately, the way things are currently implemented it's not something I can easily implement. I will leave the issue in place for future reference though.

toqduj commented 4 years ago

Alright, no worries, and thanks for the nice interface so far! (now using it to select directories, and letting glob take care of selecting the matching files...

giswqs commented 3 years ago

I was also looking for a solution for selecting multiple files. One potential workaround I can think of is to use a SelectMultiple widget and push ipyfilechooser.selected to the widget with register_callback. Related issue:https://github.com/giswqs/whiteboxgui/issues/8

https://ipywidgets.readthedocs.io/en/latest/examples/Widget%20List.html#SelectMultiple image

crahan commented 3 years ago

That's actually a very interesting workaround for this. Thanks @giswqs!