Giter VIP home page Giter VIP logo

ranger's Introduction

Ranger is a commandline tool to organize your files.

How to use

most importnat thing first: use --help after any command to get all options and flags.

The following will organize your directory up to the level of months. You can use years and days respectively

$ ranger months

if you had a directory that looks like this:

├── myDirectory/
    └── 20141106_092204.jpg
    └── 20141115_124714.jpg
    └── 20141128_152219.jpg
    └── 20141128_152227.jpg
    └── 20150503_104114.jpg
    └── 20150503_111314.jpg
    └── 20150512_131524.jpg
    └── 20150622_204250.jpg
    └── 20150630_170123.jpg
    └── 20150714_194224-1.jpg

it will turn into this: (more languages will potentially be added)

├── myDirectory/
    ├───2014
    │   └── 11-November
    │       └── 20141106_092204.jpg
    │       └── 20141115_124714.jpg
    │       └── 20141128_152219.jpg
    │       └── 20141128_152227.jpg
    └───2015
        ├── 05-Mai
        │   └── 20150503_104114.jpg
        │   └── 20150503_111314.jpg
        │   └── 20150512_131524.jpg
        ├── 06-Juni
        │   └── 20150622_204250.jpg
        │   └── 20150630_170123.jpg
        └── 07-Juli
            └── 20150714_194224-1.jpg

the flags --modtime and --exif will use the last modification time or exif data to retrieve the time. By default ranger searches the filename for time information (--filename)

Tipp: you can use the different sources in succession for the best results if you have different types of files

$ ranger days
$ ranger days --modtime

if you made a mistake or have a lot of nested directories you can use

$ ranger compile

this will scan all subdirectories and move all files to the directory from where you ran the command. It will also delete all the folders (they are empty anyway now, no worrys)

Install

$ git clone https://github.com/theryann/ranger.git

in the root level of the repo run the following (you should have set your gopath)

$ go install .

ranger's People

Watchers

Darian Patzak avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.