A simple text expansion utility for Windows.
Tylex lets you create short abbreviations (e.g., em) that expand into longer phrases or snippets of text (e.g., [email protected]). It's built with PowerShell and AutoHotkey, making it lightweight, transparent, and easy to customize.
- Fast & Lightweight: No heavy dependencies or background processes. Just simple, efficient scripts.
- Simple UI: Uses a built-in, filterable grid view that's quick and effective.
- Usage-Aware: Automatically sorts your most frequently used expansions to the top.
- Customizable Hotkeys: Easily change the hotkeys by editing the simple
TylexLauncher.ahkscript. - Open & Transparent: The entire codebase is made of readable PowerShell and AutoHotkey scripts.
- Easy to Package: Comes with a powerful build script to compile, install, and even generate
wingetpackages.
You can install Tylex using one of the following methods. For most users, winget is the recommended choice.
This is the easiest way to install Tylex. Open a Command Prompt or PowerShell terminal and run:
winget install RAOEUS.TylexIf you want to modify the scripts or contribute to development, you can build the project directly from the source code. See the Building from Source section below for detailed instructions.
Download the installer here and double click to run it.
Once installed, Tylex runs in the background. Use the following default hotkeys:
-
Win + z: Expand Text- Opens a searchable list of your saved expansions.
- Start typing any part of the abbreviation or the expansion to filter the list.
- Press
Enterto select, and the full text will be typed out instantly.
-
Win + Shift + z: Add New Expansion- Opens a prompt asking for the new abbreviation (the "key").
- Opens a second prompt asking for the full text it should expand to (the "value").
Your expansions are saved in a simple expansions.json file located in %LOCALAPPDATA%\Tylex.
The Build.ps1 script is the all-in-one tool for managing the project. It allows you to set up your environment, compile executables, install the application locally, and even package it for distribution.
Before you can build the project, you need the necessary tools: AutoHotkey and the PowerShell module PS2EXE. The setup target automates this for you.
Open an Administrator PowerShell terminal in the project's root directory and run:
.\Build.ps1 -Target setupThis command will use winget to install AutoHotkey and Install-Module to add PS2EXE, getting your environment ready in one step.
Once your environment is set up, you can use the following targets with the Build.ps1 script.
-
Builds the PowerShell and AutoHotkey scripts into
.exefiles. The compiled executables are placed in abuildfolder..\Build.ps1 -Target build -
Compiles the application and installs it on your system. This copies the files to
C:\Program Files\Tylexand adds a shortcut to your Startup folder so it runs automatically on login. (Requires Administrator).\Build.ps1 -Target install -
Removes the application from your system by deleting the installation directory and the startup shortcut. (Requires Administrator)
.\Build.ps1 -Target uninstall -
Generates the necessary YAML manifest files for submitting the application to the Windows Package Manager repository. This target first builds the project, zips the release files, calculates the SHA256 hash, and then creates the manifest files in a
winget-manifestfolder.This target requires two additional parameters:
-ReleaseUrl: The direct public URL to your.ziprelease package (e.g., from a GitHub Release).-PackageVersion: The version number for the release (e.g., "1.0.1").
Example:
.\Build.ps1 -Target winget -ReleaseUrl "https://github.com/RAOEUS/tylex-windows/releases/download/1.0.0/Tylex-Setup-v1.0.0.exe" -PackageVersion "1.0.0"
This project is distributed under the MIT License. See the LICENSE file for more information.