• About TC
  • Affiliate Disclaimer
  • Privacy Policy
  • TOS
  • Contact
Tuesday, June 17, 2025
Techcratic
  • TC
  • AI
    Artificial Intelligence

    How Apollo Tyres is unlocking machine insights using agentic AI-powered Manufacturing Reasoner

    Artificial Intelligence

    Automatically Build AI Workflows with Magical AI

    Artificial Intelligence

    Amazon Nova Lite enables Bito to offer a free tier option for its AI-powered code reviews

    Artificial Intelligence

    Bridging the Gap: New Datasets Push Recommender Research Toward Real-World Scale

    Artificial Intelligence

    7 Python Errors That Are Actually Features

    Artificial Intelligence

    10 Awesome OCR Models for 2025

    Artificial Intelligence

    5 Error Handling Patterns in Python (Beyond Try-Except)

    Artificial Intelligence

    Top 5 Alternative Data Career Paths and How to Learn Them for Free

    Artificial Intelligence

    Implementing Machine Learning Pipelines with Apache Spark

  • Crypto
    Warning: Blackrock Could Orchestrate Institutional Bitcoin Takeover

    Warning: Blackrock Could Orchestrate Institutional Bitcoin Takeover

    The Curious Case of the Pentagon Pizza Index: It Accurately Predicts Wars

    The Curious Case of the Pentagon Pizza Index: It Accurately Predicts Wars

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    Crypto Price Prediction Today: XRP, Cardano, Dogecoin

    Bybit Debuts Hybrid Exchange Byreal on Solana, Targets Q3 Mainnet Launch

    Bybit Debuts Hybrid Exchange Byreal on Solana, Targets Q3 Mainnet Launch

    Weekly ETF Recap: Bitcoin and Ether ETFs Draw Strong Institutional Demand With Combined $1.9 Billion Inflow

    Weekly ETF Recap: Bitcoin and Ether ETFs Draw Strong Institutional Demand With Combined $1.9 Billion Inflow

    Fed Watchers Eye September as Tension Builds Around Central Bank Cuts

    Fed Watchers Eye September as Tension Builds Around Central Bank Cuts

    Uniswap Surges 24% on $88B Volume, Targeting $12

    Tron Plans US Public Offering via Nasdaq Reverse Merger

    Report: Justin Sun’s Tron Aims for Nasdaq Listing in High-Stakes Merger Deal

    Report: Justin Sun’s Tron Aims for Nasdaq Listing in High-Stakes Merger Deal

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    2025’s Breakout Meme Coin? Why Everyone’s Rushing to Get a Piece of $AKE

  • Cybersecurity
    Cybersecurity

    AI Agents Run on Secret Accounts — Learn How to Secure Them in This Webinar

    Cybersecurity

    How to Address the Expanding Security Risk

    Cybersecurity

    ConnectWise to Rotate ScreenConnect Code Signing Certificates Due to Security Risks

    Cybersecurity

    5 Lessons from River Island

    Cybersecurity

    INTERPOL Dismantles 20,000+ Malicious IPs Linked to 69 Malware Variants in Operation Secure

    Cybersecurity

    SinoTrack GPS Devices Vulnerable to Remote Vehicle Control via Default Passwords

    Cybersecurity

    Researchers Uncover 20+ Configuration Risks, Including Five CVEs, in Salesforce Industry Cloud

    Cybersecurity

    Adobe Releases Patch Fixing 254 Vulnerabilities, Closing High-Severity Security Gaps

    Cybersecurity

    Researcher Found Flaw to Discover Phone Numbers Linked to Any Google Account

  • Deals
    Donkey Kong Country Returns (Renewed)

    Donkey Kong Country Returns (Renewed)

    Buffalo Games CHRONOLOGY – The Game Where You Make History – 20th Anniversary Edition

    Buffalo Games CHRONOLOGY – The Game Where You Make History – 20th Anniversary Edition

    Sprunki Plush Toys, Horror Games Plushies Toy for Fans, Soft Stuffed Animal Pillow…

    Sprunki Plush Toys, Horror Games Plushies Toy for Fans, Soft Stuffed Animal Pillow…

    Western Digital 8TB WD Red Plus NAS Internal Hard Drive HDD – 5640 RPM, SATA 6 Gb/s,…

    Western Digital 8TB WD Red Plus NAS Internal Hard Drive HDD – 5640 RPM, SATA 6 Gb/s,…

    Seagate BarraCuda Mobile Hard Drive 4TB SATA 6Gb/s 128MB Cache 2.5-Inch 15mm…

    Seagate BarraCuda Mobile Hard Drive 4TB SATA 6Gb/s 128MB Cache 2.5-Inch 15mm…

    Lexar 128GB (2-PK) Professional SILVER PRO SD Card, UHS-II, C10, U3, V60, Full HD, 4K,…

    Lexar 128GB (2-PK) Professional SILVER PRO SD Card, UHS-II, C10, U3, V60, Full HD, 4K,…

    SABRENT 2.5 Inch SATA to USB 3.0 Tool Free External Hard Drive Enclosure [Optimized for…

    SABRENT 2.5 Inch SATA to USB 3.0 Tool Free External Hard Drive Enclosure [Optimized for…

    B221000 Black Toner Cartridge B/MB2236 Replacement for Lexmark B221000 Toner Cartridge…

    B221000 Black Toner Cartridge B/MB2236 Replacement for Lexmark B221000 Toner Cartridge…

    Lexar 1TB Professional Go Portable SSD w/Hub, Supports Apple 4K 60fps ProRes, Up to…

    Lexar 1TB Professional Go Portable SSD w/Hub, Supports Apple 4K 60fps ProRes, Up to…

  • Gaming
    Robocop: Rogue City Review

    Robocop: Rogue City Review

    ‘It didn’t exist and I wanted to play it’: Phasmophobia’s lead dev got tired of trawling around Steam for a co-op horror puzzle game so decided to just make it himself

    ‘It didn’t exist and I wanted to play it’: Phasmophobia’s lead dev got tired of trawling around Steam for a co-op horror puzzle game so decided to just make it himself

    Thymesia | Boss Fight | Urd

    Thymesia | Boss Fight | Urd

    Trophy Hunter's Review Of The Callisto Protocol

    Trophy Hunter's Review Of The Callisto Protocol

    Starship Troopers: Extermination Gameplay Demo

    Starship Troopers: Extermination Gameplay Demo

    Both Stellar Blade and Dune: Awakening shot into Steam’s top 100 with new concurrent player peaks yesterday

    Both Stellar Blade and Dune: Awakening shot into Steam’s top 100 with new concurrent player peaks yesterday

    Diablo 4 Early Impressions – Closed BETA Review from a casual D3 player

    Diablo 4 Early Impressions – Closed BETA Review from a casual D3 player

    A Sonic Frontiers review, an early LATE review.

    A Sonic Frontiers review, an early LATE review.

    ASRock B860 Steel Legend Wi-Fi review

    ASRock B860 Steel Legend Wi-Fi review

  • Tesla
    Tesla gives update on Tesla Semi factory, says on track for volume production in 2026

    Tesla gears up to start selling Tesla Semi electric truck in Europe

    Center Console Organizer Tesla Cybertruck Center Console Cover Cup Holder, Console…

    Center Console Organizer Tesla Cybertruck Center Console Cover Cup Holder, Console…

    Bloomberg just released the most embarrassing report about Tesla, Waymo, and self-driving

    BYD overtakes Tesla as China’s EV giants dominate global sales

    BYD overtakes Tesla as China’s EV giants dominate global sales

    Oh-Shiz Safety Assistance Handles for Tesla Cybertruck (2pcs) Quick-Reach Cabin Grab…

    Oh-Shiz Safety Assistance Handles for Tesla Cybertruck (2pcs) Quick-Reach Cabin Grab…

    Tow Hook Covers for Tesla Cybertruck 2023 2024 2025,Customized Tow Hitch Covers…

    Tow Hook Covers for Tesla Cybertruck 2023 2024 2025,Customized Tow Hitch Covers…

    Car Windshield Cleaner, Windshield Cleaning Tool Kit with Detachable Handle Spray…

    Car Windshield Cleaner, Windshield Cleaning Tool Kit with Detachable Handle Spray…

    Winch Stopper,Winch Accessories,Car Accessories Winch Cable Stopper,Rubber Winch…

    Winch Stopper,Winch Accessories,Car Accessories Winch Cable Stopper,Rubber Winch…

    LUCKEASY 2PCS Storage Box Compatible with Tesla Cybertruck 2024 2023 Center Console…

    LUCKEASY 2PCS Storage Box Compatible with Tesla Cybertruck 2024 2023 Center Console…

  • UFO
    Pop Culture Conspiracy Theories! Taylor Swift, SHEIN, and Deadpool & Wolverine!!

    Pop Culture Conspiracy Theories! Taylor Swift, SHEIN, and Deadpool & Wolverine!!

    What is Unidentified Flying Object?

    What is Unidentified Flying Object?

    The Visitor

    The Visitor

    Earth from space Nasa

    Earth from space Nasa

    E.T. – The Extra-Terrestrial (Full Screen Edition) by Henry Thomas

    E.T. – The Extra-Terrestrial (Full Screen Edition) by Henry Thomas

    Found a B2 Bomber #B2Spirit #Bomber #USA #Milatary #GoogleMaps #Plane #Stealth #B2Bomber #Army

    Found a B2 Bomber #B2Spirit #Bomber #USA #Milatary #GoogleMaps #Plane #Stealth #B2Bomber #Army

    Everything We Know About Ancient Extraterrestrials: Decoding the Ancient Astronaut Theory, Megalithic Engineering Marvels, and Extraterrestrial Contact … the Space Age (Cosmic Conspiracy Archives)

    Everything We Know About Ancient Extraterrestrials: Decoding the Ancient Astronaut Theory, Megalithic Engineering Marvels, and Extraterrestrial Contact … the Space Age (Cosmic Conspiracy Archives)

    How Joe Biden Crashed his Bike #shorts

    How Joe Biden Crashed his Bike #shorts

    F205 Drone with 2.4″ Screen, Brushless Motor FPV Drone with Camera for Adult, Auto-Hover, Gesture Control, 8GB SD Card with Card Reader, One-Key Start for Beginner

    F205 Drone with 2.4″ Screen, Brushless Motor FPV Drone with Camera for Adult, Auto-Hover, Gesture Control, 8GB SD Card with Card Reader, One-Key Start for Beginner

No Result
View All Result
  • TC
  • AI
    Artificial Intelligence

    How Apollo Tyres is unlocking machine insights using agentic AI-powered Manufacturing Reasoner

    Artificial Intelligence

    Automatically Build AI Workflows with Magical AI

    Artificial Intelligence

    Amazon Nova Lite enables Bito to offer a free tier option for its AI-powered code reviews

    Artificial Intelligence

    Bridging the Gap: New Datasets Push Recommender Research Toward Real-World Scale

    Artificial Intelligence

    7 Python Errors That Are Actually Features

    Artificial Intelligence

    10 Awesome OCR Models for 2025

    Artificial Intelligence

    5 Error Handling Patterns in Python (Beyond Try-Except)

    Artificial Intelligence

    Top 5 Alternative Data Career Paths and How to Learn Them for Free

    Artificial Intelligence

    Implementing Machine Learning Pipelines with Apache Spark

  • Crypto
    Warning: Blackrock Could Orchestrate Institutional Bitcoin Takeover

    Warning: Blackrock Could Orchestrate Institutional Bitcoin Takeover

    The Curious Case of the Pentagon Pizza Index: It Accurately Predicts Wars

    The Curious Case of the Pentagon Pizza Index: It Accurately Predicts Wars

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    Crypto Price Prediction Today: XRP, Cardano, Dogecoin

    Bybit Debuts Hybrid Exchange Byreal on Solana, Targets Q3 Mainnet Launch

    Bybit Debuts Hybrid Exchange Byreal on Solana, Targets Q3 Mainnet Launch

    Weekly ETF Recap: Bitcoin and Ether ETFs Draw Strong Institutional Demand With Combined $1.9 Billion Inflow

    Weekly ETF Recap: Bitcoin and Ether ETFs Draw Strong Institutional Demand With Combined $1.9 Billion Inflow

    Fed Watchers Eye September as Tension Builds Around Central Bank Cuts

    Fed Watchers Eye September as Tension Builds Around Central Bank Cuts

    Uniswap Surges 24% on $88B Volume, Targeting $12

    Tron Plans US Public Offering via Nasdaq Reverse Merger

    Report: Justin Sun’s Tron Aims for Nasdaq Listing in High-Stakes Merger Deal

    Report: Justin Sun’s Tron Aims for Nasdaq Listing in High-Stakes Merger Deal

    Best Presales to Buy Today – Which Coins Are Poised for a Breakout?

    2025’s Breakout Meme Coin? Why Everyone’s Rushing to Get a Piece of $AKE

  • Cybersecurity
    Cybersecurity

    AI Agents Run on Secret Accounts — Learn How to Secure Them in This Webinar

    Cybersecurity

    How to Address the Expanding Security Risk

    Cybersecurity

    ConnectWise to Rotate ScreenConnect Code Signing Certificates Due to Security Risks

    Cybersecurity

    5 Lessons from River Island

    Cybersecurity

    INTERPOL Dismantles 20,000+ Malicious IPs Linked to 69 Malware Variants in Operation Secure

    Cybersecurity

    SinoTrack GPS Devices Vulnerable to Remote Vehicle Control via Default Passwords

    Cybersecurity

    Researchers Uncover 20+ Configuration Risks, Including Five CVEs, in Salesforce Industry Cloud

    Cybersecurity

    Adobe Releases Patch Fixing 254 Vulnerabilities, Closing High-Severity Security Gaps

    Cybersecurity

    Researcher Found Flaw to Discover Phone Numbers Linked to Any Google Account

  • Deals
    Donkey Kong Country Returns (Renewed)

    Donkey Kong Country Returns (Renewed)

    Buffalo Games CHRONOLOGY – The Game Where You Make History – 20th Anniversary Edition

    Buffalo Games CHRONOLOGY – The Game Where You Make History – 20th Anniversary Edition

    Sprunki Plush Toys, Horror Games Plushies Toy for Fans, Soft Stuffed Animal Pillow…

    Sprunki Plush Toys, Horror Games Plushies Toy for Fans, Soft Stuffed Animal Pillow…

    Western Digital 8TB WD Red Plus NAS Internal Hard Drive HDD – 5640 RPM, SATA 6 Gb/s,…

    Western Digital 8TB WD Red Plus NAS Internal Hard Drive HDD – 5640 RPM, SATA 6 Gb/s,…

    Seagate BarraCuda Mobile Hard Drive 4TB SATA 6Gb/s 128MB Cache 2.5-Inch 15mm…

    Seagate BarraCuda Mobile Hard Drive 4TB SATA 6Gb/s 128MB Cache 2.5-Inch 15mm…

    Lexar 128GB (2-PK) Professional SILVER PRO SD Card, UHS-II, C10, U3, V60, Full HD, 4K,…

    Lexar 128GB (2-PK) Professional SILVER PRO SD Card, UHS-II, C10, U3, V60, Full HD, 4K,…

    SABRENT 2.5 Inch SATA to USB 3.0 Tool Free External Hard Drive Enclosure [Optimized for…

    SABRENT 2.5 Inch SATA to USB 3.0 Tool Free External Hard Drive Enclosure [Optimized for…

    B221000 Black Toner Cartridge B/MB2236 Replacement for Lexmark B221000 Toner Cartridge…

    B221000 Black Toner Cartridge B/MB2236 Replacement for Lexmark B221000 Toner Cartridge…

    Lexar 1TB Professional Go Portable SSD w/Hub, Supports Apple 4K 60fps ProRes, Up to…

    Lexar 1TB Professional Go Portable SSD w/Hub, Supports Apple 4K 60fps ProRes, Up to…

  • Gaming
    Robocop: Rogue City Review

    Robocop: Rogue City Review

    ‘It didn’t exist and I wanted to play it’: Phasmophobia’s lead dev got tired of trawling around Steam for a co-op horror puzzle game so decided to just make it himself

    ‘It didn’t exist and I wanted to play it’: Phasmophobia’s lead dev got tired of trawling around Steam for a co-op horror puzzle game so decided to just make it himself

    Thymesia | Boss Fight | Urd

    Thymesia | Boss Fight | Urd

    Trophy Hunter's Review Of The Callisto Protocol

    Trophy Hunter's Review Of The Callisto Protocol

    Starship Troopers: Extermination Gameplay Demo

    Starship Troopers: Extermination Gameplay Demo

    Both Stellar Blade and Dune: Awakening shot into Steam’s top 100 with new concurrent player peaks yesterday

    Both Stellar Blade and Dune: Awakening shot into Steam’s top 100 with new concurrent player peaks yesterday

    Diablo 4 Early Impressions – Closed BETA Review from a casual D3 player

    Diablo 4 Early Impressions – Closed BETA Review from a casual D3 player

    A Sonic Frontiers review, an early LATE review.

    A Sonic Frontiers review, an early LATE review.

    ASRock B860 Steel Legend Wi-Fi review

    ASRock B860 Steel Legend Wi-Fi review

  • Tesla
    Tesla gives update on Tesla Semi factory, says on track for volume production in 2026

    Tesla gears up to start selling Tesla Semi electric truck in Europe

    Center Console Organizer Tesla Cybertruck Center Console Cover Cup Holder, Console…

    Center Console Organizer Tesla Cybertruck Center Console Cover Cup Holder, Console…

    Bloomberg just released the most embarrassing report about Tesla, Waymo, and self-driving

    BYD overtakes Tesla as China’s EV giants dominate global sales

    BYD overtakes Tesla as China’s EV giants dominate global sales

    Oh-Shiz Safety Assistance Handles for Tesla Cybertruck (2pcs) Quick-Reach Cabin Grab…

    Oh-Shiz Safety Assistance Handles for Tesla Cybertruck (2pcs) Quick-Reach Cabin Grab…

    Tow Hook Covers for Tesla Cybertruck 2023 2024 2025,Customized Tow Hitch Covers…

    Tow Hook Covers for Tesla Cybertruck 2023 2024 2025,Customized Tow Hitch Covers…

    Car Windshield Cleaner, Windshield Cleaning Tool Kit with Detachable Handle Spray…

    Car Windshield Cleaner, Windshield Cleaning Tool Kit with Detachable Handle Spray…

    Winch Stopper,Winch Accessories,Car Accessories Winch Cable Stopper,Rubber Winch…

    Winch Stopper,Winch Accessories,Car Accessories Winch Cable Stopper,Rubber Winch…

    LUCKEASY 2PCS Storage Box Compatible with Tesla Cybertruck 2024 2023 Center Console…

    LUCKEASY 2PCS Storage Box Compatible with Tesla Cybertruck 2024 2023 Center Console…

  • UFO
    Pop Culture Conspiracy Theories! Taylor Swift, SHEIN, and Deadpool & Wolverine!!

    Pop Culture Conspiracy Theories! Taylor Swift, SHEIN, and Deadpool & Wolverine!!

    What is Unidentified Flying Object?

    What is Unidentified Flying Object?

    The Visitor

    The Visitor

    Earth from space Nasa

    Earth from space Nasa

    E.T. – The Extra-Terrestrial (Full Screen Edition) by Henry Thomas

    E.T. – The Extra-Terrestrial (Full Screen Edition) by Henry Thomas

    Found a B2 Bomber #B2Spirit #Bomber #USA #Milatary #GoogleMaps #Plane #Stealth #B2Bomber #Army

    Found a B2 Bomber #B2Spirit #Bomber #USA #Milatary #GoogleMaps #Plane #Stealth #B2Bomber #Army

    Everything We Know About Ancient Extraterrestrials: Decoding the Ancient Astronaut Theory, Megalithic Engineering Marvels, and Extraterrestrial Contact … the Space Age (Cosmic Conspiracy Archives)

    Everything We Know About Ancient Extraterrestrials: Decoding the Ancient Astronaut Theory, Megalithic Engineering Marvels, and Extraterrestrial Contact … the Space Age (Cosmic Conspiracy Archives)

    How Joe Biden Crashed his Bike #shorts

    How Joe Biden Crashed his Bike #shorts

    F205 Drone with 2.4″ Screen, Brushless Motor FPV Drone with Camera for Adult, Auto-Hover, Gesture Control, 8GB SD Card with Card Reader, One-Key Start for Beginner

    F205 Drone with 2.4″ Screen, Brushless Motor FPV Drone with Camera for Adult, Auto-Hover, Gesture Control, 8GB SD Card with Card Reader, One-Key Start for Beginner

No Result
View All Result
Techcratic
No Result
View All Result
Home Hacker News

triyanox/lla: A modern alternative to ls

Hacker News by Hacker News
November 24, 2024
in Hacker News
Reading Time: 12 mins read
121 9
A A
0

2024-11-24 12:23:00
github.com

lla is a high-performance, extensible alternative to the traditional ls command, written in Rust. It offers enhanced functionality, customizable output, and a plugin system for extended capabilities.

lla in action

  • Efficient file listing: Optimized for speed, even in large directories
  • Multiple view modes:
    • Default view
    • Long format (-l)
    • Tree view (-t)
    • Recursive listing (-R)
  • Advanced sorting:
    • Alphabetical (default)
    • File size (-s size)
    • Modification date (-s date)
  • Flexible filtering: Filter by filename or extension (-f, --filter)
  • Customizable recursion: Set maximum depth for subdirectory traversal
  • Extensible plugin system: Develop and integrate custom functionality
  • Color-coded output: Easily distinguish file types and permissions
  • Git integration: Show git status for files (with plugin)
  • File categorization: Categorize files by type (with plugin)
  • Keyword search: Search file contents for specified keywords (with plugin)
  • File hash display: Show file hashes (with plugin)
  • Code complexity analysis: Analyze code complexity (with plugin)
  • File size visualization: Visualize file sizes (with plugin)
  • Duplicate file detection: Identify duplicate files (with plugin)
  • Directory metadata: Display detailed directory information (with plugin)
  • File metadata: Show extended file metadata (with plugin)
  • Last git commit info: Display information about the last git commit (with plugin)

and more!

(we see you, netbsd. we appreciate you.)

First you need to initialize the configuration file:

lla init
lla config # to view the config file

Then you can start using lla:

lla [OPTIONS] [DIRECTORY]
  • -l, --long: Use long listing format
  • -R, --recursive: List subdirectories recursively
  • -t, --tree: Display files in a tree structure
  • -s, --sort : Sort by “name”, “size”, or “date”
  • -f, --filter : Filter files by name or extension
  • -d, --depth : Set maximum recursion depth
  • --enable-plugin : Enable a specific plugin
  • --disable-plugin : Disable a specific plugin
  • --plugins-dir : Specify custom plugins directory
  • --plugin-arg : Pass arguments to enabled plugins

lla supports plugin-specific actions, allowing you to interact with plugins directly:

lla plugin --name  --action  [--args   ...]
  • --name : Specify the name of the plugin
  • --action : Specify the action to perform
  • --args ...: Provide arguments for the action (optional)
  • lla install: Install plugins
    • --git : Install from a Git repository
    • --dir : Install from a local directory
  • lla list-plugins: Display all available plugins
  • lla init: Initialize configuration file
  • lla config: View configuration file

lla uses a TOML configuration file located at ~/.config/lla/config.toml. Initialize with default settings:

lla init
lla config # to view the config file

Example configuration:

default_sort = "name"
default_format = "default"
enabled_plugins = ["git_status", "file_hash"]
plugins_dir = "/home/user/.config/lla/plugins"
default_depth = 3

You can install plugins from a local directory or from a Git repository.

You can find official plugins here.

lla install --git github_url>

Develop custom plugins to extend lla‘s functionality. Plugins are dynamic libraries that implement the Plugin trait from the lla_plugin_interface crate.

  1. Create a new Rust library:

    cargo new --lib my_lla_plugin
  2. Add dependencies to Cargo.toml:

    [dependencies]
    lla_plugin_interface = "*"
    
    [lib]
    crate-type = ["cdylib"]
  3. Implement the Plugin trait:

use lla_plugin_interface::{Plugin, DecoratedEntry, EntryDecorator, CliArg};

pub struct MyPlugin;

impl Plugin for MyPlugin {
    fn name(&self) -> &'static str {
        "my_plugin"
    }

    fn version(&self) -> &'static str {
        env!("CARGO_PKG_VERSION")
    }

    fn description(&self) -> &'static str {
        env!("CARGO_PKG_DESCRIPTION")
    }

    fn cli_args(&self) -> VecCliArg> {
        vec![
            CliArg {
                name: "my-option".to_string(),
                short: Some('m'),
                long: Some("my-option".to_string()),
                help: "Description of my option".to_string(),
                takes_value: true,
            }
        ]
    }

    fn handle_cli_args(&self, args: &[String]) {
        // Handle CLI arguments passed to the plugin
    }

    fn perform_action(&self, action: &str, args: &[String]) -> Result(), String> {
        match action {
            "my-action" => {
                // Perform custom action
                Ok(())
            }
            _ => Err(format!("Unknown action: {}", action)),
        }
    }
}

impl EntryDecorator for MyPlugin {
    fn decorate(&self, entry: &mut DecoratedEntry) {
        // Add custom fields or modify entry
    }

    fn format_field(&self, entry: &DecoratedEntry, format: &str) -> OptionString> {
        // Return formatted string for display
    }

    fn supported_formats(&self) -> Vec&'static str> {
        vec!["default", "long", "tree"]
    }
}

