Pure Python implementation of subset of ls command with colors and icons
Project description
colorls
Pure Python implementation of ls command with colors and icons. Inspired from colorls. Requires Nerd Fonts for icon/glyphs.
Note: This is not optimized and runs an order of magnitude slower than native ls
.
Installation
This is intended to run as an executable and not a library, it is preferable to use a tool such as pipx
pipx install color-ls
To customize the colors or add / change icons, copy config/colorls.toml
to either $XDG_CONFIG_HOME/colorls/colorls.toml
or ~/.colorls.toml
and update as required.
Usage
$ lx -h
usage: lx [-h] [-1] [-a] [-B] [-d] [-f] [--sd] [--sf] [-F] [-i] [-I PATTERN]
[-l] [-n] [-R] [-t [DEPTH]] [--version] [--si] [-U] [-H] [-x]
...
Pure Python implementation of `ls` command. Only a subset of available
arguments are implemented
positional arguments:
FILE List information about the FILE(s).
options:
-h, --help show this help message and exit
-1 list items on individual lines
-a, --all do not ignore entries starting with .
-B, --ignore-backups do not list implied entries ending with ~
-d, --directory list directories themselves, not their contents
-f, --file list files only, not directories
--sd, --sort-directories
list directories first
--sf, --sort-files list files first
-F, --classify append indicator (one of */=>@|) to entries
-i, --inode display inode number
-I PATTERN, --ignore PATTERN
do not list implied entries matching shell PATTERN
-l, --long use a long listing format
-n, --numeric-uid-gid
like -l, but list numeric user and group IDs
-R, --recursive list subdirectories recursively
-t [DEPTH], --tree [DEPTH]
max tree depth
--version display current version number and exit
--si display file size in SI units
-U, --unsorted do not sort; list entries in directory order
-H, --header do not display header
-x do not display icons
Feature Requests/Bugs should be reported at https://gitlab.com/compilation-
error/colorls/-/issues
Screenshots
Default view
No Icons
List only files or dirs
List files or dirs first
Long Listing
Tree View
Globs should work as well
Current Version
Requirements
- Python 3.10 or higher
- Nerd Fonts
License
GPLv3
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
File details
Details for the file color_ls-2.2.1.tar.gz
.
File metadata
- Download URL: color_ls-2.2.1.tar.gz
- Upload date:
- Size: 46.2 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 53c61134361269e87c0e5ae4289c681c7ba8e68d5217481a88403d7a8e13e99d |
|
MD5 | 0edbaf53b9f6d0cffd957fa42dd44ba9 |
|
BLAKE2b-256 | e8aa905be00005e31efa863dd24a25657234c7f83c001fedca775d6dd880b6ed |
File details
Details for the file color_ls-2.2.1-py3-none-any.whl
.
File metadata
- Download URL: color_ls-2.2.1-py3-none-any.whl
- Upload date:
- Size: 33.7 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/4.0.1 CPython/3.10.14
File hashes
Algorithm | Hash digest | |
---|---|---|
SHA256 | 5214b2cf6005f8050f68d409b53e192ca89590c3daa3f35fc09fd51ed978c80d |
|
MD5 | 9349bcfb5fca01b7e892f83c4d4a3887 |
|
BLAKE2b-256 | 7f891b1993c378e434a730c9a3d2d1b48bbd1ccc1ce15bd395200853f6f484cd |