ASCII Tree Generator

by Matěj Michálek
5
4
3
2
1
Score: 56/100

Description

The ASCII Tree Generator plugin converts indented outlines in Obsidian into structured ASCII tree diagrams. It provides a simple syntax using = characters to define hierarchy levels and automatically formats the output with box-drawing characters for clarity. The plugin supports unlimited nesting, making it ideal for visualizing project structures, technical documentation, or mind maps. Users can generate trees within markdown code blocks and view them in both editing and preview modes, ensuring a seamless workflow for organizing complex ideas in a structured, text-based format.

Reviews

No reviews yet.

Stats

24
stars
2,624
downloads
0
forks
432
days
11
days
11
days
1
total PRs
0
open PRs
0
closed PRs
1
merged PRs
3
total issues
0
open issues
3
closed issues
0
commits

Latest Version

11 days ago

Changelog

README file from

Github

ASCII Tree Generator for Obsidian

Transform indented outlines into beautiful ASCII tree diagrams directly in your Obsidian notes. Perfect for technical documentation, project hierarchies, or mind-mapping.

Features:

  • Simple Syntax: Use either standard markdown lists or = characters to indicate nesting levels
  • Automatic Hierarchy Detection: Converts markdown code blocks into ASCII trees
  • Multi-Level Support: Handles unlimited nesting levels with proper indentation
  • Clean Formatting: Produces professional-looking trees with proper box-drawing characters
  • Dual-Mode Display: Renders trees in both preview and editing modes
  • Native Markdown Compatible: Works with standard markdown list indentation

How to Use:

Method 1: Using markdown lists

  1. Create a code block with tree keyword as a language identifier.
  2. Use standard markdown list syntax:
    • Unordered lists with -, *, or +
    • Ordered lists with numbers (1., 2., etc.)
    • Standard tab indentation for nesting levels

Method 2: Using equals signs

  1. Create a code block with tree keyword as a language identifier.
  2. Indent hierarchy levels using = signs:
    • Each = represents one level of nesting
    • Example: ==subitem → two levels deep

Example usage:

Example 1 (with markdown lists):

Project
- Documentation
  - README.md
  - Changelog.md
- Source
  - Frontend
    - Components
      - Header
      - Footer
  - Backend
    - API
      - User
      - Product
- Tests
  - Unit
  - Integration

Output:

Project
├── Documentation
│   ├── README.md
│   └── Changelog.md
├── Source
│   ├── Frontend
│   │   └── Components
│   │       ├── Header
│   │       └── Footer
│   └── Backend
│       └── API
│           ├── User
│           └── Product
└── Tests
    ├── Unit
    └── Integration

Example 2 (with equals signs):

Project
=Documentation
==README.md
==Changelog.md
=Source
==Frontend
===Components
====Header
====Footer
==Backend
===API
====User
====Product
=Tests
==Unit
==Integration

Output:

Project
├── Documentation
│   ├── README.md
│   └── Changelog.md
├── Source
│   ├── Frontend
│   │   └── Components
│   │       ├── Header
│   │       └── Footer
│   └── Backend
│       └── API
│           ├── User
│           └── Product
└── Tests
    ├── Unit
    └── Integration

Available Commands:

This plugin provides three convenient commands accessible through the Command Palette (Ctrl/Cmd + P):

Convert selection to tree code block

  • Usage: Select text and run this command to wrap it in a tree code block
  • Behavior:
    • With text selected: Wraps selection in tree code block
    • Without selection: Wraps the current line in tree code block
  • Perfect for: Converting existing lists or hierarchies into tree format

Convert tree block back to text

  • Usage: Place cursor anywhere within a tree code block and run this command
  • Behavior: Removes the tree wrapper, leaving just the plain text content

Toggle tree block

  • Usage: Smart command that automatically chooses between adding or removing a tree code block
  • Behavior:
    • If cursor is inside a tree block → removes the tree block
    • If cursor is outside a tree block → converts selection/line to tree block

💡 Tip: Assign keyboard shortcuts to these commands in Obsidian's Hotkeys settings for even faster workflow.

Settings:

The plugin settings page (Obsidian Settings → Community Plugins → ASCII Tree Generator) lets you configure:

  • Connector dashes — how many characters follow each or . Default is 2, giving the classic ├── style. Can be set between 1 and 10.
  • Auto-append / to folders — automatically adds a trailing / to any item that has children in the tree.

