X-Git-Url: http://git.grml.org/?a=blobdiff_plain;f=manpages%2Fqma.1;fp=manpages%2Fqma.1;h=48fe117b9272cd27a74074bbaa6edd5a2a13ae42;hb=c4b59a2c68a05667806d9c65d5654683fbf1b3da;hp=0000000000000000000000000000000000000000;hpb=b97bd72d96fc4dd40e5ab8cd2a66c1975bc13d2f;p=grml-scripts.git diff --git a/manpages/qma.1 b/manpages/qma.1 new file mode 100644 index 0000000..48fe117 --- /dev/null +++ b/manpages/qma.1 @@ -0,0 +1,59 @@ +.TH FMA 1 +.SH NAME +qma \- quick manual access +.SH SYNOPSIS +.B qma +.RI "[ section ] manualpage [ keyword ]" +.SH DESCRIPTION +This manual page documents briefly the +.B qma +command. +.PP +\fBqma\fP is a script which allows quick and efficient access to manual pages +through using compression via lzop and display of vim. + +qma generates manpages via running 'man ' and storing +the result in a file with the extension txt in directory $HOME/man. Then +lzop is executed for the file and the output is written to a file with the +additional extension lzo. Afterwards the editor vim is executed with +filetype set to man and using on-the-fly decompressing using lzop again. + +So far you did not win any time of course. But if you want to display the +same manpage again the processed manpage already exists in $HOME/man and +can be displayed immediately. If you want to experience the difference +just run 'qma zshall' two times and compare it with 'man zshall' too. + +If you want to jump to a special keyword inside the manpage use it as +last option of the qma commandline. Searching for the keyword is done +case insensitive inside vim. +.SH OPTIONS +qma supports the following options: +.TP +.B \-h, \-\-help +Show summary of options. +.TP +.B \-v, \-\-version +Show version of program. +.TP +.B $MANDIR +If the environment variable MANDIR is set the specified directory is taken +for output files instead of the default directory $HOME/man. +.SH USAGE EXAMPLE +.TP +.B % qma zshall +Display manpage zshall (man zshall). +.TP +.B % qma 1 read +Display manpage read of section 1 (man 1 read). +.TP +.B % qma 2 read +Display manpage read of section 2 (man 2 read). +.TP +.B % qma grml overview +Display manpage grml and jump to keyword "overview". +.SH AUTHOR +qma was written by Michael Prokop based on an idea of +Matthias Kopfermann . +.PP +This manual page was written by Michael Prokop +for the grml project (but may be used by others).