Metadata-Version: 2.3
Name: file-search-tk
Version: 0.1.2
Summary: A tkinter app to search files based on a pattern
License: MIT
Author: Mateo Velez
Author-email: mateo.velezcobian@gmail.com
Requires-Python: >=3.9
Classifier: License :: OSI Approved :: MIT License
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: Programming Language :: Python :: 3.13
Description-Content-Type: text/markdown

## File Search TK

Simple Tkinter UI that:

- Lists files from a folder returned by an external `fetch_logs` script given a query.
- Shows selected file content.
- Highlights occurrences of the same query within the text.

### Requirements

- Python 3.9+
- A script or executable named `fetch_logs` resolvable in `PATH` that takes a single argument (query) and prints a directory path to stdout.

### Install

If using Poetry:

```bash
poetry install
```

Or via pip:

```bash
pip install -e .
```

### Run

Using the installed console script:

```bash
file-search-tk
```

Or directly:

```bash
python -m file_search_tk.app
```

### Notes

- The UI calls `fetch_logs <query>` in a background thread. The command must return a valid existing directory path on stdout and exit with code 0. Any stderr or non-zero exit code is treated as an error.
- File list shows only regular files at the top level of the returned directory, sorted by filename.
- Text area highlights case-insensitive matches of the query.
