Crates.io | orginize-rt |
lib.rs | orginize-rt |
version | 0.9.0 |
source | src |
created_at | 2020-05-05 13:25:28.580171 |
updated_at | 2020-05-05 13:25:28.580171 |
description | Organize files based on regex (file extensions default) |
homepage | |
repository | https://gitlab.com/FixFromDarkness/organize-rt |
max_upload_size | |
id | 237727 |
size | 137,414 |
Organize files based on regex rules, file extensions by default.
Install it by running
$ cargo install organize-rt
It will download & compile binary to ~/.cargo/bin. Add this directory to your path or copy binary to /usr/bin/
Just clone this repo and build this project:
$ git clone --depth=1 https://gitlab.com/FixFromDarkness/organize-rt.git
$ cd organize-rt
$ cargo build --release
After compiling, you can use binary ./target/release/organize-rt
. For example, you could copy it to /usr/bin.
Download binaries from GitLab release section.
Clone repo and use makepkg:
$ git clone --depth=1 https://gitlab.com/FixFromDarkness/organize-rt.git
$ makepkg -sri
$ organize-rt --help
orginize-rt 0.9.0
Tool for organizing files in garbage dirs like 'Downloads'
USAGE:
orginize-rt [FLAGS] --output <output> --source <source>
FLAGS:
-h, --help Prints help information
-H, --hidden Include hidden files/directories
-q, --quiet Quiet run, empty output
-r, --recursive
-V, --version Prints version information
-v, --verbose Show more info
OPTIONS:
-o, --output <output> Output directory
-s, --source <source> Directory to organize
Recommended mode: organize-rt -rH
Just edit ~/.config/organize-rt/rules.toml. File structure:
rules = [
#...
[
'REGEX',
'OUTPUT_SUBDIR',
]
#...
]
With this rule, file, that match REGEX rule, but didn't match previous rules will move to OUTPUT_DIR/OUTPUT_SUBDIR, where OUTPUT_DIR is --output option.
Star this repo, please.