Skip to content

Releases

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 21 Nov 05:33
3ca4eb3

What's Changed

Other changes

Full Changelog: v0.5.1...v0.5.2

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 10 Nov 07:55
71d6710

What's Changed

Features

Other changes

Full Changelog: v0.5.0...v0.5.1

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 10 Nov 04:32
201b831

This release adds a profile registry, so you can keep your profiles in one directory and start each one by name from any directory. It also adds shell completion, a man page and a check of the tmux version before Glazier changes anything.

Profile registry

The profile registry is one directory that holds profiles, one file for each session. A word after up, down or format is a profile name, and it selects <name>.glaze in the profile registry.

$ glaze up work                # apply ~/.config/glaze/work.glaze from any directory
$ glaze down work              # kill the session of that profile
$ glaze format --validate work # check the profile
$ glaze save work              # write the current session as ~/.config/glaze/work.glaze
$ glaze ls --profiles          # list the profiles in the profile registry
  • Glazier finds the profile registry in this order: $GLAZE_REGISTRY, then $XDG_CONFIG_HOME/glaze when XDG_CONFIG_HOME is absolute, then ~/.config/glaze. The rule is the same on macOS and Linux.
  • Only glaze save <name> creates the profile registry, with mode 0700. It creates the directory after a successful capture and right before the write.
  • A profile name contains only ASCII letters, digits, ., _ and -, with no .glaze suffix and no /. Glazier rejects another word with exit code 2, and the message names the fix. Use --profile-path for a file.
  • A registry profile must set the session name. Without it, up, down and format --validate stop with exit code 3, so glaze down <name> cannot kill an unrelated default session.
  • ls --profiles reads no profile and needs no tmux.
  • After up, down and format, Tab completes the names in the profile registry.

Without a name, each command finds the profile as before: --profile-path, then ./.glaze, then $GLAZE_PATH/.glaze. See Profile registry in the README for the full rules.

Shell completion

glaze completion <shell> prints a completion script for bash, zsh, fish or pwsh. The script asks the glaze binary for the commands and the flags each time you press Tab, so it stays correct after an upgrade. The .deb, .rpm and .apk packages and the Homebrew formula install the bash, zsh and fish scripts. With a release zip or go install, load the script yourself:

$ source <(glaze completion bash)                            # add this line to ~/.bashrc
$ source <(glaze completion zsh)                             # add this line to ~/.zshrc
$ glaze completion fish > ~/.config/fish/completions/glaze.fish

Man page

man glaze describes every command, flag, environment variable and exit code. The packages and the Homebrew formula install it, and every release zip contains glaze.1.

tmux version check

Glazier needs tmux 3.2a or later. up and save now check the version before any other tmux command. An older tmux stops the command with exit code 4, and the message names the version that Glazier found. Before this release, an older tmux failed in the middle of provisioning with a tmux error about an unknown flag.

Upgrade notes

  • A word after up, down or format is now a profile name. v0.2.4 ignored such a word and used ./.glaze. Now glaze down typo stops with exit code 3 because the profile registry has no typo.glaze. Before, it killed the session of ./.glaze. Remove the word, or use --profile-path for a file.
  • An old tmux now fails early. With a tmux older than 3.2a, up and save stop with exit code 4 before they change anything.
  • The help text changed. The command and flag descriptions now use the same words as the man page. No flag was removed or renamed.
  • Two messages changed. An unknown --log-level value now lists the valid levels. An empty size block now says "A size block must set x, y or both."

Install and verify

Each release contains a zip for Linux and macOS on amd64 and arm64, with the licence, the man page and the bash, zsh and fish completion scripts. It also contains .deb, .rpm and .apk packages, a SHA256SUMS file and a signed build provenance attestation.

$ shasum -a 256 -c SHA256SUMS --ignore-missing
$ gh attestation verify glaze-darwin-arm64.zip --repo wilhelm-murdoch/glazier

The macOS binaries are not signed or notarized. Gatekeeper blocks a glaze from a zip on the first run. Remove the quarantine attribute with xattr -d com.apple.quarantine glaze, or install with Homebrew. The .apk package is not signed, so apk needs the --allow-untrusted flag.

A profile runs its commands and hooks in your shell. Read a profile from another person before you apply it.

Other changes

Features

Full Changelog: v0.2.4...v0.5.0

v0.2.4

Choose a tag to compare

@github-actions github-actions released this 03 Oct 16:23
c7f5d89

What's Changed

Full Changelog: v0.2.3...v0.2.4

v0.2.2

Choose a tag to compare

@github-actions github-actions released this 03 Oct 15:52
b36ba03

What's Changed

Full Changelog: v0.2.1...v0.2.2