lla_plugin_interface::declare_plugin!(MyPlugin);
  1. Build your plugin:

  2. Install the plugin:

    lla install --dir /path/to/my_lla_plugin

    or

    lla install --git git_repo>

The lla_plugin_interface crate provides the following key components:

  • Plugin trait: Core interface for plugin functionality
  • EntryDecorator trait: Methods for decorating and formatting file entries
  • DecoratedEntry struct: Represents a file entry with metadata and custom fields
  • CliArg struct: Defines command-line arguments for the plugin
# Long format, sorted by size, showing only .rs files
lla -ls size -f .rs

# Enable git status plugin
lla --enable-plugin git_status

# Enable multiple plugins
lla --enable-plugin git_status categorizer

# Disable git status plugin
lla --disable-plugin git_status

# Disable multiple plugins
lla --disable-plugin git_status categorizer

# Set keywords for the keyword search plugin using plugin action
lla plugin --name keyword_search --action set-keywords --args "TODO" "FIXME" "BUG"

# Show current keywords for the keyword search plugin
lla plugin --name keyword_search --action show-keywords

# Use the keyword search plugin with the set keywords
lla --enable-plugin keyword_search

Contributions are welcome! Please feel free to submit pull requests, report bugs, and suggest features.

  1. Fork the repository
  2. Create your feature branch (git checkout -b feature/new-feature)
  3. Commit your changes (git commit -m 'Add some new-feature')
  4. Push to the branch (git push origin feature/new-feature)
  5. Open a Pull Request

