Skip to content

xted 0.19.0

Choose a tag to compare

@lejubila lejubila released this 02 Dec 21:18
· 10 commits to main since this release

Keyboard macros, a shortcut editor, a theme editor, user snippets, crash recovery and legacy encodings.

Install

Linux (x86_64, aarch64, armv7, armv6: the installer picks the one of the machine):

curl -fsSL https://github.com/lejubila/xted/releases/latest/download/install.sh | sh

Windows, in PowerShell (x86_64 or ARM64):

irm https://github.com/lejubila/xted/releases/latest/download/install.ps1 | iex

New

  • Keyboard macros (Macro menu and palette):
    • F9 starts recording ([REC] in the status bar) and stops it; Shift+F9 plays the macro back. A whole playback is undone with one Ctrl+Z.
    • Everything typed is recorded, also inside prompts and questions, and so are pastes; the mouse is not.
    • «Play macro several times…» asks how many times; 0 repeats it while it moves the cursor to a later line, down to the end of the file.
    • «Play macro on each selected line» runs it from the start of every selected line, even when it adds or removes lines.
    • «Save macro…» keeps it in ~/.config/xted/macros/NAME.macro, a text file you can edit by hand; «Macros…» lists them (Enter plays, Del deletes).
  • Shortcut editor («Keyboard shortcuts…», Options menu and palette):
    • The list of the commands with their keys, marking the changed ones; search by name or by pressing the key.
    • Enter captures a new key, Ins adds one, Del removes one, Ctrl+R restores the defaults; a key taken by another command asks first.
    • «Test a key…» shows how a key arrives and what it does.
    • Each change is written at once in [keys] of the user config, only the differences from the defaults.
  • Start and end of the line (Home, End) are now commands, so they can take other keys. With several cursors they, and «Select to line start/end», act on every cursor.
  • Theme editor («Edit theme», View menu and palette): a panel with the colors of the theme in use and two sample pages (PHP and Markdown).
    • Arrows adjust hue, saturation or lightness, Enter takes a #rrggbb color, Del restores an entry, Ctrl+Z undoes.
    • Every change shows at once on the rest of the screen; Ctrl+S saves the theme in ~/.config/xted/themes/.
  • User and project snippets:
    • .snippets files (snippet … endsnippet) and VS Code snippets (.json, *.code-snippets) in ~/.config/xted/snippets/ and in the project (.xted-snippets/, .vscode/). The project wins over the user, the user over the built-in ones; they are read again when they change.
    • Tab stops, mirrors, choices (${1|a,b,c|} opens a list of the items) and the VS Code variables.
    • Edit menu: «Insert snippet», «Snippet from selection», «Edit snippets», «Copy a built-in snippet».
    • A new .snippets file starts with a reminder of the format and of the variables. While editing, xted suggests keywords, variables and the words of the language, and reports errors on save.
  • Crash recovery for named files: a copy of the unsaved changes of each file in $XDG_STATE_HOME/xted/recover/, written at most every 2 s and removed on save and on exit.
    • Reopening the file offers to recover it (Ctrl+Z goes back to the file on disk); «Recover files» lists the copies left (Del discards).
    • A file already open in another xted is reported.
    • recover = off turns it off (also from the Options menu).
  • Encodings: a file that is not valid UTF-8 opens as Windows-1252 and is saved back byte for byte.
    • «Reopen with encoding» and «Save with encoding» (File menu, or a click on the encoding in the status bar): UTF-8, UTF-8 with BOM, Windows-1252, ISO-8859-1, UTF-16.
    • charset of .editorconfig is honored.
    • Saving a character the encoding does not have asks to save as UTF-8.
  • The size limit of the binary is now 1 MB.

Files

  • xted-0.19.0-linux-<arch> for x86_64, aarch64, armv7 and armv6: the Linux binary alone (English interface).
  • xted-0.19.0-linux-<arch>.tar.gz: the same binary with the xt link, the Italian catalog, the manual pages, the icon and the desktop entries.
  • xted-0.19.0-windows-x86_64.zip, xted-0.19.0-windows-arm64.zip: xted.exe, xtedw.exe, the catalogs, README and LICENSE.
  • install.sh, install.ps1: the installers above.

Check the downloads with sha256sum -c SHA256SUMS (on Windows: Get-FileHash).

  • Linux: static with musl. x86_64 is built with musl-gcc; the ARM binaries with zig cc.
  • Windows: MinGW-w64 (llvm-mingw), Windows 10 1809 or later.

To build from source: make, make ARCH=... or make WIN=1; see the README.

MIT license — Copyright (C) 2026 David Bigagli.