@rivolink/leaf-win32-x64 1.21.0 → 1.21.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 +11 -29
- package/leaf.exe +0 -0
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -11,7 +11,7 @@
|
|
|
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 <img alt="GitHub Downloads (all assets, all releases)" src="https://img.shields.io/github/downloads/RivoLink/leaf/total?color=5fc894" >
|
|
15
15
|
|
|
16
16
|
Install the latest published binary.
|
|
17
17
|
|
|
@@ -67,34 +67,6 @@ npm:
|
|
|
67
67
|
npm update -g @rivolink/leaf
|
|
68
68
|
```
|
|
69
69
|
|
|
70
|
-
## Build
|
|
71
|
-
|
|
72
|
-
Clone the repository:
|
|
73
|
-
|
|
74
|
-
```bash
|
|
75
|
-
git clone https://github.com/RivoLink/leaf.git
|
|
76
|
-
cd leaf
|
|
77
|
-
```
|
|
78
|
-
|
|
79
|
-
Build the release binary locally:
|
|
80
|
-
|
|
81
|
-
```bash
|
|
82
|
-
cargo build --release
|
|
83
|
-
```
|
|
84
|
-
|
|
85
|
-
Create a local bin directory if needed and symlink `leaf` into it:
|
|
86
|
-
|
|
87
|
-
```bash
|
|
88
|
-
mkdir -p ~/.local/bin
|
|
89
|
-
ln -sf "$(pwd)/target/release/leaf" ~/.local/bin/leaf
|
|
90
|
-
```
|
|
91
|
-
|
|
92
|
-
If `~/.local/bin` is not already on your `PATH`, add it to `~/.bashrc` or `~/.zshrc`:
|
|
93
|
-
|
|
94
|
-
```bash
|
|
95
|
-
export PATH="$HOME/.local/bin:$PATH"
|
|
96
|
-
```
|
|
97
|
-
|
|
98
70
|
## Usage
|
|
99
71
|
|
|
100
72
|
```bash
|
|
@@ -127,6 +99,16 @@ claude "explain Rust lifetimes" | leaf
|
|
|
127
99
|
cat TESTING.md | leaf
|
|
128
100
|
```
|
|
129
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
|
+
|
|
130
112
|
## Inline Mode
|
|
131
113
|
|
|
132
114
|
Render Markdown directly to **stdout** without the interactive TUI:
|
package/leaf.exe
CHANGED
|
Binary file
|