# alexluigit/dirvish architecture

> Architecture diagram of the GitHub repository alexluigit/dirvish, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-09). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/alexluigit/dirvish
- Repository: https://github.com/alexluigit/dirvish

## Overview

Dirvish is an Emacs file manager built on Dired. Users launch Dirvish or its window-aware variant and work through a customized Dired interface; the documented dispatch command opens a help/cheatsheet menu. The tree also contains core modules and optional extensions for features such as previews, navigation, version control, and file operations. Since no source excerpts were provided, only README-documented relationships are shown; extension links and internal call paths are omitted where they cannot be verified.

Main entry points: [`dirvish.el`](https://github.com/alexluigit/dirvish/blob/main/dirvish.el) (Dirvish commands)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_core["Core interface"]
  node_dirvish["Dirvish commands<br/>[dirvish.el]"]
  node_extras["Extra features<br/>[dirvish-extras.el]"]
  node_widgets["Interface widgets<br/>[dirvish-widgets.el]"]
  node_dired["Built-in Dired"]
  node_icons["File icons<br/>[dirvish-icons.el]"]
  node_ls["Listing options<br/>[dirvish-ls.el]"]
end

subgraph group_integration["File integration"]
  node_fd["fd integration<br/>[dirvish-fd.el]"]
  node_tramp["Remote files<br/>[dirvish-tramp.el]"]
end

subgraph group_navigation["Navigation extensions"]
  node_collapse["Collapse listings"]
  node_history["Directory history<br/>[dirvish-history.el]"]
  node_narrow["Narrow listings<br/>[dirvish-narrow.el]"]
  node_quickaccess["Quick access"]
  node_side["Side window<br/>[dirvish-side.el]"]
  node_subtree["Directory subtree<br/>[dirvish-subtree.el]"]
  node_peek["File previews<br/>[dirvish-peek.el]"]
end

subgraph group_operations["File extensions"]
  node_emerge["Listing groups<br/>[dirvish-emerge.el]"]
  node_rsync["Rsync transfers<br/>[dirvish-rsync.el]"]
  node_vc["Version control<br/>[dirvish-vc.el]"]
  node_yank["Copy and yank<br/>[dirvish-yank.el]"]
end

node_user(("Emacs user"))
node_transient["Transient menus"]

node_user -->|"launches"| node_dirvish
node_dirvish -->|"enhances"| node_dired
node_dirvish -->|"uses menus"| node_transient

click node_dirvish "https://github.com/alexluigit/dirvish/blob/main/dirvish.el"
click node_extras "https://github.com/alexluigit/dirvish/blob/main/dirvish-extras.el"
click node_widgets "https://github.com/alexluigit/dirvish/blob/main/dirvish-widgets.el"
click node_fd "https://github.com/alexluigit/dirvish/blob/main/dirvish-fd.el"
click node_tramp "https://github.com/alexluigit/dirvish/blob/main/dirvish-tramp.el"
click node_collapse "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-collapse.el"
click node_history "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-history.el"
click node_narrow "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-narrow.el"
click node_quickaccess "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-quick-access.el"
click node_side "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-side.el"
click node_subtree "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-subtree.el"
click node_peek "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-peek.el"
click node_icons "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-icons.el"
click node_ls "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-ls.el"
click node_emerge "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-emerge.el"
click node_rsync "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-rsync.el"
click node_vc "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-vc.el"
click node_yank "https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-yank.el"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_dirvish,node_extras,node_widgets,node_dired,node_icons,node_ls,node_user toneBlue
class node_fd,node_tramp toneAmber
class node_collapse,node_history,node_narrow,node_quickaccess,node_side,node_subtree,node_peek toneMint
class node_emerge,node_rsync,node_vc,node_yank toneRose
class node_transient toneIndigo
```

## Components

### Core interface

- [Dirvish commands](https://github.com/alexluigit/dirvish/blob/main/dirvish.el): `dirvish.el`
- [Extra features](https://github.com/alexluigit/dirvish/blob/main/dirvish-extras.el): `dirvish-extras.el`
- [Interface widgets](https://github.com/alexluigit/dirvish/blob/main/dirvish-widgets.el): `dirvish-widgets.el`
- **Built-in Dired**
- [File icons](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-icons.el): `extensions/dirvish-icons.el`
- [Listing options](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-ls.el): `extensions/dirvish-ls.el`

### File integration

- [fd integration](https://github.com/alexluigit/dirvish/blob/main/dirvish-fd.el): `dirvish-fd.el`
- [Remote files](https://github.com/alexluigit/dirvish/blob/main/dirvish-tramp.el): `dirvish-tramp.el`

### Navigation extensions

- [Collapse listings](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-collapse.el): `extensions/dirvish-collapse.el`
- [Directory history](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-history.el): `extensions/dirvish-history.el`
- [Narrow listings](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-narrow.el): `extensions/dirvish-narrow.el`
- [Quick access](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-quick-access.el): `extensions/dirvish-quick-access.el`
- [Side window](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-side.el): `extensions/dirvish-side.el`
- [Directory subtree](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-subtree.el): `extensions/dirvish-subtree.el`
- [File previews](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-peek.el): `extensions/dirvish-peek.el`

### File extensions

- [Listing groups](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-emerge.el): `extensions/dirvish-emerge.el`
- [Rsync transfers](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-rsync.el): `extensions/dirvish-rsync.el`
- [Version control](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-vc.el): `extensions/dirvish-vc.el`
- [Copy and yank](https://github.com/alexluigit/dirvish/blob/main/extensions/dirvish-yank.el): `extensions/dirvish-yank.el`

### Other components

- **Emacs user**
- **Transient menus**

## Connections

- Emacs user → Dirvish commands: launches (evidence: `README.org`)
- Dirvish commands → Built-in Dired: enhances (evidence: `README.org`)
- Dirvish commands → Transient menus: uses menus (evidence: `README.org`)
