Project

catalog

0.0
No commit activity in last 3 years
No release in over 3 years
Catalog prevents your download folder from being a mess on Mac Os X.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
2025
2026
 Dependencies

Development

~> 1.3
>= 0
>= 0
 Project Readme

Catalog

Catalog prevents your download folder from being a mess on your Mac.

The problem

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).

Installation

# Install `catalog` gem
$ gem install catalog

# Create the configuration file
$ touch ~/.catalog

State of project

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.

How to use

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

~/.catalog example

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.

License

Catalog is © 2014 Samuel Garneau and may be freely distributed under the MIT license. See the LICENSE.md file for more information.