v0.2.1

Choose a tag to compare

@github-actions github-actions released this 03 Oct 07:42
fd3c51f

Super quick followup to v0.2.0 release. A few quick fixes for some other issues I've uncovered as well as implementing proper prerelease binary testing against an actual tmux server across multiple OSs and architectures.

What's Changed

Full Changelog: v0.2.0...v0.2.1

v0.2.0

Choose a tag to compare

@github-actions github-actions released this 02 Oct 17:01
5671311

What's Changed

  • documentation refresh; specs are now formatted using ASD-STE100 by @wilhelm-murdoch in #40
  • Bump the actions group with 3 updates by @dependabot[bot] in #42
  • Bump github.com/urfave/cli/v3 from 3.12.0 to 3.13.0 in the go-dependencies group by @dependabot[bot] in #41
  • refactor: target tmux components by id rather than name or index by @wilhelm-murdoch in #43
  • fix: redirect logs and diagnostics to stderr by @wilhelm-murdoch in #44
  • refactor: provision windows without a throwaway window and apply options at their scope by @wilhelm-murdoch in #45
  • fix: write colour only to a terminal and obey NO_COLOR by @wilhelm-murdoch in #46
  • refactor: use a tmux buffer to execute commands instead of send-keys by @wilhelm-murdoch in #47
  • refactor: own what a glaze profile creates, tell failures apart and give each failure its own exit code with signal management by @wilhelm-murdoch in #48
  • refactor: remove duplication, group related code and shorten the comments by @wilhelm-murdoch in #49
  • fix: ensure size + adjust settings are properly applied to panes by @wilhelm-murdoch in #50
  • fix: properly guard and expand starting_directory values by @wilhelm-murdoch in #51
  • chore: let's get that score card back above8.x! by @wilhelm-murdoch in #52
  • Bump github.com/mattn/go-isatty from 0.0.22 to 0.0.24 in the go-dependencies group by @dependabot[bot] in #53
  • fix: add support for atomic profile writes by @wilhelm-murdoch in #54
  • chore: group const and var declarations at the top of each file by @wilhelm-murdoch in #55
  • fix: prevent secret leakage by redacting env values from all possible outputs by @wilhelm-murdoch in #56
  • fix: ensure session names for down v.s. up are treated the same way and reject random() in a session name by @wilhelm-murdoch in #57
  • fix: prevent unbounded profiles that trigger panics and overflows by @wilhelm-murdoch in #58
  • fix: ensure the version flag is root-only, report the version of a go install build and build for the host architecture by @wilhelm-murdoch in #59
  • fix: reject values that up cannot apply: nulls, unknown hooks, unknown directions, empty session names and raw layouts with wrong pane counts by @wilhelm-murdoch in #60
  • fix: update error reporting for multiple failure modes by @wilhelm-murdoch in #61
  • fix: ensure post up tmux changes are rejected with proper warnings by @wilhelm-murdoch in #62
  • fix: by @wilhelm-murdoch in #63
  • docs: align the README and SPEC with what glaze actually does by @wilhelm-murdoch in #64
  • test: expect a control character in a session name to become - by @wilhelm-murdoch in #65

Full Changelog: v0.1.6...v0.2.0

v0.1.6

Choose a tag to compare

@github-actions github-actions released this 22 Sep 02:14
7118df6

What's Changed

This is a standard bugfix release. Enjoy!

Full Changelog: v0.1.5...v0.1.6

v0.1.5

Choose a tag to compare

@github-actions github-actions released this 25 Aug 03:11
33212b4

Honestly, in retrospect this should've been released as 1.4.1, but here we are.

What's Changed

Full Changelog: v0.1.4...v0.1.5

v0.1.4

Choose a tag to compare

@github-actions github-actions released this 17 Jul 07:42
11af083

What's Changed

  • Bump the actions group across 1 directory with 5 updates by @dependabot[bot] in #20
  • Bump github.com/urfave/cli/v3 from 3.10.0 to 3.10.1 in the go-dependencies group by @dependabot[bot] in #17
  • Bump the actions group with 3 updates by @dependabot[bot] in #22
  • Bump github.com/zclconf/go-cty from 1.18.1 to 1.19.0 in the go-dependencies group by @dependabot[bot] in #21
  • Fix up window initialisation issue by @ThreeToes in #19
  • feat: adding variable + locals support by @wilhelm-murdoch in #23

Important

This release introduces a breaking change where variables must now be referenced using their dedicated namespace. If you've previously referenced variable foo as "before${foo}after", you must now use "before${var.foo}after". Glaze will tell you what's broken after you upgrade.

New Contributors

Full Changelog: v0.1.3...v0.1.4