# 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="/files/lj3xiNzKsi74Vv8QB7iQ" 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    |


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://jishnujithu.gitbook.io/textify/tools/minimap.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
