Template Master
===============

A small Windows tool for quickly inserting reusable text templates
(replies, greetings, etc.) via a global hotkey. Supports $variables
inside templates, and has a Ukrainian/English interface.

Requirements
------------
- Windows
- Python 3.10+ (from python.org — tick "Add python.exe to PATH" during install)

Setup
-----
1. Open a terminal in this folder.
2. Install dependencies:
       pip install -r requirements.txt
3. Run the app:
       python main.pyw
   (or just double-click main.pyw — it runs without a console window)

First run creates two files next to main.pyw:
- settings.json   — your hotkey (default: Ctrl+F9) and interface language
- templates.json  — your templates (starts with a few examples you can edit)

Usage
-----
- Press the hotkey (default Ctrl+F9) anywhere to open the template picker,
  pick a template (or start typing to search), and it's pasted into
  whatever window you were just in.
- Use the main window to add, edit, or delete templates.
- Templates can contain $variables (e.g. "Hi $name!") — you'll be
  prompted to fill them in before the text is inserted.

----

Template Master
===============

Невеликий інструмент для Windows, який дозволяє швидко вставляти
готові текстові шаблони (відповіді, привітання тощо) через глобальну
гарячу клавішу. Підтримує $змінні всередині шаблонів, інтерфейс
українською та англійською.

Вимоги
------
- Windows
- Python 3.10+ (з python.org — увімкніть "Add python.exe to PATH" під час встановлення)

Встановлення
------------
1. Відкрийте термінал у цій папці.
2. Встановіть залежності:
       pip install -r requirements.txt
3. Запустіть програму:
       python main.pyw
   (або просто двічі клікніть на main.pyw — вікно консолі не з'явиться)

При першому запуску створяться два файли поруч з main.pyw:
- settings.json   — ваша гаряча клавіша (за замовчуванням Ctrl+F9) і мова інтерфейсу
- templates.json  — ваші шаблони (спочатку кілька прикладів, які можна редагувати)

Використання
------------
- Натисніть гарячу клавішу (за замовчуванням Ctrl+F9) будь-де, щоб
  відкрити вибір шаблону, оберіть потрібний (або почніть вводити текст
  для пошуку) — і він вставиться туди, де ви щойно друкували.
- У головному вікні можна додавати, редагувати й видаляти шаблони.
- Шаблони можуть містити $змінні (напр. "Привіт $name!") — перед
  вставкою програма попросить їх заповнити.
