@rivolink/leaf-darwin-x64 1.24.0 → 1.24.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 +42 -39
- package/leaf +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -121,8 +121,8 @@ leaf --inline ansi:60 README.md
|
|
|
121
121
|
cat README.md | leaf --inline
|
|
122
122
|
|
|
123
123
|
# Use as a fzf preview
|
|
124
|
-
|
|
125
|
-
|
|
124
|
+
fzf --preview 'leaf --inline ansi {}'
|
|
125
|
+
fzf --preview 'leaf --inline ansi:$FZF_PREVIEW_COLUMNS {}'
|
|
126
126
|
```
|
|
127
127
|
|
|
128
128
|
## Shell Completions
|
|
@@ -220,45 +220,40 @@ See [`gruvbox.toml`](gruvbox.toml) for a complete example with all available col
|
|
|
220
220
|
|
|
221
221
|
## Keybindings
|
|
222
222
|
|
|
223
|
-
| Key | Action |
|
|
224
|
-
|
|
225
|
-
| `j` / `↓` | Scroll down |
|
|
226
|
-
| `k` / `↑` | Scroll up |
|
|
227
|
-
| `d` / PgDn | Page down (20 lines) |
|
|
228
|
-
| `u` / PgUp | Page up (20 lines) |
|
|
229
|
-
| `g` / Home | Top |
|
|
230
|
-
| `G` / End | Bottom |
|
|
231
|
-
| `
|
|
232
|
-
| `
|
|
233
|
-
| `
|
|
234
|
-
| `
|
|
235
|
-
| `Shift+
|
|
236
|
-
| `Shift+P` | Open file browser |
|
|
237
|
-
| `Ctrl+E` | Open in editor |
|
|
238
|
-
| `Ctrl+L` | Go to line |
|
|
239
|
-
| `Ctrl+P` | Open fuzzy picker |
|
|
240
|
-
| `Ctrl+F` / `/` | Find |
|
|
241
|
-
| `Ctrl+Click` | Open link |
|
|
242
|
-
| `Dbl-Click` | Copy link |
|
|
243
|
-
| `n` / `N` | Next / prev match |
|
|
244
|
-
| `?` | Show help popup |
|
|
245
|
-
| `r` | Force reload (watch mode) |
|
|
246
|
-
| `q` | Quit |
|
|
223
|
+
| Key | Action | Key | Action |
|
|
224
|
+
|---|---|---|---|
|
|
225
|
+
| `j` / `↓` | Scroll down | `?` | Show help popup |
|
|
226
|
+
| `k` / `↑` | Scroll up | `t` | Toggle TOC sidebar |
|
|
227
|
+
| `d` / PgDn | Page down (20 lines) | `Shift+L` | Toggle line numbers |
|
|
228
|
+
| `u` / PgUp | Page up (20 lines) | `Shift+T` | Open theme picker |
|
|
229
|
+
| `g` / Home | Top | `Shift+E` | Open editor picker |
|
|
230
|
+
| `G` / End | Bottom | `Shift+P` | Open file browser |
|
|
231
|
+
| `Ctrl+L` | Go to line | `Ctrl+P` | Open fuzzy picker |
|
|
232
|
+
| `Ctrl+F` / `/` | Find | `Ctrl+E` | Open in editor |
|
|
233
|
+
| `n` / `N` | Next / prev match | `Ctrl+Click` | Open link |
|
|
234
|
+
| `r` | Force reload (watch mode) | `Dbl-Click` | Copy link |
|
|
235
|
+
| `q` | Quit | `Shift+Sel` | Select text |
|
|
247
236
|
|
|
248
237
|
## Features
|
|
249
238
|
|
|
250
|
-
- **Live preview**
|
|
251
|
-
- **File picker**
|
|
252
|
-
- **Editor integration**
|
|
253
|
-
- **Frontmatter support**
|
|
254
|
-
- **Rich Markdown rendering**
|
|
255
|
-
- **
|
|
256
|
-
- **
|
|
257
|
-
- **
|
|
258
|
-
- **
|
|
259
|
-
- **
|
|
260
|
-
- **
|
|
261
|
-
- **
|
|
239
|
+
- **Live preview** : *Watch mode with automatic reload and visual feedback*.
|
|
240
|
+
- **File picker** : *Fuzzy Markdown picker, directory browser, and watch after selection*.
|
|
241
|
+
- **Editor integration** : *Open the current file in your preferred editor*.
|
|
242
|
+
- **Frontmatter support** : *YAML frontmatter rendered as a table (horizontal or vertical based on key count)*.
|
|
243
|
+
- **Rich Markdown rendering** : *Tables, lists, blockquotes, rules, bold, italic, and strikethrough*.
|
|
244
|
+
- **GitHub extras** : *Alert callouts, task list checkboxes, and `==mark==` text highlighting*.
|
|
245
|
+
- **Extra file types** : *Open any file; code files get syntax highlighting, text files render as Markdown*.
|
|
246
|
+
- **Syntax highlighting** : *Common aliases like `py`, `cpp`, `json`, `toml`, `ps1`, `dockerfile`*.
|
|
247
|
+
- **Line numbers** : *Toggle display with `Shift+L`, jump to a line with `Ctrl+L`*.
|
|
248
|
+
- **LaTeX support** : *Inline, block, and `latex` / `tex` code blocks rendered as formulas*.
|
|
249
|
+
- **Mermaid diagrams** : *`mermaid` code blocks rendered as ASCII diagrams*.
|
|
250
|
+
- **Clickable links** : *`Ctrl+Click` to open, double-click to copy, hover feedback*.
|
|
251
|
+
- **Navigation** : *TOC sidebar, active section tracking, heading jumps, and search*.
|
|
252
|
+
- **Terminal UX** : *Theme picker, help popup, file path popup, mouse and keyboard support*.
|
|
253
|
+
- **Custom themes** : *TOML theme files inheriting from built-in presets with color overrides*.
|
|
254
|
+
- **Inline mode** : *Render to stdout with `--inline` for pipes and fzf previews*.
|
|
255
|
+
- **Shell completions** : *Tab completion for bash, zsh, fish, and PowerShell via `leaf --auto-complete`*.
|
|
256
|
+
- **CLI friendly** : *stdin support and `leaf --update` with SHA256 verification*.
|
|
262
257
|
|
|
263
258
|
## Typical AI Workflow
|
|
264
259
|
|
|
@@ -294,6 +289,14 @@ Close any terminal session still running `leaf`, then rerun the PowerShell insta
|
|
|
294
289
|
irm https://raw.githubusercontent.com/RivoLink/leaf/main/scripts/install.ps1 | iex
|
|
295
290
|
```
|
|
296
291
|
|
|
292
|
+
### Windows: auto-complete execution policy error
|
|
293
|
+
|
|
294
|
+
If PowerShell reports that running scripts is disabled on this system after `leaf --auto-complete`, allow local scripts and restart PowerShell:
|
|
295
|
+
|
|
296
|
+
```powershell
|
|
297
|
+
Set-ExecutionPolicy RemoteSigned -Scope CurrentUser
|
|
298
|
+
```
|
|
299
|
+
|
|
297
300
|
## Uninstall
|
|
298
301
|
|
|
299
302
|
**macOS / Linux / Android / Termux:**
|
|
@@ -318,7 +321,7 @@ npm uninstall -g @rivolink/leaf
|
|
|
318
321
|
|
|
319
322
|
Thanks to all contributors.
|
|
320
323
|
|
|
321
|
-

|
|
322
325
|
|
|
323
326
|
## Support
|
|
324
327
|
|
package/leaf
CHANGED
|
Binary file
|