Skip to content

Add gui.sortEnv option to sort Env panel alphabetically - #819

Open
rsiva0400 wants to merge 1 commit into
jesseduffield:masterfrom
rsiva0400:feat/sort-env-panel
Open

Add gui.sortEnv option to sort Env panel alphabetically#819
rsiva0400 wants to merge 1 commit into
jesseduffield:masterfrom
rsiva0400:feat/sort-env-panel

Conversation

@rsiva0400

Copy link
Copy Markdown

What

Adds a new bool config option gui.sortEnv (default: false). When enabled, the container Env panel lists variables sorted alphabetically by key instead of the image / compose insertion order.

Why

Long env blocks (30–50+ vars from multi-service stacks) are hard to scan in insertion order. Alphabetical ordering makes it quick to locate a specific key.

Behavior

  • false (default): existing behavior — insertion order preserved. No change for current users.
  • true: stable sort by the substring before =. Values are untouched.

Test

  • bash ./test.sh — all packages pass.
  • GOFLAGS=-mod=vendor go build ./... — clean.
  • Verified live: with sortEnv: false output matches docker inspect .Config.Env; with sortEnv: true keys are A→Z.

Config example

gui:
  sortEnv: true

New optional bool 'gui.sortEnv' (default: false). When true, the
container Env panel is rendered with variables sorted alphabetically
by key; default preserves the existing image / compose insertion order.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant