docs: new plugin piper.yazi to preview any shell command
This commit is contained in:
@@ -51,6 +51,8 @@ name = "*.md"
|
||||
run = 'piper -- CLICOLOR_FORCE=1 glow -w=$w -s=dark "$1"'
|
||||
```
|
||||
|
||||
Note that there's [a bug in Glow v2.0](https://github.com/charmbracelet/glow/issues/440#issuecomment-2307992634) that causes slight color differences between tty and non-tty environments.
|
||||
|
||||
### Preview directory tree with [`eza`](https://github.com/eza-community/eza)
|
||||
|
||||
```toml
|
||||
|
||||
@@ -45,7 +45,7 @@ function M:peek(job)
|
||||
else
|
||||
lines = lines:gsub("\t", string.rep(" ", rt.preview.tab_size))
|
||||
ya.preview_widgets(job, {
|
||||
ui.Text.parse(lines):area(job.area):wrap(rt.preview.wrap == "yes" and ui.Text.WRAP or ui.Text.WRAP_NO),
|
||||
ui.Text.parse(lines):area(job.area),
|
||||
})
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user