Metadata-Version: 2.4
Name: foldlash
Version: 1.0.0
Summary: Blazing-fast TUI file finder — search your entire system in real time
Project-URL: Homepage, https://github.com/yourusername/foldlash
Project-URL: Issues, https://github.com/yourusername/foldlash/issues
License: MIT License
        
        Copyright (c) 2025 foldlash contributors
        
        Permission is hereby granted, free of charge, to any person obtaining a copy
        of this software and associated documentation files (the "Software"), to deal
        in the Software without restriction, including without limitation the rights
        to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
        copies of the Software, and to permit persons to whom the Software is
        furnished to do so, subject to the following conditions:
        
        The above copyright notice and this permission notice shall be included in all
        copies or substantial portions of the Software.
        
        THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
        IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
        FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
        AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
        LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
        OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
        SOFTWARE.
License-File: LICENSE
Keywords: cli,file,finder,search,terminal,tui
Classifier: Development Status :: 4 - Beta
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: Intended Audience :: End Users/Desktop
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.9
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Utilities
Requires-Python: >=3.9
Requires-Dist: rich>=13.0.0
Requires-Dist: textual>=0.47.0
Requires-Dist: typer>=0.9.0
Requires-Dist: watchdog>=3.0.0
Description-Content-Type: text/markdown

# ⚡ foldlash

> Blazing-fast TUI file finder — search your **entire system** in real time.

```
pip install foldlash
foldlash
```

---

## Features

- 🔍 **System-wide search** — all drives on Windows (`C:\`, `D:\`, …), full `/` on Unix
- ⚡ **Fast BFS indexer** — uses `os.scandir` (2-3× faster than `os.walk`), streams results live
- 🎯 **Relevance sorting** — exact → prefix → substring → path matches, in that order
- 📁 **OneDrive / reparse points** — correctly follows Windows junctions so Documents, Music, Pictures, Downloads are all indexed
- 👁️ **Live index counter** — stats bar shows how many files have been indexed so far
- ⌨️ **Keyboard-first** — type to search, `↑↓` to navigate, `Enter` to open, `q` to quit
- 🖥️ **Cross-platform open** — `os.startfile` on Windows, `open` on macOS, `xdg-open` on Linux
- 👁️ **Watchdog** — picks up newly created files in real time across all drives

## Install

```bash
pip install foldlash
```

Requires Python 3.9+.

## Usage

```bash
foldlash          # launch the TUI
```

Or run as a module:

```bash
python -m foldlash
```

### Key bindings

| Key       | Action                     |
|-----------|----------------------------|
| Type      | Search files & folders     |
| `↑` / `↓` | Navigate results           |
| `Enter`   | Open highlighted item      |
| `q`       | Quit                       |

## How it works

On launch, `foldlash` starts a background BFS scanner using `os.scandir` across every
available drive. Results stream into the cache immediately — you can start searching
before indexing is complete. The stats bar shows the live count.

Matches are ranked:

1. **Exact filename** match
2. Filename **starts with** query
3. Filename **contains** query
4. Full **path contains** query

## Development

```bash
git clone https://github.com/yourusername/foldlash
cd foldlash
pip install -e ".[dev]"
foldlash
```

## Publishing to PyPI

```bash
pip install build twine
python -m build
twine upload dist/*
```

## License

MIT