This project is licensed under the MIT License – see the LICENSE file for details.


Keep your files stored safely and securely with the SanDisk 2TB Extreme Portable SSD. With over 69,505 ratings and an impressive 4.6 out of 5 stars, this product has been purchased over 8K+ times in the past month. At only $129.99, this Amazon’s Choice product is a must-have for secure file storage.

Help keep private content private with the included password protection featuring 256-bit AES hardware encryption. Order now for just $129.99 on Amazon!


Source Link

Support Techcratic

If you find value in Techcratic’s insights and articles, consider supporting us with Bitcoin. Your support helps me, as a solo operator, continue delivering high-quality content while managing all the technical aspects, from server maintenance to blog writing, future updates, and improvements. Support Innovation! Thank you.

Bitcoin Address:

bc1qlszw7elx2qahjwvaryh0tkgg8y68enw30gpvge

Please verify this address before sending funds.

Bitcoin QR Code

Simply scan the QR code below to support Techcratic.

Bitcoin QR code for donations

Please read the Privacy and Security Disclaimer on how Techcratic handles your support.

Disclaimer: As an Amazon Associate, Techcratic may earn from qualifying purchases.

Tags: Hacker News
Share162ShareTweet101
Previous Post

Amazon Cuts The Price of The Sonos Beam Gen 2, Hitting an All-Time Record Low For Black Friday

