GitHub - conao3/leaf-tree.el: Interactive side-bar feature for leaf based init.el

https://raw.githubusercontent.com/conao3/files/master/blob/headers/png/leaf-tree.el.png https://img.shields.io/github/license/conao3/leaf-tree.el.svg?style=flat-square https://img.shields.io/github/tag/conao3/leaf-tree.el.svg?style=flat-square https://github.com/conao3/leaf-tree.el/workflows/Main%20workflow/badge.svg

An interactive sidebar for navigating leaf.el configurations in your Emacs init file.

https://raw.githubusercontent.com/conao3/files/master/blob/leaf-tree.el/leaf-tree.gif

Overview

leaf-tree provides a tree-view sidebar that displays all your leaf declarations, making it easy to navigate and manage package configurations in large init files. Built on top of imenu-list, it offers a familiar interface for browsing hierarchical structures.

Requirements

Installation

Using leaf.el

(leaf leaf-tree
  :ensure t
  :custom ((imenu-list-size . 30)
           (imenu-list-position . 'left)))

Using package.el

(package-install 'leaf-tree)

Using straight.el

(straight-use-package 'leaf-tree)

Usage

To activate the sidebar, run:

M-x leaf-tree-mode

The sidebar will display a hierarchical tree of all leaf declarations in your current buffer. Click on any entry to jump to its definition.

Configuration

VariableDescriptionDefault
leaf-tree-flatDisplay leaf entries as a flat list instead of a treenil
leaf-tree-click-group-to-hideToggle visibility of child entries when clicking a groupnil

Additional display options are inherited from imenu-list. See the imenu-list documentation for more customization options.

Contributing

Contributions are welcome. Please feel free to submit issues and pull requests on GitHub.

Development Setup

  1. Install Cask:
    # macOS
    brew install cask
    
    # Manual installation
    git clone https://github.com/cask/cask ~/.cask
    export PATH="$HOME/.cask/bin:$PATH"
        
  2. Run tests:

License

GPL-3.0. See LICENSE for details.

Copyright (C) 2020 Naoya Yamashita

Author

Naoya Yamashita (conao3)