Re: [dev] Auto-preview man pages

2016-01-08 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:53:56AM -0500, Greg Reagle wrote: > If you use the -r option of entr, then you do get complete and very > satisfying automation when running a GUI. For instance this works great: > echo Readme.md | entr -r sh -c 'mkd2html Readme.md ; netsurf Readme.html' > > For some

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 06:42:21AM +0200, Adrian Grigore wrote: > On Fri, Jan 8, 2016 at 5:05 AM, Greg Reagle wrote: > > echo Readme.md | entr sh -c 'markdown Readme.md | w3m -T text/html' > > > > Still not ideal, because you have to quit from w3m manually. If you use > > -dump with w3m you don

Re: [dev] Auto-preview man pages

2016-01-07 Thread Adrian Grigore
On Fri, Jan 8, 2016 at 5:05 AM, Greg Reagle wrote: > echo Readme.md | entr sh -c 'markdown Readme.md | w3m -T text/html' > > Still not ideal, because you have to quit from w3m manually. If you use > -dump with w3m you don't have to quit, but you lose formatting and other > goodies. > This is

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Thu, Jan 07, 2016 at 09:20:06PM +0100, Roberto E. Vargas Caballero wrote: > On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > > I find it a real pain to work with things like man page source and markdown > > source and so forth because of the extra steps of making the output/object

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:31:34AM +0200, Adrian Grigore wrote: > On Thu, Jan 7, 2016 at 8:56 PM, Greg Reagle wrote: > > I find it a real pain to work with things like man page source and markdown > > source and so forth because of the extra steps of making the output/object > > format. > > I hav

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > Here is what I figured out using entr: I run > ls address.yaml | entr make address.pdf > which means I don't have to type make, and I run > ls address.pdf | entr -r mupdf /_ > which means I don't have to type mupdf. > > Actually,

Re: [dev] Auto-preview man pages

2016-01-07 Thread Greg Reagle
On Fri, Jan 08, 2016 at 12:50:14AM +0100, hiro wrote: > i don't need preview any more. i just write the content and expect it > to show up right. Perhaps one day I will reach your level of enlightenment. :>

Re: [dev] Auto-preview man pages

2016-01-07 Thread hiro
i don't need preview any more. i just write the content and expect it to show up right.

Re: [dev] Auto-preview man pages

2016-01-07 Thread Adrian Grigore
On Thu, Jan 7, 2016 at 8:56 PM, Greg Reagle wrote: > I find it a real pain to work with things like man page source and markdown > source and so forth because of the extra steps of making the output/object > format. > I have yet to find a solution for markdown. I would really prefer something wit

Re: [dev] Auto-preview man pages

2016-01-07 Thread Roberto E. Vargas Caballero
On Thu, Jan 07, 2016 at 01:56:13PM -0500, Greg Reagle wrote: > I find it a real pain to work with things like man page source and markdown > source and so forth because of the extra steps of making the output/object > format. > You can use something like [0], or use gv, which automatically reload

[dev] Auto-preview man pages

2016-01-06 Thread Adrian Grigore
Don't know if it's worth posting, but this is a comfortable way for me to write man pages: ls *.1 | entr -cd sh -c 'MANPAGER="less -FX" man -l $0' /_ entr is http://entrproject.org/ -- Thanks, Adi