Next Post

Happening Now: Experts Testify “Exposing The Truth” During Senate Hearing On UFOs

Hacker News

Hacker News

Stay updated with Hacker News, where technology meets entrepreneurial spirit. Get the latest on tech trends, startup news, and discussions from the tech community. Read the latest updates here at Techcratic.

Related Posts

The Drawbridges Go Up | Drew Breunig
Hacker News

The Drawbridges Go Up | Drew Breunig

June 17, 2025
1.3k
OpenTelemetry for Go: measuring the overhead
Hacker News

OpenTelemetry for Go: measuring the overhead

June 16, 2025
1.3k
Getting free internet on a cruise, saving $170
Hacker News

Getting free internet on a cruise, saving $170

June 16, 2025
1.3k
ccbikai/ssh-ai-chat: Chat with AI over SSH.
Hacker News

ccbikai/ssh-ai-chat: Chat with AI over SSH.

June 16, 2025
1.3k
rorosen/zeekstd: Rust implementation of the Zstandard Seekable Format
Hacker News

rorosen/zeekstd: Rust implementation of the Zstandard Seekable Format

June 16, 2025
1.3k
Solving LinkedIn Queens with APL
Hacker News

Solving LinkedIn Queens with APL

June 16, 2025
1.3k
KAIST NEWS CENTER
Hacker News

