Metadata-Version: 2.4
Name: ashyterm
Version: 1.9.0
Author: Leonardo Berbert, Tales A. Mendonça, Bruno Gonçalves
Author-email: Leonardo Berbert <leo4berbert@gmail.com>, Tales A. Mendonça <talesam@gmail.com>, Bruno Gonçalves <bigbruno@gmail.com>
License-Expression: MIT
License-File: LICENSE
Classifier: Development Status :: 5 - Production/Stable
Classifier: Operating System :: POSIX :: Linux
Classifier: Programming Language :: Python :: 3
Classifier: Topic :: Terminals :: Terminal Emulators/X Terminals
Requires-Dist: pygobject
Requires-Dist: pycairo
Requires-Dist: setproctitle
Requires-Dist: requests
Requires-Dist: psutil
Requires-Dist: regex
Requires-Dist: pygments
Requires-Dist: py7zr
Requires-Dist: regex ; extra == 'all'
Requires-Dist: pygments ; extra == 'all'
Requires-Dist: py7zr ; extra == 'all'
Requires-Dist: py7zr ; extra == 'backup'
Requires-Dist: regex ; extra == 'performance'
Requires-Dist: pygments ; extra == 'syntax-highlighting'
Requires-Dist: pytest ; extra == 'test'
Requires-Dist: hypothesis ; extra == 'test'
Requires-Dist: py7zr ; extra == 'test'
Requires-Python: >=3.8
Project-URL: Homepage, https://github.com/big-comm/ashyterm
Project-URL: Issues, https://github.com/big-comm/ashyterm/issues
Provides-Extra: all
Provides-Extra: backup
Provides-Extra: performance
Provides-Extra: syntax-highlighting
Provides-Extra: test
Description-Content-Type: text/markdown

# Ashy Terminal

<p align="center">
  <a href="https://github.com/big-comm/ashyterm/releases"><img src="https://img.shields.io/badge/Version-1.9.0-blue.svg" alt="Version"/></a>
  <a href="https://communitybig.org">
  <img src="https://img.shields.io/badge/BigCommunity-Platform-blue" alt="BigCommunity Platform">
</a>
  <a href="https://github.com/big-comm/ashyterm/blob/main/LICENSE"><img src="https://img.shields.io/badge/License-MIT-green.svg" alt="License"/></a>
</p>

**Ashy Terminal** is a modern, intuitive, and innovative terminal built with GTK4 and Adwaita. While it offers advanced features appreciated by developers and system administrators, it also stands out for making the command-line environment more accessible, helping those who are just beginning to learn how to use the terminal. Its simplified session management, built-in file manager, automatic color highlighting for improved readability, and a variety of other features bring convenience to users of all skill levels on Linux distributions such as BigLinux.

## Summary

