|
@@ -224,6 +224,8 @@ function quick-look() {
|
|
}
|
|
}
|
|
|
|
|
|
function man-preview() {
|
|
function man-preview() {
|
|
|
|
+ [[ $# -eq 0 ]] && >&2 echo "Usage: $0 command1 [command2 ...]" && return 1
|
|
|
|
+
|
|
local page
|
|
local page
|
|
for page in "${(@f)"$(man -w $@)"}"; do
|
|
for page in "${(@f)"$(man -w $@)"}"; do
|
|
command mandoc -Tpdf $page | open -f -a Preview
|
|
command mandoc -Tpdf $page | open -f -a Preview
|