TagStudio icon indicating copy to clipboard operation
TagStudio copied to clipboard

Drag and drop files in and out of TagStudio

Open Creepler13 opened this issue 1 year ago • 7 comments

Added the ability to drop files into TagStudio, which adds them to the library

A popup will ask how to resume when some/all of the files names already exist in the librarys root folder

  • Skip
  • Override
  • Rename
  • Cancel

I put it in the modal folder because i plan/ned to add a window that allows you to import files from discord, google, etc since these are links and they need extra logic to either download or safe them as text.

I used the method described in #75

Edit: Dragging out of TagStudio was added

Creepler13 avatar May 09 '24 22:05 Creepler13

doesnt work for me:

Traceback (most recent call last):
  File "/Users/yed/dev/python/TagStudio/tagstudio/tag_studio.py", line 9, in <module>
    from src.qt.ts_qt import QtDriver
  File "/Users/yed/dev/python/TagStudio/tagstudio/src/qt/ts_qt.py", line 85, in <module>
    from src.qt.modals import (
  File "/Users/yed/dev/python/TagStudio/tagstudio/src/qt/modals/drop_import.py", line 30
    f"The files  {", ".join(map(lambda url:url.fileName(),duplicate_filesnames))}  have filenames that already exist in the library folder."
                   ^
SyntaxError: f-string: expecting '}'

Seems like using double quotes inside the same quotes isnt supported in Python 3.10. Could be easy to fix it to keep the compatibility with that version.

yedpodtrzitko avatar May 10 '24 15:05 yedpodtrzitko

beside the error it works as expected, nice job.

yedpodtrzitko avatar May 10 '24 15:05 yedpodtrzitko

Forgot about folders. They work now

Creepler13 avatar May 12 '24 00:05 Creepler13

Added progress bars, helpfull especially for large amounts of or large files

Creepler13 avatar May 12 '24 13:05 Creepler13

Added drag out of window support

#75

Creepler13 avatar May 22 '24 17:05 Creepler13

i give up, no more formatting

Creepler13 avatar May 22 '24 19:05 Creepler13

i give up, no more formatting

I'll take a look at it, I've been fighting with the MyPy stuff myself

CyanVoxel avatar May 24 '24 00:05 CyanVoxel

I apologize for the delay on getting this pulled. Thank you for all your work on this!

CyanVoxel avatar Jun 13 '24 17:06 CyanVoxel