I started out using Karabiner, but then when Apple added support to natively rebind Escape, it made that an easy choice.
Works great in Sublime. Have this request open for Ghostty:
https://github.com/ghostty-org/ghostty/discussions/10499
On Linux, there's xremap. It lets you remap key chords on a per-app basis. I'm using it to use Apple-style Command shortcuts with Chrome for Linux:
https://github.com/appsforartists/device-config/blob/master/...