@rivolink/leaf-linux-arm64 1.20.1 → 1.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. package/README.md +52 -3
  2. package/leaf +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -125,7 +125,32 @@ claude "explain Rust lifetimes" | leaf
125
125
 
126
126
  # Preview a local file through stdin
127
127
  cat TESTING.md | leaf
128
+ ```
129
+
130
+ ## Inline Mode
131
+
132
+ Render Markdown directly to **stdout** without the interactive TUI:
133
+
134
+ ```bash
135
+ # Render to terminal with colors
136
+ leaf --inline README.md
137
+
138
+ # Force plain text, no ANSI codes (no colors)
139
+ leaf --inline plain README.md
128
140
 
141
+ # Force ANSI colors even when piping
142
+ leaf --inline ansi README.md
143
+
144
+ # Set a specific width
145
+ leaf --inline 60 README.md
146
+ leaf --inline ansi:60 README.md
147
+
148
+ # Pipe from stdin
149
+ cat README.md | leaf --inline
150
+
151
+ # Use as a fzf preview
152
+ find . -name '*.md' | fzf --preview 'leaf --inline ansi {}'
153
+ find . -name '*.md' | fzf --preview 'leaf --inline ansi:$FZF_PREVIEW_COLUMNS {}'
129
154
  ```
130
155
 
131
156
  ## Configuration
@@ -139,13 +164,36 @@ leaf --config
139
164
  This opens the configuration file in your editor. If the file does not exist yet, leaf creates it with documented defaults.
140
165
 
141
166
  ```toml
142
- theme = "ocean" # arctic, forest, ocean, solarized-dark, or a custom theme file
143
- editor = "nano" # any editor in PATH
144
- watch = false # auto-reload when opening a file
167
+ theme = "ocean" # arctic, forest, ocean, solarized-dark, or a custom theme file
168
+ editor = "nano" # any editor in PATH
169
+ watch = false # auto-reload when opening a file
170
+ extras = ["txt", "rs"] # extra file types shown in the picker
145
171
  ```
146
172
 
147
173
  All settings are optional. CLI arguments always take priority. See [`config.toml`](config.toml) for details.
148
174
 
175
+ ## Extra Files
176
+
177
+ Non-Markdown files can be listed in the file picker by adding their extensions to `config.toml`:
178
+
179
+ ```toml
180
+ extras = ["txt", "csv", "rs", "java", "json", "yaml"]
181
+ ```
182
+
183
+ Code files get syntax highlighting; text files are rendered as plain Markdown.
184
+
185
+ Any file can also be opened directly from the command line, regardless of the `extras` setting:
186
+
187
+ ```bash
188
+ leaf main.rs
189
+ ```
190
+
191
+ Browse and preview code files with fzf:
192
+
193
+ ```bash
194
+ find . -name '*.rs' | fzf --preview 'leaf --inline ansi {}'
195
+ ```
196
+
149
197
  ## Custom Themes
150
198
 
151
199
  Create a `.toml` file that inherits from a built-in theme and overrides specific colors:
@@ -202,6 +250,7 @@ See [`gruvbox.toml`](gruvbox.toml) for a complete example with all available col
202
250
  - **Editor integration** — Open the current file in your preferred editor.
203
251
  - **Frontmatter support** — YAML frontmatter rendered as a table (horizontal or vertical based on key count).
204
252
  - **Rich Markdown rendering** — Tables, lists, blockquotes, rules, bold, italic, and strikethrough.
253
+ - **Extra file types** — Open any file; code files get syntax highlighting, text files render as Markdown.
205
254
  - **Syntax highlighting** — Common aliases like `py`, `cpp`, `json`, `toml`, `ps1`, `dockerfile`.
206
255
  - **LaTeX support** — Inline, block, and `latex` / `tex` code blocks rendered as formulas.
207
256
  - **Navigation** — TOC sidebar, active section tracking, heading jumps, and search.
package/leaf CHANGED
Binary file
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@rivolink/leaf-linux-arm64",
3
- "version": "1.20.1",
3
+ "version": "1.21.0",
4
4
  "description": "leaf binary for linux arm64",
5
5
  "os": [
6
6
  "linux"