media-import icon indicating copy to clipboard operation
media-import copied to clipboard

Remember media directory

Open nicolas-raoul opened this issue 7 years ago • 3 comments

It would be great if the add-on could somehow remember where my local pictures are stored. I always import from (mostly) the same directory, but every time I open the Meadi Import dialog it at /home/nicolas/Anki/User 1/collection.media. I guess nobody import pictures from that folder. Thanks! :-)

nicolas-raoul avatar Mar 04 '17 09:03 nicolas-raoul

You can specify you own initial dir, just find in mediaimport.py line

QFileDialog.getExistingDirectory(mw, "Import Directory"))

and add third parameter in it like this:

QFileDialog.getExistingDirectory(mw, "Import Directory", 'c:/Users/nicolas/Documents'))

ankitest avatar Mar 04 '17 10:03 ankitest

@ankitest : Thanks for the workaround, that works! :-)

nicolas-raoul avatar Mar 04 '17 10:03 nicolas-raoul

You can also drag and drop a directory into the "Look in:" section on the left so it becomes permanent (or maybe this is only a Qt/KDE thing).

A permanent solution would be to store the chosen path in a preference.

hssm avatar Mar 04 '17 11:03 hssm