Sorting directory files made easy.
Project description
#+TITLE: sortdir
#+BEGIN_QUOTE
Tool to keep your directories clean
#+END_QUOTE
* Table of contents :TOC_2:
- [[#installation][Installation]]
- [[#usage][Usage]]
- [[#configuration][Configuration]]
- [[#example][Example]]
* Installation
#+BEGIN_SRC shell
pip install sortdir
#+END_SRC
* Usage
When you run the following command the tool will at first perform initial sorting and then start a server which will be watching for new files and moving them to their destination subdirectories defined in your config
#+BEGIN_SRC shell
sortdir
#+END_SRC
* Configuration
Create a config file in one of the following locations:
- ~$HOME/.sortdir.toml~
- ~$HOME/.config/sortdir/config.toml~
** Example
#+BEGIN_SRC toml
[directories]
[directories."~/Downloads"]
documents = [
".doc",
".docx",
".ods",
".odt",
".pdf",
".ppt",
".pptx",
".txt",
".xls",
".xlsx",
]
images = [".gif", ".heic", ".png", ".jpeg", ".jpg"]
[directories."~/dev"]
python = [".py"]
javascript = [".js"]
#+END_SRC
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
sortdir-0.2.2.tar.gz
(4.4 kB
view hashes)