Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork166
The file management automation tool.
License
tfeldmann/organize
Folders and files
Name | Name | Last commit message | Last commit date | |
---|---|---|---|---|
Repository files navigation
organize - The file management automation tool
Full documentation at Read the docs
The new version should bemuch faster and fix a lot of bugs. It also comes witha some new actions, filters and options.
If you encounter any other bugs or problems during the migration, please reach out!
Your desktop is a mess? You cannot find anything in your downloads anddocuments? Sorting and renaming all these files by hand is too tedious?Time to automate it once and benefit from it forever.
organize is a command line, open-source alternative to apps like Hazel (macOS)or File Juggler (Windows).
- Sorting and tagging pictures into various folder structures based on EXIF data
- Sorting and renaming PDF invoices based on file content
- Removing incomplete downloads from their ~/Downloads
- Cleaning up their ~/Desktop from unused files
- Freeing up disk space by removing duplicates
- Automating various business processes
- and many more
Some highlights include:
- Safe moving, renaming, copying of files and folders with conflict resolution options.
- Fast duplicate file detection.
- Exif tags extraction.
- Categorization via text extracted from PDF, DOCX and many more.
- Powerful template engine.
- Inline python and shell commands as filters and actions for maximum flexibility.
- Everything can be simulated before touching your files.
- Works on macOS, Windows and Linux.
- Free and open source software.
Only python 3.9+ is needed.Install it via your package manager or frompython.org.
Installation is done via pip. Note that the package name isorganize-tool
:
pip install -U organize-tool
This command can also be used to update to the newest version. Now you can runorganize --help
to check if the installation was successful.
In your shell, runorganize new
and thenorganize edit
to edit the configuration:
rules: -name:"Find PDFs"locations: -~/Downloadssubfolders:truefilters: -extension:pdfactions: -echo:"Found PDF!"
If you have problems editing the configuration you can run
organize show --reveal
to reveal the configuration folder in your file manager. You can then edit theconfig.yaml
in your favourite editor.
save your config file and run:
organize run
You will see a list of all.pdf
files you have in your downloads folder (+ subfolders).For now we only show the textFound PDF!
for each file, but this will change soon...(If it showsNothing to do
you simply don't have any pdfs in your downloads folder).
Runorganize edit
again and add amove
-action to your rule:
actions: -echo:"Found PDF!" -move:~/Documents/PDFs/
Now runorganize sim
to see what would happen without touching your files.
You will see that your pdf-files would be moved over to yourDocuments/PDFs
folder.
Congratulations, you just automated your first task. You can now runorganize run
whenever you like and all your pdfs are a bit more organized. It's that easy.
There is so much more. You want to rename / copy files, run custom shell- or python scripts, match names with regular expressions or use placeholder variables? organize has you covered. Have a look at the advanced usage example below!
Here are some examples of simple organization and cleanup rules. Modify to your needs!
Move all invoices, orders or purchase documents into your documents folder:
rules: -name:"Sort my invoices and receipts"locations:~/Downloadssubfolders:truefilters: -extension:pdf -name:contains: -Invoice -Order -Purchasecase_sensitive:falseactions: -move:~/Documents/Shopping/
Recursively delete all empty directories:
rules: -name:"Recursively delete all empty directories"locations: -path:~/Downloadstargets:dirssubfolders:truefilters: -emptyactions: -delete
You'll find many more examples in thefull documentation.
organize - The file management automation tool.Usage: organize run [options] [<config>] organize sim [options] [<config>] organize new [<config>] organize edit [<config>] organize check [<config>] organize debug [<config>] organize show [--path|--reveal] [<config>] organize list organize docs organize --version organize --helpCommands: run Organize your files. sim Simulate organizing your files. new Creates a new config. edit Edit the config file with$EDITOR. check Check whether the config file is valid. debug Shows the raw config parsing steps. show Print the config to stdout. Use --reveal to reveal the file in your file manager Use --path to show the path to the file list Lists config files found in the default locations. docs Open the documentation.Options: <config> A config name or path to a config file -W --working-dir <dir> The working directory -F --format (default|jsonl) The output format [Default: default] -T --tags <tags> Tags to run (eg. "initial,release") -S --skip-tags <tags> Tags to skip -h --help Show this help page.
ETH:
0x8924a060CD533699E230C5694EC95b26BC4168E7
BTC:
39vpniiZk8qqGB2xEqcDjtWxngFCCdWGjY
About
The file management automation tool.
Topics
Resources
License
Uh oh!
There was an error while loading.Please reload this page.
Stars
Watchers
Forks
Sponsor this project
Uh oh!
There was an error while loading.Please reload this page.
Uh oh!
There was an error while loading.Please reload this page.