KAIST NEWS CENTER

June 15, 2025
1.3k
How fast can the RPython GC allocate?
Hacker News

How fast can the RPython GC allocate?

June 15, 2025
1.3k
Load More
Next Post
Happening Now: Experts Testify “Exposing The Truth” During Senate Hearing On UFOs

Happening Now: Experts Testify "Exposing The Truth" During Senate Hearing On UFOs

Your Tech Resources

  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Forbes
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo
  • Google News
  • Hacker News
  • Harvard Tech
  • I Like Cats ™
  • I Like Dogs ™
  • LifeHacker
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • PC World
  • Photofocus
  • Physics
  • Random Tech
  • Retro Rewind ™
  • Robot Report
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Art
  • Tech Careers
  • Tech Deals
  • Techcratic ™
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Wired
  • ZDNet

Tech News

  • 30 Second Tech ™
  • AI
  • Apple Insider
  • Ars Technica
  • CNET
  • ComputerWorld
  • Crypto News
  • Cybersecurity
  • Endgadget
  • ExtremeTech
  • Fossbytes
  • Gaming
  • GeekWire
  • Gizmodo

Tech News

  • Harvard Tech
  • MacRumors
  • Macworld
  • Mashable
  • Microsoft
  • MIT Tech
  • Physics
  • PC World
  • Random Tech
  • Retro Rewind ™
  • SiliconANGLE
  • SlashGear
  • Smartphone
  • StackSocial
  • Tech Careers

Tech News​

  • Tech Art
  • TechCrunch
  • Techdirt
  • TechRepublic
  • Techs Got To Eat ™
  • TechSpot
  • Tesla
  • The Verge
  • TNW
  • Trusted Reviews
  • UFO
  • VentureBeat
  • Visual Capitalist
  • Wired
  • ZDNet

Site Links

  • About Techcratic
  • Affiliate Disclaimer
  • Affiliate Link Policy
  • Contact Techcratic
  • Dealors Discount Store
  • Privacy and Security Disclaimer
  • Privacy Policy
  • RSS Feed
  • Site Map
  • Support Techcratic
  • Techcratic
  • Tech Deals
  • TOS
  • 𝕏
Click For A Secret Deal

Techcratic – Your All In One Tech Hub © 2020 – 2025
All Rights Reserved
∞

No Result
View All Result
  • 30 Second Tech ™
  • AI
  • App Zone ™
  • Apple
  • Ars Technica
  • CNET
  • Crypto News
  • Cybersecurity
  • Endgadget
  • Gaming
  • I Like Cats ™
  • I Like Dogs ™
  • MacRumors
  • Macworld
  • Tech Deals
  • Techcratic ™
  • Techs Got To Eat ™
  • Tesla
  • UFO
  • Wired