News for hackers. Stuff that matters.
Re:Ghostty 1.0 Is Coming by thiht on Wednesday October 23, 2024 @07:00AM (#41923751)
My number 1 issue with iTerm is that it doesn’t have a usable, plain text configuration format. I want to be able to configure my tools in plain text AND in a UI. iTerm forces me to use the UI (or import a config file, but it’s not very practical).

Wezterm apparently uses Lua so it will likely never have a UI. I don’t understand why a config file would ever need programming constructs, give me JSON or YAML, not Lua.

It sounds like Ghostty will scratch my itch.

Re:Ghostty 1.0 Is Coming by xintron on Wednesday October 23, 2024 @10:35AM (#41925444)
A good reason for Lua would be the example at the bottom of this page: https://wezfurlong.org/wezterm/config/launch.html#the-launch...

Custom settings depending on the environment you're in, here setting up PowerShell on windows only. Allowing the same flexibility through JSON/YAML would not be as easy and simple.

Re:Ghostty 1.0 Is Coming by thiht on Wednesday October 23, 2024 @10:45AM (#41925555)
I don't know, IMO it would be better solved by profiles, environment specific settings (eg. settings.json + settings.windows.json), or override keys, eg:

    {
      "font": "xxx",
      "[windows]": { // windows overrides
        "font": xxx
      }
    }
I know using a full fledged programming language is infinitely more flexible, but I'm not sure a config needing infinite flexibility is a sign of good design.

If they want to stick with Lua I think they should allow both: write your config in JSON for the 99% of config that is easy, and allow to modify and return an updated config in Lua. TBH I just downloaded Wezterm a few minutes ago and got bored just wanting to add a Cmd+K shortcut to clear the buffer.