- [Key Features](#key-features)
- [Dependencies](#dependencies)
- [Installation](#installation)
- [Usage](#usage)
- [Configuration](#configuration)
- [Contributing](#contributing)
- [License](#license)

## Screenshots

<img width="1526" height="1151" alt="AshyTerm" src="https://github.com/user-attachments/assets/ab92d508-b559-46bb-895c-dad64ea6cfbf" />

<img width="1386" height="944" alt="image" src="https://github.com/user-attachments/assets/ae48ce7e-a597-44cd-ba70-4e9c28987730" />

<img width="1235" height="669" alt="image" src="https://github.com/user-attachments/assets/2837c12f-cf94-4191-bb71-b6d5db3b9ea7" />

<img width="1231" height="660" alt="image" src="https://github.com/user-attachments/assets/5b80da29-81ce-4551-8386-8f7d6cf5c1ac" />



## Key Features

### 🤖 AI Assistant Integration
<img width="1386" height="944" alt="AshyTerm AI Assistant" src="https://github.com/user-attachments/assets/22d329c8-d20f-4714-b30e-e83792ac6154" />

Ashy Terminal creates a bridge between your shell and Large Language Models (LLMs), offering an **optional** and fully **non-intrusive** AI experience. The assistant only processes the content that **you explicitly select and choose to send**, ensuring full control over your privacy.
* **Multi-Provider Support**: Native integration with **Groq**, **Google Gemini**, **OpenRouter**, and **Local LLMs** (Ollama/LM Studio).
* **Context Aware**: The AI understands your OS and distribution context to provide accurate and relevant commands.
* **Chat Panel**: A dedicated side panel for persistent conversations, command suggestions, and "Click-to-Run" code snippets.
* **Smart Suggestions**: Ask how to perform tasks and receive ready-to-execute commands directly in the UI.


### 🎨 Smart Context<img width="1386" height="944" alt="AshyTerm colors1" src="https://github.com/user-attachments/assets/1674352a-b1ad-4668-b514-21c41306c58e" />
**Aware Highlighting**
<img width="1386" height="944" alt="AshyTerm colors1" src="https://github.com/user-attachments/assets/ff8fb678-0aac-405a-a2c2-0835511a59db" />

Go beyond basic color schemes. Ashy Terminal applies **dynamic, real-time highlighting** based on both the *content* and the *command being executed*—**without requiring any configuration in Bash or whatever shell you are using**. All color processing happens directly inside Ashy Terminal’s interface, which is especially helpful when working on servers, containers, or restricted environments where you cannot modify files like `.bashrc` or `.zshrc`.

* **Command-Specific Rules**: Different highlighting rules are automatically applied when running tools such as `docker`, `ping`, `lspci`, `ip`, and more.
* **Live Input Highlighting**: Shell commands are colorized in real time as you type (powered by Pygments).
* **Output Colorization**: Automatically highlights IP addresses, UUIDs, URLs, error messages, JSON structures, and other patterns in logs.
* **File Viewer**: Enhances `cat` output with full syntax highlighting for code files.
<img width="1386" height="944" alt="AshyTerm have color2" src="https://github.com/user-attachments/assets/10cc985e-a31f-4d45-bd64-57dfe68a91ef" />

In addition, Ashy Terminal offers a **complete customization interface**, allowing you to adjust:

<img width="1386" height="944" alt="AshyTerm have color3" src="https://github.com/user-attachments/assets/c42461ac-c8ae-41b7-883f-534ea9b333b8" />

* **Text and background colors**
* **Bold**, *italic*, ***underline***, ~~strikethrough~~
* **Blinking mode** for drawing attention to critical information

<img width="1386" height="944" alt="AshyTerm have color4" src="https://github.com/user-attachments/assets/091e9c39-0958-49ca-8209-6c4c264a0c11" />

This gives you a clearer, more readable view of command output—especially in environments where traditional shell customization is not possible.


### 📂 Advanced File Manager & Remote Editing
<img width="823" height="1162" alt="image" src="https://github.com/user-attachments/assets/a112042a-ebca-41cd-a0bd-e4454a3eacf5" />

-   **Integrated Side Panel**: Browse local and remote file systems without leaving the terminal.
-   **Remote Editing**: Click to edit remote files (SSH/SFTP) in your favorite local editor. Ashy watches the file and automatically uploads changes on save.
-   **Drag & Drop Transfer**: Upload files to remote servers simply by dragging them into the terminal window over (SFTP/Rsync)
-   **Transfer Manager**: Track uploads and downloads with a detailed progress manager and history.
<img width="1386" height="944" alt="image" src="https://github.com/user-attachments/assets/37d7e497-999d-4740-b9bb-cfec9cba17fc" />


### ⚡ Productivity Tools
<img width="458" height="422" alt="image" src="https://github.com/user-attachments/assets/eb16295b-00ea-4ab7-b6d4-a5fef3d40f6a" />

-   **Input Broadcasting**: Type commands in one terminal and execute them simultaneously across multiple selected tabs/panes.
-   **Quick Prompts**: One-click AI prompts for common tasks (e.g., "Explain this error", "Optimize this command").


### 🖥️ Core Terminal Functionality
-   **Session Management**: Save, organize (with folders), and launch Local, SSH, and SFTP sessions.
-   **Flexible Layouts**: Split panes horizontally and vertically; save and restore complex window layouts.
-   **Tab Groups**: Chrome-style tab grouping with color-coded chips, drag-to-reorder, collapse/expand, and auto-join. Group names follow alphabetical sequence (A, B, ..., Z, 1A, 1B, ...).
-   **Live Directory Tracking**: Tab titles update in real-time to show the current working directory via `/proc/<pid>/cwd` polling, with full path tooltip on hover.
-   **Deep Customization**: Visual theme editor, font sizing, transparency (window and headerbar), and extensive keyboard shortcuts.


## Dependencies
To build and run Ashy Terminal, you will need:

-   **Python 3.9+**
-   **GTK4** and **Adwaita 1.0+** (`libadwaita`)
-   **VTE for GTK4** (`vte4` >= 0.76 recommended)
-   **Python Libraries**:
    -   `PyGObject` (GTK bindings)
    -   `requests` (For AI API connectivity)
    -   `pygments` (For syntax highlighting)
    -   `psutil` (For advanced process tracking)
    -   `regex` (For high-performance highlighting patterns)
    -   `py7zr` (For 7z backup/restore archives)
-   **System Libraries**:
    -   `libsecret` (Secure password storage via GNOME Keyring / KWallet)
    -   `sshpass` (Required only for SSH password authentication)
    -   `rsync` (Faster SFTP-like transfers; falls back to sftp when absent)

On an Arch/Manjaro-based system:
```bash
sudo pacman -S python python-gobject vte4 python-cryptography python-psutil python-requests python-pygments
````

## Installation

#### Pre-installed on BigLinux/BigCommunity

Ashy Terminal comes **pre-installed as the default terminal emulator** on [BigLinux](https://www.biglinux.com.br/) and [BigCommunity](https://communitybig.org/) distributions. No installation required!

---

> Note: You can build different versions from the source. They have minor changes to improve performance and usability.


| Package | Extra Dependencies | Description |
|---------|--------|-------------|
| `ashyterm` | none | Base terminal emulator |
| `ashyterm-performance` | `regex` | Faster regex matching |
| `ashyterm-highlighting` | `Pygments` | Syntax highlighting support |
| `ashyterm-backup` | `py7zr` | 7z backup/restore support |
| `ashyterm-all` | all of the above | All optional dependencies |

---

#### From Package (Recommended)

If a package is available for your distribution:

```bash
sudo pacman -U ashyterm-*-x86_64.pkg.tar.zst
```

#### From Source

1.  Clone the repository:

    ```bash
    git clone https://github.com/big-comm/ashyterm.git
    cd ashyterm
    ```

2.  Run the application directly:

    ```bash
    # to just run locally
    export PYTHONPATH="$PWD/src:$PYTHONPATH"
    python -m ashyterm

    # to install locally
    pip install . --user && ashyterm # make sure the pip installed globally or use "python -m pip" instead of just "pip"
    ```

#### From Source With Nix (optional)

```bash
# run directly from the repository (no clone needed)
nix run github:big-comm/ashyterm
# OR you can append the build version by adding the target 
nix run github:big-comm/ashyterm#ashyterm-all # you can replace 'ashyterm-all' by 'ashyterm-performance' or 'ashyterm-highlighting' or 'ashyterm-backup'

# run locally from a cloned repository
nix run .#ashyterm # you can replace 'ashyterm' by 'ashyterm-all' or 'ashyterm-performance' or 'ashyterm-highlighting' or 'ashyterm-backup'

# enter a development shell
nix develop
python -m ashyterm
```

#### Build From Source for Arch/Manjaro

```bash
git clone https://github.com/big-comm/ashyterm.git
cd ashyterm
makepkg -si
```

## Usage

```bash
ashyterm [options] [directory]
```

#### Arguments

| Option | Description |
|--------|-------------|
| `-w, --working-directory DIR` | Set initial working directory |
| `-e, -x, --execute COMMAND` | Execute command on startup (all remaining args are included) |
| `--close-after-execute` | Close the terminal tab after the command finishes |
| `--ssh [USER@]HOST` | Immediately connect to an SSH host |
| `--new-window` | Force opening a new window instead of a tab |

#### Examples

```bash
# Open terminal in a specific directory
ashyterm ~/projects

# Execute a command
ashyterm -e htop

# SSH connection
ashyterm --ssh user@server.example.com

# Execute command and close after completion
ashyterm --close-after-execute -e "ls -la"
```

## Configuration

Configuration files are stored in `~/.config/ashyterm/`:

| File/Directory | Description |
|----------------|-------------|
| `settings.json` | General preferences, appearance, terminal behavior, shortcuts, and AI configuration |
| `sessions.json` | Saved SSH/SFTP connections and session folders |
| `session_state.json` | Window state and session restore data |
| `layouts/` | Saved window layouts (split panes configuration) |
| `logs/` | Application logs (when logging to file is enabled) |
| `backups/` | Manual encrypted backup archives |

**Note**: Syntax highlighting rules are bundled with the application in `data/highlights/` and include rules for 50+ commands (docker, git, systemctl, kubectl, and more).

## Contributing

Contributions are welcome\!

1.  Fork the repository.
2.  Create your feature branch (`git checkout -b feature/amazing-feature`).
3.  Commit your changes.
4.  Push to the branch.
5.  Open a Pull Request.

## License

This project is licensed under the MIT License - see the [LICENSE](https://www.google.com/search?q=LICENSE) file for details.

## Acknowledgments

  - The **BigCommunity** and **BigLinux** teams.
  - Developers of **GNOME**, **GTK**, **VTE**, and **Pygments**.

<!-- end list -->

```
