Metadata-Version: 2.4
Name: favman
Version: 0.1.1
Summary: A CLI tool to manage favorite directories and files
Classifier: Programming Language :: Python :: 3
Classifier: Operating System :: OS Independent
Requires-Python: >=3.7
Description-Content-Type: text/markdown
License-File: LICENSE
Dynamic: license-file

# FavMan

A simple CLI tool to manage your favorite directories and files.

## Installation

```bash
pip install favman
```

Or from source:

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

## Commands

- `addfav <alias> [path]`: Add a favorite directory (defaults to current dir).
- `rmfav <alias>`: Remove a favorite directory.
- `listfav`: List all favorite directories and files.
- `goto <alias>`: Print the path of a favorite directory.
- `addfavf <alias> <path>`: Add a favorite file.
- `rmfavf <alias>`: Remove a favorite file.
- `execute <alias> [--interpreter python]`: Run a favorite file.

## Shell Integration (for `goto` to work)

Add this to your `.bashrc` or `.zshrc`:

```bash
goto() {
    target=$(command goto "$1" 2>/dev/null)
    if [ $? -eq 0 ] && [ -d "$target" ]; then
        cd "$target"
    else
        command goto "$@"
    fi
}
```
