All contributions

alacritty/alacritty

Alacritty

A cross-platform terminal emulator rendered with OpenGL, written in Rust and configured with a TOML file.

Language
Rust
GitHub stars
66,271
Merged changes
1
Project site
alacritty.org

What we changed

The alacritty msg get-config command now returns the keyboard and mouse bindings set by the user, in config file format.

What this work shows

  • Serialisation and deserialisation with serde
  • TOML configuration format
  • IPC replies in a desktop application
  • Unit tests in Rust
What was broken

get-config showed no key bindings

The alacritty msg get-config command returns the config of a running window, but it had no keyboard or mouse bindings at all. Both fields were marked skip_serializing, and KeyBindings did not implement Serialize.

How we fixed it

The reply lists the user's bindings

KeyBindings and MouseBindings keep the raw config entries that parsed successfully and serialise exactly those, without the defaults. The output can be pasted back into the config file, invalid entries are still logged and left out, and new tests check both cases.

#9088

Merged change 1

  1. #9088 Fix bindings missing from get-config IPC reply Merged 26 October 2026

What it taught us

An IPC reply is only useful when it comes out in config file format and can be pasted back. That is why we changed the serialisation in Rust with serde, while invalid entries are still just logged and skipped.

More about this technology: Rust

Other projects we write code for

Describe your project.

A free quote comes back within an hour during working hours.