-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.yaml
More file actions
145 lines (124 loc) · 4.45 KB
/
config.yaml
File metadata and controls
145 lines (124 loc) · 4.45 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
# Global mdv configuration
# Place this file at:
# macOS: ~/.config/mdv/config.yaml
# Linux: ~/.config/mdv/config.yaml
# Windows: %APPDATA%/mdv/config.yaml
#
# Or create a local .mdv.yaml in your project directory for
# project-specific settings that override the global config.
# ============================================================
# THEME SETTINGS
# ============================================================
# TUI Theme for terminal markdown rendering
# Built-in themes: "dark", "light", "auto", "notty", "dracula", "pink", "tokyo-night"
# Or use a path to a custom JSON theme file:
# - Absolute path: /path/to/theme.json
# - Home path: ~/themes/custom.json
# - Relative path: ./themes/custom.json (resolved relative to this config file's directory)
theme: auto
# Override TUI themes for light/dark mode when theme is set to "auto"
# This allows you to use custom themes while still benefiting from
# automatic system theme detection
# Leave empty to use default "light" and "dark" themes
# theme-light: notty
# theme-dark: tokyo-night
# Or use custom theme files:
# theme-light: ~/.config/mdv/themes/light-custom.json
# theme-dark: ~/.config/mdv/themes/dark-custom.json
# GUI Theme for desktop application rendering (mdv-gui)
# Built-in themes: "auto", "light", "dark"
# Or use a path to a custom CSS file:
# - Absolute path: /path/to/theme.css
# - Home path: ~/themes/custom.css
# - Relative path: ./themes/custom.css (resolved relative to this config file's directory)
# gui-theme: auto
# Override GUI themes for light/dark mode when gui-theme is set to "auto"
# Leave empty to use default "light" and "dark" CSS themes
# gui-theme-light: light
# gui-theme-dark: dark
# Or use custom CSS theme files:
# gui-theme-light: ~/.config/mdv/themes/light-custom.css
# gui-theme-dark: ~/.config/mdv/themes/dark-custom.css
# ============================================================
# DISPLAY SETTINGS
# ============================================================
# Text wrap width for terminal rendering (TUI)
# Set to 0 to disable wrapping
wrap: 80
# Content width for GUI rendering
# Options: "narrow" (680px, optimal for reading), "medium" (900px, default),
# "wide" (1200px, for tables/code), "full" (no constraint)
# Or specify a custom pixel value: "800"
# gui-width: medium
# Open in GUI mode by default
# Note: It's recommended to use the mdv-gui command directly for GUI mode
gui: false
# ============================================================
# LIVE RELOAD
# ============================================================
# Auto-reload on file changes
# Useful for live preview while editing
watch: false
# ============================================================
# EDITOR INTEGRATION
# ============================================================
# Editor to use when pressing 'e' in TUI or GUI
# Defaults to $EDITOR environment variable, or "vim" if not set
# Examples: "vim", "nvim", "nano", "code", "code --wait", "subl -w"
# editor: code
# ============================================================
# FILE EXCLUSION
# ============================================================
# Glob patterns for files to exclude when scanning directories
# Useful for ignoring drafts, temporary files, or specific documents
# exclude:
# - README.md
# - "draft-*.md"
# - "*-tmp.md"
# - "*-wip.md"
# ============================================================
# EXAMPLE CONFIGURATIONS
# ============================================================
# Example 1: Development/Writing Setup
# Automatically reload files while you edit them in your favorite editor
# ---
# theme: auto
# theme-dark: dracula
# wrap: 100
# watch: true
# editor: code --wait
# Example 2: Minimalist Terminal Setup
# Plain text rendering with no colors, narrower width
# ---
# theme: notty
# wrap: 60
# gui: false
# watch: false
# Example 3: Presentation Mode (GUI)
# Use specific themed appearance, optimized reading width
# ---
# gui: true
# gui-theme: auto
# gui-theme-light: light
# gui-theme-dark: dark
# gui-width: narrow
# watch: true
# Example 4: Technical Documentation (GUI)
# Wide layout for tables and code blocks with dark theme
# ---
# gui: true
# gui-theme: dark
# gui-width: wide
# watch: true
# Example 5: Project-specific (place in .mdv.yaml in your project)
# Exclude documentation files and drafts from directory browsing
# ---
# theme: auto
# theme-dark: pink
# gui-theme: dark
# gui-width: medium
# watch: true
# exclude:
# - README.md
# - CONTRIBUTING.md
# - "*-draft.md"