# Minimap

The **Minimap** feature adds a compact overview of your entire script in the **Text Editor sidebar**, similar to the minimap in **VS Code**. It allows you to quickly scroll, navigate large files, and get a bird’s-eye view of your code structure.

It also supports a **Hover Preview**: when hovering over the minimap, a popup displays the code snippet from that line.

<figure><img src="https://1369578556-files.gitbook.io/~/files/v0/b/gitbook-x-prod.appspot.com/o/spaces%2FDnkuhGf8ejPBS5cgVCH0%2Fuploads%2Fmnb8tICUdPz78OpRi3go%2F20250820-0842-460670140%20(1).gif?alt=media&#x26;token=fc5b4035-c713-4a4a-8525-4ac93f446b54" alt=""><figcaption></figcaption></figure>

***

### **Key Features**

* Displays a scaled-down preview of your script alongside the editor.
* **Hover Preview**: Hover over a section to preview code from that line in a floating box.
* Quickly navigate large files by clicking or dragging inside the minimap.
* Fully customizable appearance (width, colors, line height, etc.).
* Performance options for huge files.

***

### **Usage**

1. In the **Text Editor**, open the **Textify popover**.
2. Enable **Minimap**.
3. Scroll through your file by dragging inside the minimap or clicking on specific areas.
4. Hover over any section to see a **pop-up preview** of that code line.
5. Adjust settings in **Preferences → Add-ons → Textify → Minimap Settings** to customize the look and performance.

***

### **Addon Preferences**

You can customize the **Minimap’s appearance and behaviour** from the **Addon Preferences** panel:

**Appearance Options**

| Setting              | Description                                          | Default                 |
| -------------------- | ---------------------------------------------------- | ----------------------- |
| **Width**            | Controls the width of the minimap panel.             | 120 px                  |
| **Scrollbar Offset** | Adjusts minimap alignment relative to the scrollbar. | 12 px                   |
| **Line Height**      | Vertical scaling of text lines in the minimap.       | 2.0                     |
| **Character Width**  | Horizontal scaling of characters in the minimap.     | 1.0                     |
| **Background Color** | Background color of the minimap.                     | Gray                    |
| **Viewport Color**   | Overlay color showing the current viewport section.  | Gray (semi-transparent) |

**Performance Options**

| Setting                        | Description                                                            | Default |
| ------------------------------ | ---------------------------------------------------------------------- | ------- |
| **Enable Hover Preview**       | Shows code preview on hover inside the minimap.                        | On      |
| **Fit Minimap to View**        | Resizes minimap to fit viewport size automatically.                    | Off     |
| **Syntax Highlight Threshold** | Disables syntax highlighting in minimap for files larger than X lines. | 5000    |
