Skip to content

itsawouki/Partition-Sorter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

Β 

History

25 Commits
Β 
Β 
Β 
Β 
Β 
Β 
Β 
Β 

Repository files navigation

Partition Sorter - Intelligent File Organizer Linux Support Python 3.6+ License Partition Sorter is a powerful terminal-based file organization tool that automatically sorts files into categorized folders based on their type. Perfect for cleaning up messy drives and organizing your data efficiently.


πŸ“‹ Table of Contents


🎯 Description

Partition Sorter helps you maintain a clean and organized file system by automatically moving files into categorized folders. The application:

  • Detects mounted partitions on your Linux system
  • Allows manual or automatic partition selection
  • Sorts files into 7 categories: Videos, Audio, Photos, Documents, Compressed files, Programming files, and Others
  • Remembers your preferences using a local JSON database
  • Features both automatic and manual sorting modes

✨ Features

  • Automatic Partition Detection - Scans and lists all mounted partitions
  • Smart File Categorization - Supports 100+ file formats across 7 categories
  • Two Sorting Modes:
    • Automatic - Sort all selected partitions at once
    • Manual - Choose specific partitions to sort
  • Persistent Configuration - Saves your partition preferences in data.json
  • Colorful Terminal UI - Easy-to-read interface with color coding
  • No Root Required - Runs with user permissions for safety

πŸ“ File Categories

Category File Types
Videos .mp4, .mkv, .avi, .mov, .wmv, .flv, .webm + 20+ more
Audio .mp3, .wav, .flac, .aac, .ogg, .m4a + 20+ more
Photos .jpg, .jpeg, .png, .gif, .bmp, .tiff, .webp, .svg + 15+ more
Documents .txt, .pdf, .doc, .docx, .xls, .xlsx, .ppt, .md + 25+ more
Programming .py, .js, .java, .c, .cpp, .go, .rs, .html, .css + 60+ more
Compressed .zip, .rar, .7z, .tar, .gz, .bz2, .xz + 30+ more
Others Any file type not matching above categories

πŸ“Έ Screenshots

App Screenshot App Screenshot

πŸ“¦ Installation:

1. Clone the application

git clone https://github.com/itsawouki/Partition-Sorter.git && cd Partition-Sorter

2. install colorama

Choose your operating system:

Arch Linux

sudo pacman -S python-colorama

Debian/Ubuntu/Linux Mint

sudo apt install python3-colorama

Fedora

sudo dnf install python3-colorama

RHEL/CentOS

sudo yum install python3-colorama

openSUSE

sudo zypper install python3-colorama

Other Linux distros or if package not available

# Using pip (user installation)
pip3 install --user colorama

# Or system-wide (not recommended)
sudo pip3 install colorama

# Or using pipx (recommended for user apps)
pipx install colorama

3. Shell Setup

The pnsr command should work immediately. If not, add this to your shell config:

For Bash users (~/.bashrc)

echo 'alias pnsr="pnsr"' >> ~/.bashrc
source ~/.bashrc

For Zsh users (~/.zshrc)

echo 'alias pnsr="pnsr"' >> ~/.zshrc
source ~/.zshrc

For Fish users (~/.config/fish/config.fish)

echo 'alias pnsr="pnsr"' >> ~/.config/fish/config.fish
source ~/.config/fish/config.fish

Usage

Simply type:

pnsr

IMPORTANT WARNINGS

🚨 DO NOT DELETE THE APPLICATION FILES

CRITICAL: The pnsr.py file and data.json configuration file contain your partition settings and preferences.

If you delete pnsr.py, the application will stop working
If you delete data.json, you will lose all saved partition configurations
These files are the MAIN APPLICATION FILES - keep them safe! If you delete pnsr.py, the application will stop working

If you delete data.json, you will lose all saved partition configurations These files are the MAIN APPLICATION FILES - keep them safe!

About

πŸ—‚οΈ A powerful terminal-based file organizer for Linux that automatically sorts files on your partitions into categories: Videos, Audio, Photos, Documents, Compressed files, Programming files, and more. Supports 100+ file formats with persistent configuration.

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages