3 releases (1 stable)

new 1.0.0 Mar 1, 2025
0.6.0 Dec 31, 2024
0.5.2 Dec 30, 2024
0.4.0 Dec 14, 2024
0.1.3 Jan 26, 2024

#364 in Filesystem

Download history 7/week @ 2024-11-27 65/week @ 2024-12-04 180/week @ 2024-12-11 34/week @ 2024-12-18 356/week @ 2024-12-25 301/week @ 2025-01-01 131/week @ 2025-01-08 5/week @ 2025-01-15 2/week @ 2025-01-29 2/week @ 2025-02-05 2/week @ 2025-02-12 177/week @ 2025-02-26

182 downloads per month

MIT license

740KB
9K SLoC

lh

List handsomely is a customizable directory listing tool. Currently, it prints file names, but future updates will include metadata filters and more advanced features.

Installation

Prerequisites

Ensure you have Nerd Fonts installed and enabled for the symbols.

Install lh

Package Manager Command
cargo cargo install lh

Documentation

Documentation is available here.

Flags

  • If no filter is applied, the output includes all file types and excludes hidden files. The default input is ./.
  • --all or -a flag: Prints all files, including hidden ones.
  • --long or -l flag: Provides detailed information about the files.
  • --hidden flag: Prints only hidden files.
  • --p-type file flag: Prints only files.
  • --p-type dir flag: Prints only directories.
  • --filter or -f flag: Prints filtered output.
  • --one-col or -o flag: Prints not like tables like list.
  • --sort or -s flag: changes the sort type name or size.
  • --recursive or -r flag: Recursively lists.
  • --search or -S flag: searchs the key in the list.

standard_all_outputs only_files only_dirs

Usage

Here are some examples of how to use the lh command:

  • List all files and directories in the current directory:

    lh
    
  • List all files, including hidden ones:

    lh --all
    
  • List only files:

    lh --p-type file
    
  • List only directories:

    lh --p-type dir
    
  • Provide detailed information about the files:

    lh --long
    
  • List files recursively:

    lh --recursive
    
  • Filter files by a specific type:

    lh --filter <file_type>
    
  • Search for files with a specific name:

    lh --search <file_name>
    

Future Plans

  • Customizable in Linux.
  • Customizable in Windows.
  • Bold, italic, and regular options for config.
  • Implement search functionality.
  • Advanced filtering and sorting options.
  • Recursive directory listing.
  • Add support for additional file types and extensions.
  • Add more customization options for output formatting.
  • Theme installation from github repo.
  • Default theme correction.
  • Background color customization.
  • Color test

Dependencies

~4–14MB
~192K SLoC