EltonChou / TwitterMediaHarvest

Download twitter media with only one-click.
https://chrome.google.com/webstore/detail/media-harvest-twitter-med/hpcgabhdlnapolkkjpejieegfpehfdok
MIT License
374 stars 32 forks source link

[FEATURE] Group files by other attributes #140

Open fmajestic opened 4 months ago

fmajestic commented 4 months ago

Is your feature request related to a problem? Please describe. I'd like to group files by Download Date. Currently, only Account is supported.

Describe the solution you'd like Add more options to the Group Files dropdown. Ideally it would include everything from Filename Pattern (except Serial).

Describe alternatives you've considered A shell script for manually moving files into directories.

Additional context I'd be interested in developing this, if you're OK with adding the feature.

EltonChou commented 4 months ago

Here are some entry points good to start. The tokens should be organized as enum.

https://github.com/EltonChou/TwitterMediaHarvest/blob/4976253a70096f6417e2279b093fe399c16ea570/src/types/schema.d.ts#L90

https://github.com/EltonChou/TwitterMediaHarvest/blob/4976253a70096f6417e2279b093fe399c16ea570/src/backend/settings/filenameSettings/usecase.ts#L45-L53

https://github.com/EltonChou/TwitterMediaHarvest/blob/4976253a70096f6417e2279b093fe399c16ea570/src/pages/components/GeneralOptions.tsx#L172-L187

https://github.com/EltonChou/TwitterMediaHarvest/blob/4976253a70096f6417e2279b093fe399c16ea570/src/pages/hooks/useFilenameSettingsForm.ts#L110-L139