#sorting #tool #cli-tool #cli

app downloads_sorter

A fast and customizable way to automatically sort your files!

5 releases

0.1.5 Feb 10, 2022
0.1.3 Feb 8, 2022
0.1.2 Feb 8, 2022
0.1.1 Feb 8, 2022
0.1.0 Feb 7, 2022

#36 in #sort

41 downloads per month

MIT license

12KB
206 lines

Downloads Sorter

This is a simple CLI tool to help you manage your downloads.

After installing, make a downloads_sorter.toml file in $HOME/.config/downloads_sorter.toml.

Change the behavior in the downloads_sorter.toml file. Here is a sample:

sortingdir = 'none'
archivedir = 'none'

[[folderconfig]]
name = 'homework'
keywords = ['hw', 'problemset', 'project', 'lecture' ]
matchertypes = []

[[folderconfig]]
name = 'installers'
keywords = ['amd', 'msi', 'installer']
matchertypes = ['app']

The sortingdir is where the program will look for files to sort, default is the downloads folder.

The archivedir is the base directory of where the program will create the folders and then sort the files.

The name of the folderconfig entry will be the name of the folder in the archive. The keywords will be checked against file names and then sent to that folder. The matchertypes will be MIME types. These do not work very well right now, so it is recommended to just use keywords.

Valid matcher types are:

['app', 'archive', 'audio', 'document', 'font', 'image', 'text' ]

Plans: Regex catgerization of files. Terminal menu.

Dependencies

~4–15MB
~155K SLoC