Skip to content

Comments

feat: Add section visibility toggles to status line#736

Open
nbost130 wants to merge 1 commit intodanielmiessler:mainfrom
nbost130:feat/statusline-section-toggles
Open

feat: Add section visibility toggles to status line#736
nbost130 wants to merge 1 commit intodanielmiessler:mainfrom
nbost130:feat/statusline-section-toggles

Conversation

@nbost130
Copy link

@nbost130 nbost130 commented Feb 19, 2026

Summary

I like running a pretty lean terminal interface so I added toggles to hide/show the various sections.

  • Adds configurable section visibility to the status line via settings.json → statusline.sections
  • Each section (env, context, git, memory, learning, quote) can be individually hidden by setting to false
  • All sections default to true (shown) when not configured — fully backward compatible
  • Uses if . == null then true else . end instead of jq's // operator (which treats false as falsy and falls through to the default, making boolean toggles impossible)

Usage

Add to settings.json:

"statusline": {
  "sections": {
    "env": true,
    "context": true,
    "git": true,
    "memory": true,
    "learning": false,
    "quote": false
  }
}

Omit any key to keep it visible (default behavior).

🤖 Generated with Claude Code

Allow users to hide/show individual status line sections via
settings.json → statusline.sections. Each section (env, context,
git, memory, learning, quote) can be set to false to hide it.

All sections default to true when not configured, so this is fully
backward compatible with existing installations.

Uses `if . == null then true else . end` instead of jq's `//`
operator because `//` treats `false` as falsy and falls through
to the default — making boolean toggles impossible.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
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