@rivolink/leaf-linux-arm64 1.21.2 → 1.22.1

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 +38 -25
  2. package/leaf +0 -0
  3. package/package.json +1 -1
package/README.md CHANGED
@@ -11,29 +11,29 @@
11
11
  <sub>See more screenshots in the <a href="demo/README.md">features</a> demo</sub>
12
12
  </p>
13
13
 
14
- ## Install <img alt="GitHub Downloads (all assets, all releases)" src="https://img.shields.io/github/downloads/RivoLink/leaf/total?color=5fc894" >
14
+ ## Install
15
15
 
16
16
  Install the latest published binary.
17
17
 
18
- macOS / Linux / Android / Termux:
18
+ **macOS / Linux / Android / Termux:**
19
19
 
20
20
  ```bash
21
21
  curl -fsSL https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.sh | sh
22
22
  ```
23
23
 
24
- Windows:
24
+ **Windows:**
25
25
 
26
26
  ```powershell
27
27
  irm https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.ps1 | iex
28
28
  ```
29
29
 
30
- npm:
30
+ **npm:**
31
31
 
32
32
  ```bash
33
33
  npm install -g @rivolink/leaf
34
34
  ```
35
35
 
36
- ArchLinux (AUR):
36
+ **ArchLinux (AUR):**
37
37
 
38
38
  Use an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers), such as `yay`:
39
39
 
