Reputation: 392
man -k . | fzf -e --tiebreak=begin | awk '{print $1}' | xargs man -Tpdf | zathura -
# searches for a man page and then outputs it as pdf to zathura
This is the command , it works great , other than zathura starting blank while it waits for stdin to give it input. It is really annoying having to change focus from zathura back to the terminal and then back to zathura.
I am fairly new to scripting so i though that there might be a way around this that i just don't know about.
Thanks anyway!
Upvotes: 0
Views: 122
Reputation: 392
I "solved" my problem , I redirected output to my /tmp/ directory and then had zathura read from there . I also put it all in a script .
#!/bin/sh
d=$(date +'%M_%S');
man -k . | fzf -e --tiebreak=begin | awk '{print $1}' | xargs man -Tpdf > /tmp/man_${d};
zathura /tmp/man_${d} 2> /dev/null &
Upvotes: 1