Per-block connector width

You can override the global connector width for a specific block by adding a number after tree on the opening fence line:

```tree 4
Project
- src
  - main.ts
- docs
  - README.md
```

This produces ├──── connectors just for that block, while all other blocks keep using the global setting.

Installation:

  1. Available through Obsidian's Community Plugins
  2. Search for "ASCII Tree Generator"
  3. Enable plugin after installation

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Excalidraw
5 years ago by Zsolt Viczian
A plugin to edit and view Excalidraw drawings in Obsidian
Mind Map
5 years ago by James Lynch
An Obsidian plugin for displaying markdown notes as mind maps using Markmap.
Advanced Canvas
2 years ago by Developer-Mike
⚡ Supercharge your canvas experience! Graph view integration and unlimited styling options empower flowcharts, dynamic presentations, and interconnected knowledge.
Markmind
5 years ago by Mark
A mind map, outline for obsidian,It support mobile and desktop
ExcaliBrain
4 years ago by Zsolt Viczian
A graph view to navigate your Obsidian vault
Breadcrumbs
5 years ago by SkepticMystic
Add typed-links to your Obsidian notes
Enhancing Mindmap
5 years ago by Mark
obsidian plugin editable mindmap,you can edit mindmap on markdown file
Heatmap Calendar
4 years ago by Richard Slettevoll
An Obsidian plugin for displaying data in a calendar similar to the github activity calendar
Map View
5 years ago by esm
Interactive map view for Obsidian.md
Canvas Mindmap
3 years ago by Boninall
A plugin to make your canvas work like a mindmap.
Obsidian Mindmap Nextgen
3 years ago by VeroCloud Pty Ltd (original by James Lynch)
Create mind maps from your obsidian markdown files
Contribution Graph
2 years ago by vran
generate interactive gitxxx style contribution graph for obsidian, use it to track your goals, habits, or anything else you want to track.
Extended Graph
a year ago by Kapirklaa
Community plugin to add features to the graph view.
Diagrams.Net
4 years ago by Jens M Gleditsch
This repository contains a plugin for Obsidian for inserting and editing diagrams.net (previously draw.io) diagrams.
Maps
7 months ago by Obsidian
Map layout for Obsidian Bases. Display your notes as an interactive map view.
Note Gallery
2 years ago by Pash Shocky
A masonry note gallery for obsidian.
Heatmap Tracker
a year ago by Maksim Rubanau
A customizable heatmap tracker plugin for Obsidian to visualize daily data trends with intuitive navigation and flexible settings.
Mehrmaid
2 years ago by huterguier
Rendering Obsidian Markdown inside Mermaid diagrams.
Smart Connections Visualizer
2 years ago by Evan Moscoso
Visualize your notes and see links to related content with AI embeddings. Use local models or 100+ via APIs like Claude, Gemini, ChatGPT & Llama 3
Link Exploder
3 years ago by Ben Hughes
Lovely-Mindmap
3 years ago by shaun
Build your own knowledge graph with smiles :-)
Optimize Canvas Connections
3 years ago by Félix Chénier
An Obsidian plugin that declutters a canvas by reconnecting notes using their nearest edges
Desmos
4 years ago by Nigecat
Embed graphs directly into your obsidian notes
Graph Banner
2 years ago by ras0q
An Obsidian plugin to display a relation graph view on the note header.
Mxmind Mindmap
2 years ago by mxmind
mxmind for obsidian plugin
InfraNodus AI Graph View
2 years ago by Nodus Labs
Advanced graph view for Obsidian: text analysis, topic modeling, and AI with InfraNodus AI text analysis tool: https://infranodus.com
Habit Tracker
5 years ago by duo
This plguin for Obsidian creates a simple month view for visualizing your punch records.
D2
3 years ago by Terrastruct
The official D2 plugin for Obsidian. D2 is a modern diagram scripting language thats turns text to diagrams.
Obsidian Graphviz
4 years ago by Feng Peng
Graphviz plugin for obsidian md.
Canvas Links
3 years ago by aqav
Show the links between "Canvas" and "File"
Mindmap
2 years ago by YunXiaoYi
An Obsidian plugin for creating Mindmaps.
Canvas Filter
3 years ago by Ivan Koshelev
Obsidian Canvas plugin that let's you show only pages / arrows with specific tags / colors / connections.
Show Whitespace
2 years ago by Erin Schnabel
Show leading/trailing whitespace
CardNote
2 years ago by cycsd
Help you extract your thoughts more quickly in canvas
Neo4j Graph View
5 years ago by Emile van Krieken
Advanced Progress Bars
a year ago by cactuzhead
Obsidian plugin to create custom progress bars
Enhanced Canvas
a year ago by RobertttBS
When editing on Canvas, properties and Markdown links to notes are automatically updated, enabling backlinks in Canvas.
Graph Link Types
2 years ago by natefrisch01
Link types for Obsidian graph view.
Release Timeline
4 years ago by cakechaser
Chessboard Viewer
5 years ago by Davide Aversa
Plugin to render chessboards in Obsidian using chessboardjs
Habit Tracker
4 years ago by David Moeller
A Plugin to display a Habit Tracker in Obsidian.
Nifty Links
3 years ago by x-Ai
Generating elegant, Notion-styled rich link cards to enhance your note-taking experience.
Tasks Map
7 months ago by NicoKNL
A graph view of your tasks.
Canvas Mindmap Helper
2 years ago by Tim Smart
New 3D Graph
10 months ago by Aryan Gupta
Visualize your vault in 3D with a powerful, highly customizable, and filterable graph.
Arrows
2 years ago by artisticat
Draw arrows across different parts of your notes, similar to on paper
Export Graph View
a year ago by Sean McGhee
Plugin to export your vault's graph view.
Argument Map with Argdown
5 years ago by amdecker
Dirtreeist
3 years ago by kasahala
Render a directory Structure Diagram from a markdown lists in codeblock.
MoreDraw
a year ago by webceoboy2011
mordraw.com for obsidian plugin
Structured
4 years ago by dobrovolsky
Chemical Structure Renderer
3 years ago by xaya1001
Render chemical structures from SMILES strings into PNG or SVG format using Ketcher and Indigo Service.
Tracker+
3 years ago by GreaterThan (original by pyrochlore)
A plugin for Obsidian that tracks and visualizes in your notes. A continuation of the plugin originally developed by @pyrochlore
Content Cards
a year ago by leo
Insert content cards in Markdown, such as timeline, highlightblock, target card, book information card, music information card, movie information card, photoes ablum, business card, content subfield, countdown, SWOT,BCG.
VirtFolder
2 years ago by mr.grogrig
Creating a hierarchical structure like Luhmann's Zettelkasten
WaveDrom
5 years ago by Alex Stewart
Adamantine Pick
3 years ago by Urist McMiner
Embeddable Pikchr(https://pikchr.org) diagrams renderer plugin for Obsidian(https://obsidian.md)
historica
2 years ago by Nhan Nguyen
Not (smart) to help you create your timeline in obsidian like a ... bro
Lilypond
3 years ago by DOT-ASTERISK
Lilypond for Obsidian
Zettelkasten Outliner
2 years ago by Tyler Suzuki Nelson
YourPulse - Your Writing Activity Visualised
a year ago by Jiri Sifalda
YourPulse.cc - Obsidian.md plugin that turns your vault into a reflection of your creativity, and put your writing on steroids 💪
Desk
2 years ago by David Landry
A desk for obsidian
Node Factor
a year ago by CalfMoon
Customize factors effecting node size in obsidian graph.
Lineup Builder
4 years ago by James Fallon
An Obsidian plugin that lets you build football lineups
Flowcharts
a year ago by land0r
Flowchart Plugin for Obsidian – Create and customize flowcharts seamlessly within your Obsidian vault. Powered by Flowchart.js and designed for productivity
Laws of Form
3 years ago by Kevin German
Generate Timeline
a year ago by Shanshuimei
An obsidian plugin to generate timelines from tags, folders, files or metadata automatically. 根据标签,文件夹,文件或者属性自动生成时间轴的插件。
Storyclock Viewer
2 years ago by Jonathan Fisher
Obsidian plugin for creating a storyclock
Hierarchical Outgoing Links
2 years ago by Jason Motylinski
Obsidian.md plugin which displays outgoing links as a hierarchy
BattleSnake Board Viewer
3 years ago by EnderInvader
Plugin to render battlesnake boards in Obsidian
Tier List
a year ago by Mox Alehin
Obsidian plugin for visual ranking and organizing content into customizable Tier Lists.
Mathematica Plot
2 years ago by Marcos Nicolau
Insert functions on Obsidian using Wolfram Mathematica!
Better Mind Map
10 months ago by Utkarsh Raj
Obsidian plugin to for mind maps, vizualize current note as mind map.
Folder Canvas
a year ago by Nancy Lee
Generate a canvas view of your folder structure
Easy Timeline
a year ago by Romeliun
The Easy Timeline plugin for Obsidian allows you to create timelines easily.
Markline
2 years ago by 闲耘
Markline: Markdown timeline view in Obsidian.
Cluster
2 years ago by Lorens Osman
Cluster plugin mainly designed to simplify the process of note clustering on mobile devices and work well on PCs ether
Alfonso Money Manager
2 years ago by SmartLifeGPT Innovation
This is the repository for the obsidian plugin of the Alfonso Money Manager mobile application
Extended File Support
a year ago by Nick de Bruin
Adds opening and embedding support for various filetypes to Obsidian
Smart Vault Visualizer
a year ago by Evan Moscoso
TinyChart
2 years ago by Alin Coop
Dead simple ASCII charts for Obsidian.
Mermaid Icons
3 months ago by toshs
Obsidian plugin enabling the use of icons in Mermaid diagrams.
Mapbox Location Image
2 years ago by Aaron Czichon
Render a mapbox location image based on provided coordinates
Canvas Explorer
2 years ago by Henri Jamet
A plugin that enables users to explore their vault by iteratively adding or ignoring linked notes, ultimately generating a customizable canvas that visually represents the preserved notes and their connections.
Cursor Jump
2 years ago by Sangwon Jung
Textgrams
a year ago by Akop Kesheshyan
Create and store ASCII graphics in your Obsidian
Weather Widget
3 months ago by mr-asa
Weather widget for display in notes, Canvas, and a separate tab.
Magic Move
2 years ago by imfenghuang
Animating Code Blocks in Obsidian
Tagvis
a year ago by Mason Bryant
NodeFlow
a year ago by LincZero
Render node streams like `ComfyUi`, `UE`, `Houdini`, `Blender`, etc., to make it easy to write relevant notes. json describes the chart, compared to screenshots, making it easier to modify later. The plugin is also compatible with blogs.",
Waveform Player
a year ago by Zhou Hua
Timelive
a year ago by aNNiMON
Turn a list of dates into a timeline
Hierarchy
2 years ago by Kodai Nakamura
Every Day Calendar
a year ago by QuBe
Obsidian plugin to create calendars inspired by Simone Giertz's Every Day Calendar
Boardgame Search
a year ago by Marlon May
A plugin to create notes for boardgames based on the BGG API
Tree Diagram
a year ago by limpido
An Obsidian plugin that converts tab-indented text to a tree diagram.
Life in Weeks Calendar
6 months ago by Jeff Szuc
Plugin for the Obsidian markdown editor. Displays a calendar of your life in weeks with weekly Periodic Notes plugin integration. Includes options for the traditional Memento Mori/Stoic style calendar, as well as a Gregorian calendar accurate version.
Inline Local Graph
3 months ago by TKOxff
Inline Local Graph of Obsidian
Visited Countries
7 months ago by Ivan Peshykov
Obsidian plugin to mark and visualize the countries you've visited on an interactive world map.
NyanBar
2 years ago by xhyabunny
Give life to your Obsidian notes with NyanBar !
Kale Graph
a year ago by Oli
Render mathematical graphs in Obsidian
Poker Range
2 years ago by marplek
Easily create, view, and interact with poker hand ranges in your obsidian.
ShaahMaat-md
a year ago by Mihail Kovachev
GLSL Viewer
3 months ago by iY0Yi
Preview GLSL shaders on Obsidian.
Class Relation Visualization
a year ago by Yong
Mahgen Renderer
a year ago by Michael Francis Williams
Obsidian plugin to render mahgen automatically
Mahjong Renderer
2 years ago by hypersphere
GoBoard
4 months ago by Dmitry I. Sokolov
Obsidian plugin for rendering Go game diagrams from markdown code blocks