@@ -41,7 +41,7 @@ Use an [AUR helper](https://wiki.archlinux.org/title/AUR_helpers), such as `yay`
41
41
  yay -S leaf-markdown-viewer
42
42
  ```
43
43
 
44
- Verify the installation:
44
+ **Verify the installation:**
45
45
 
46
46
  ```bash
47
47
  leaf --version
@@ -51,7 +51,7 @@ leaf --version
51
51
 
52
52
  Update an existing installation to the latest published release.
53
53
 
54
- Self:
54
+ **Self:**
55
55
 
56
56
  ```bash
57
57
  leaf --update
@@ -61,7 +61,7 @@ leaf --update
61
61
 
62
62
  On Windows, if replacing the running `.exe` is blocked by the OS, rerun the PowerShell installer from the install section.
63
63
 
64
- npm:
64
+ **npm:**
65
65
 
66
66
  ```bash
67
67
  npm update -g @rivolink/leaf
@@ -99,16 +99,6 @@ claude "explain Rust lifetimes" | leaf
99
99
  cat TESTING.md | leaf
100
100
  ```
101
101
 
102
- ## Vim Integration
103
- Add the following to your `~/.vimrc` to preview the current Markdown file in a vertical split:
104
-
105
- ```vim
106
- " Preview the current Markdown file in a vertical split using leaf
107
- nnoremap <Leader>md :vertical botright terminal leaf -w %<CR>
108
- ```
109
-
110
- Once added, use `\md` to open a live preview. To switch focus back to the Markdown buffer, press `Ctrl+w,h`.
111
-
112
102
  ## Inline Mode
113
103
 
114
104
  Render Markdown directly to **stdout** without the interactive TUI:
@@ -135,15 +125,35 @@ find . -name '*.md' | fzf --preview 'leaf --inline ansi {}'
135
125
  find . -name '*.md' | fzf --preview 'leaf --inline ansi:$FZF_PREVIEW_COLUMNS {}'
136
126
  ```
137
127
 
128
+ ## Shell Completions
129
+
130
+ Enable Tab completion for all arguments:
131
+
132
+ ```bash
133
+ leaf --auto-complete
134
+ ```
135
+
136
+ Supports **bash**, **zsh**, **fish**, and **PowerShell**. Restart your shell to activate.
137
+
138
+ ## Vim Integration
139
+ Add the following to your `~/.vimrc` to preview the current Markdown file in a vertical split:
140
+
141
+ ```vim
142
+ " Preview the current Markdown file in a vertical split using leaf
143
+ nnoremap <Leader>md :vertical botright terminal leaf -w %<CR>
144
+ ```
145
+
146
+ Once added, use `\md` to open a live preview. To switch focus back to the Markdown buffer, press `Ctrl+w,h`.
147
+
138
148
  ## Configuration
139
149
 
140
- Set default values for theme, editor, and watch mode via `config.toml`:
150
+ Set default values for **theme**, **editor**, **watch** mode and **extra** file types via `config.toml`:
141
151
 
142
152
  ```bash
143
153
  leaf --config
144
154
  ```
145
155
 
146
- This opens the configuration file in your editor. If the file does not exist yet, leaf creates it with documented defaults.
156
+ This opens the configuration file in your editor. If the file does not exist yet, **leaf** creates it with documented defaults.
147
157
 
148
158
  ```toml
149
159
  theme = "ocean" # arctic, forest, ocean, solarized-dark, or a custom theme file
@@ -220,6 +230,8 @@ See [`gruvbox.toml`](gruvbox.toml) for a complete example with all available col
220
230
  | `Ctrl+E` | Open in editor |
221
231
  | `Ctrl+P` | Open fuzzy picker |
222
232
  | `Ctrl+F` / `/` | Find |
233
+ | `Ctrl+Click` | Open link |
234
+ | `Dbl-Click` | Copy link |
223
235
  | `n` / `N` | Next / prev match |
224
236
  | `?` | Show help popup |
225
237
  | `r` | Force reload (watch mode) |
@@ -237,6 +249,7 @@ See [`gruvbox.toml`](gruvbox.toml) for a complete example with all available col
237
249
  - **LaTeX support** — Inline, block, and `latex` / `tex` code blocks rendered as formulas.
238
250
  - **Navigation** — TOC sidebar, active section tracking, heading jumps, and search.
239
251
  - **Terminal UX** — Theme picker, help popup, file path popup, mouse and keyboard support.
252
+ - **Shell completions** — Tab completion for bash, zsh, fish, and PowerShell via `leaf --auto-complete`.
240
253
  - **CLI friendly** — stdin support and `leaf --update` with SHA256 verification.
241
254
 
242
255
  ## Typical AI Workflow
@@ -253,7 +266,7 @@ leaf --watch notes.md
253
266
 
254
267
  ### Windows: missing Visual C++ runtime
255
268
 
256
- If `leaf.exe` does not start on Windows and reports a missing MSVC runtime, install the latest supported Microsoft Visual C++ Redistributable from Microsoft Learn:
269
+ If `leaf.exe` does not start on Windows or reports a missing MSVC runtime, install the latest supported Microsoft Visual C++ Redistributable from Microsoft Learn:
257
270
 
258
271
  - https://learn.microsoft.com/fr-fr/cpp/windows/latest-supported-vc-redist?view=msvc-170
259
272
 
@@ -275,19 +288,19 @@ irm https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.ps1 | i
275
288
 
276
289
  ## Uninstall
277
290
 
278
- macOS / Linux / Android / Termux:
291
+ **macOS / Linux / Android / Termux:**
279
292
 
280
293
  ```bash
281
294
  rm -f ~/.local/bin/leaf
282
295
  ```
283
296
 
284
- Windows:
297
+ **Windows:**
285
298
 
286
299
  ```powershell
287
300
  Remove-Item "$env:LOCALAPPDATA\Programs\leaf\leaf.exe" -Force
288
301
  ```
289
302
 
290
- npm:
303
+ **npm:**
291
304
 
292
305
  ```bash
293
306
  npm uninstall -g @rivolink/leaf
@@ -297,7 +310,7 @@ npm uninstall -g @rivolink/leaf
297
310
 
298
311
  Thanks to all contributors.
299
312
 
300
- ![Contributors](https://contrib.rocks/image?repo=RivoLink/leaf&t=717807600)
313
+ ![Contributors](https://stg.contrib.rocks/image?repo=RivoLink/leaf&t=717807600)
301
314
 
302
315
  ## Support
303
316
 
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.21.2",
3
+ "version": "1.22.1",
4
4
  "description": "leaf binary for linux arm64",
5
5
  "os": [
6
6
  "linux"