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
# leaf configuration file
#
# Copy this file to your config directory:
# Linux / macOS / Termux: ~/.config/leaf/config.toml
# Windows: %APPDATA%\leaf\config.toml
#
# On Linux / macOS, $XDG_CONFIG_HOME/leaf/config.toml is used if set.
#
# All settings are optional. If a setting is missing or the file
# does not exist, leaf uses its built-in defaults.
# Command-line arguments always take priority over this file.
# Color theme
# Built-in themes: arctic, forest, ocean, solarized-dark
# Or set this to a custom theme file path.
# Relative paths are resolved from this config file's directory.
# Priority: --theme flag > LEAF_THEME > this setting > ocean
# Default: ocean
= "ocean"
# Custom theme example:
# theme = "/path/to/custom-theme.toml"
#
# On Windows, use single quotes to avoid escaping backslashes:
# theme = 'C:\path\to\custom-theme.toml'
#
# See gruvbox.toml in the repository for a complete example.
# Default editor for Ctrl+E
# Any editor name available in PATH: nano, vim, nvim, micro,
# hx, emacs, code, subl, gedit, kate, mousepad, zed, etc.
#
# For paths with spaces, just write the path:
# editor = 'C:\Program Files\Notepad++\notepad++.exe'
#
# For paths with spaces AND arguments, use inner quotes:
# editor = '"C:\Program Files\Notepad++\notepad++.exe" --some-flag'
#
# Use {$line} to open the editor at the first visible source line at Ctrl+E:
# editor = 'nano +{$line}'
# editor = 'nvim +{$line} +"normal! zz"'
#
# Also, {$path} offers more customization options:
# editor = 'code -g {$path}:{$line}'
#
# Priority: --editor flag > LEAF_EDITOR > this setting > nano (notepad on Windows)
# editor = "nano"
# Maximum content width (number of columns)
# Limits how wide the rendered content can be.
# Useful on wide terminals for better readability.
# Priority: --width flag > LEAF_WIDTH > this setting > terminal width
# Minimum: 20
# Default: terminal width (no limit)
# width = 80
# Watch mode: automatically reload when the file changes
# Only applies when opening a file (ignored for stdin)
# Default: false
= false
# Extra file types shown in the file picker
# Add other extensions to also show them (without the dot).
# Code files (py, sh, css, html...) get syntax highlighting.
# Text files (txt, csv, log...) are rendered as plain Markdown.
# Default: [] (Markdown only)
# extras = ["txt", "csv", "rs", "java", "json", "yaml"]
# Show line numbers inside fenced code blocks
# Only affects code block gutters, the main document line numbers are independent.
# Priority: LEAF_CODE_LINE_NUMBERS > this setting > default (true)
# Accepted env values: 1 = true, 0 = false (other values ignored)
# Default: true
# code-line-numbers = true
# Maximum tab title length (in characters)
# Controls the tab title of the terminal: "leaf: <filename>".
# When the filename is long, it is truncated: "leaf: prefix...ext".
# Priority: LEAF_TAB_TITLE_LENGTH > this setting > default (-1)
# Minimum accepted: 20. Any other value falls back to no truncation.
# Default: -1 (no truncation)
# tab-title-length = -1