Catalog prevents your download folder from being a mess on your Mac.
The Downloads folder on a Mac is the most cluttered folder there is. Even with the best intentions, we end up not cleaning it as often as we should.
Catalog allow us to create rules to automatically organize your downloads based on their origin (i.e. http://someurl.com/path/to/file.pdf).
# Install `catalog` gem
$ gem install catalog
# Create the configuration file
$ touch ~/.catalog
The current version doesn't include a CLI. You'll have to use it through IRB as you can see in the How to use section. The next step will be to provide a CLI and a way to easily deamonize this.
As mentionned above, catalog does not offer a CLI at the moment. You have to load it with IRB.
> require 'catalog'
=> true
# Default location is ~/Downloads
> Catalog::Organizer.new.run!
=> true
# However, you can specify your own
> Catalog::Organizer.new(base_path: '/Volumes/Downloads/').run!
=> true
drawers:
# Basecamp related files
- rule: basecamp.com\/39\/projects\/12837347\/
path: /Users/garno/Downloads/Basecamp/ProjectName/
- rule: basecamp.com
path: /Users/garno/Downloads/Basecamp/
# DMGs
- rule: \.(?:dmg)$
path: /Users/garno/Downloads/DMGs/
# Alfred workflows
- rule: \.(?:alfredworkflow)$
path: /Users/garno/Downloads/Alfred workflows/
Rules order is really important since a file will be moved according to the first matched rule.
Catalog is © 2014 Samuel Garneau and may be freely distributed under the MIT license. See the LICENSE.md file for more information.