magit-section

Community

Collapsible, hierarchical UIs in Emacs buffers.

Authorhugoduncan
Version1.0.0
Installs0

System Documentation

What problem does it solve?

magit-section provides a robust framework for building tree-like, collapsible buffers with sections that can contain nested content, navigation, and per-section behavior—ideal for complex interfaces like Magit's.

Core Features & Use Cases

  • Hierarchical Sections: Create nested sections with headings and bodies.
  • Visibility & Caching: Collapse/expand sections with caching of visibility state.
  • Navigation & Actions: Built-in movement and per-section keymaps for custom actions.
  • Data Association: Attach arbitrary values to sections for rich interactivity.
  • Use Cases: File browsers, log viewers, configuration inspectors, and custom UIs.

Quick Start

To begin:

  • Require the library: (require 'magit-section)
  • Create a root section and nested sections:
    (magit-insert-section (root)
      (magit-insert-heading "Root")
      (magit-insert-section (child "child-1")
        (magit-insert-heading "Child 1")
        (insert "Content here")))
    
  • Navigate with TAB to toggle visibility or use movement commands like magit-section-forward/ backward.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: magit-section
Download link: https://github.com/hugoduncan/library-skills/archive/main.zip#magit-section

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository

Agent Skills Search Helper

Install a tiny helper to your Agent, search and equip skill from 223,000+ vetted skills library on demand.