@rivolink/leaf-darwin-x64 1.22.0 → 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.
- package/README.md +28 -26
- package/leaf +0 -0
- 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
|
|
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:
|
|
@@ -143,17 +133,27 @@ Enable Tab completion for all arguments:
|
|
|
143
133
|
leaf --auto-complete
|
|
144
134
|
```
|
|
145
135
|
|
|
146
|
-
Supports bash
|
|
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
147
|
|
|
148
148
|
## Configuration
|
|
149
149
|
|
|
150
|
-
Set default values for theme
|
|
150
|
+
Set default values for **theme**, **editor**, **watch** mode and **extra** file types via `config.toml`:
|
|
151
151
|
|
|
152
152
|
```bash
|
|
153
153
|
leaf --config
|
|
154
154
|
```
|
|
155
155
|
|
|
156
|
-
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.
|
|
157
157
|
|
|
158
158
|
```toml
|
|
159
159
|
theme = "ocean" # arctic, forest, ocean, solarized-dark, or a custom theme file
|
|
@@ -230,6 +230,8 @@ See [`gruvbox.toml`](gruvbox.toml) for a complete example with all available col
|
|
|
230
230
|
| `Ctrl+E` | Open in editor |
|
|
231
231
|
| `Ctrl+P` | Open fuzzy picker |
|
|
232
232
|
| `Ctrl+F` / `/` | Find |
|
|
233
|
+
| `Ctrl+Click` | Open link |
|
|
234
|
+
| `Dbl-Click` | Copy link |
|
|
233
235
|
| `n` / `N` | Next / prev match |
|
|
234
236
|
| `?` | Show help popup |
|
|
235
237
|
| `r` | Force reload (watch mode) |
|
|
@@ -264,7 +266,7 @@ leaf --watch notes.md
|
|
|
264
266
|
|
|
265
267
|
### Windows: missing Visual C++ runtime
|
|
266
268
|
|
|
267
|
-
If `leaf.exe` does not start on Windows
|
|
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:
|
|
268
270
|
|
|
269
271
|
- https://learn.microsoft.com/fr-fr/cpp/windows/latest-supported-vc-redist?view=msvc-170
|
|
270
272
|
|
|
@@ -286,19 +288,19 @@ irm https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.ps1 | i
|
|
|
286
288
|
|
|
287
289
|
## Uninstall
|
|
288
290
|
|
|
289
|
-
macOS / Linux / Android / Termux
|
|
291
|
+
**macOS / Linux / Android / Termux:**
|
|
290
292
|
|
|
291
293
|
```bash
|
|
292
294
|
rm -f ~/.local/bin/leaf
|
|
293
295
|
```
|
|
294
296
|
|
|
295
|
-
Windows
|
|
297
|
+
**Windows:**
|
|
296
298
|
|
|
297
299
|
```powershell
|
|
298
300
|
Remove-Item "$env:LOCALAPPDATA\Programs\leaf\leaf.exe" -Force
|
|
299
301
|
```
|
|
300
302
|
|
|
301
|
-
npm
|
|
303
|
+
**npm:**
|
|
302
304
|
|
|
303
305
|
```bash
|
|
304
306
|
npm uninstall -g @rivolink/leaf
|
|
@@ -308,7 +310,7 @@ npm uninstall -g @rivolink/leaf
|
|
|
308
310
|
|
|
309
311
|
Thanks to all contributors.
|
|
310
312
|
|
|
311
|
-

|
|
313
|
+

|
|
312
314
|
|
|
313
315
|
## Support
|
|
314
316
|
|
package/leaf
CHANGED
|
Binary file
|