The ls module extends the traditional file listing command to provide rapid access to various system resources (CPU, Memory, Processes, PATH) through a unified interface.
When to Activate
- When the user wants to view file info alongside system resource summaries.
- When performing a quick check of PATH variables or process lists within a listing workflow.
- When using an interactive app (
:app) to browse file metadata.
Core Principles & Rules
- Resource Focused: Use prefixed subcommands (starting with
:) to target specific system data. - Interactive UI: Use
:appfor a richer metadata exploration than standard listing.
Patterns & Examples
System Summary
# Quickly view CPU and Memory info using enhanced ls
x ls :cpu
x ls :mem
Environment Check
# List all directories currently in the PATH variable
x ls :path
Metadata Explorer
# Open an interactive viewer for files and directory information
x ls :app
Checklist
- Confirm if the user needs file listing or a system resource summary.
- Verify if an interactive view (
:app) is preferred over static output.