Metadata-Version: 2.4
Name: cli-ide
Version: 0.1.0
Summary: Terminal-based IDE with file explorer, code editor, and terminal
Project-URL: Homepage, https://cli-ide.vercel.app
Project-URL: Repository, https://github.com/wojacklabs/cli-ide
Project-URL: Issues, https://github.com/wojacklabs/cli-ide/issues
Author-email: wojacklabs <wojacklabs@users.noreply.github.com>
License: MIT License
        
        Copyright (c) 2024 cli-ide 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: editor,ide,terminal,textual,tui
Classifier: Development Status :: 3 - Alpha
Classifier: Environment :: Console
Classifier: Intended Audience :: Developers
Classifier: License :: OSI Approved :: MIT License
Classifier: Operating System :: MacOS
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Topic :: Text Editors :: Integrated Development Environments (IDE)
Classifier: Typing :: Typed
Requires-Python: >=3.11
Requires-Dist: pyte>=0.8.0
Requires-Dist: textual>=0.89.0
Requires-Dist: tree-sitter-languages>=1.10.0
Requires-Dist: tree-sitter>=0.23.0
Provides-Extra: dev
Requires-Dist: pytest-asyncio>=0.23.0; extra == 'dev'
Requires-Dist: pytest-cov>=4.1.0; extra == 'dev'
Requires-Dist: pytest>=8.0.0; extra == 'dev'
Description-Content-Type: text/markdown

# CLI-IDE

Terminal-based IDE built with [Textual](https://textual.textualize.io/). Features a file explorer, tabbed code editor with syntax highlighting, and an integrated terminal.

## Features

- File explorer with directory tree navigation
- Tabbed code editor with syntax highlighting
- Split view (horizontal/vertical)
- Integrated terminal (PTY-based)
- Project-wide search (ripgrep or grep)
- Multi-select editing (Ctrl+I)
- Configurable via TOML files

## Requirements

- Python 3.11+
- Dependencies: `textual`, `pyte`, `rich`
- Optional: `ripgrep` for faster project search

## Installation

```bash
cd cli-ide
pip install -e .
```

Or with virtual environment:

```bash
cd cli-ide
python -m venv venv
source venv/bin/activate
pip install -e .
```

## Usage

```bash
# Open current directory
cli-ide

# Open specific directory
cli-ide /path/to/project

# Or run as module
python -m cli_ide.app /path/to/project
```

## Keyboard Shortcuts

### File Operations
| Key | Action |
|-----|--------|
| `Ctrl+S` | Save file |
| `Ctrl+Q` | Quit |

### Navigation
| Key | Action |
|-----|--------|
| `Ctrl+E` | Focus editor |
| `Ctrl+T` | Focus terminal |
| `Ctrl+B` | Toggle sidebar |
| `Alt+1-9` | Go to tab 1-9 |

### Tab Operations
| Key | Action |
|-----|--------|
| `Ctrl+W` | Close tab |

### Split View
| Key | Action |
|-----|--------|
| `Ctrl+Shift+Left` | Move file to left pane |
| `Ctrl+Shift+Right` | Move file to right pane |
| `Ctrl+Shift+Up` | Move file to top pane |
| `Ctrl+Shift+Down` | Move file to bottom pane |

### Search
| Key | Action |
|-----|--------|
| `Ctrl+F` | Find in file |
| `Ctrl+G` | Find in project |

### Editing
| Key | Action |
|-----|--------|
| `Ctrl+D` | Delete line |
| `Ctrl+I` | Select next match (multi-select) |
| `Enter` | Apply multi-select changes |
| `Escape` | Cancel multi-select |

## Configuration

Configuration files are loaded in the following order (later overrides earlier):

1. User config: `~/.config/cli-ide/config.toml`
2. Project config: `.cli-ide.toml` (in project root)

### Example Configuration

```toml
[editor]
theme = "light-ide"
tab_size = 4
show_line_numbers = true

[terminal]
shell = ""  # Empty uses $SHELL environment variable
height = 14

[sidebar]
width = 30
visible = true
```

## Project Structure

```
cli_ide/
├── __init__.py           # Package entry point
├── app.py                # Main CliIdeApp class
├── utils.py              # Utility functions
├── config/
│   ├── __init__.py
│   ├── defaults.py       # Language mappings, defaults
│   └── settings.py       # Config class (TOML loading)
├── models/
│   ├── __init__.py
│   └── state.py          # EditorState, OpenFile, etc.
├── themes/
│   ├── __init__.py
│   └── light.py          # Light theme definition
└── widgets/
    ├── __init__.py
    ├── dialogs.py        # SaveConfirmDialog
    ├── editor.py         # EditorPaneWidget, SplitContainer
    ├── file_tree.py      # FileTree
    ├── search.py         # SearchBar, ProjectSearchDialog
    └── terminal.py       # Terminal, TerminalInput
```

## License

MIT
