summaryrefslogtreecommitdiff
path: root/sys/man/1/page
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2013-12-21 18:04:14 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2013-12-21 18:04:14 +0100
commit48d2f14f803354951c09e1ff04aeab4bed16bf38 (patch)
tree3e0d8dcd4d70e4e7a03ceef913e717e6b92aeec9 /sys/man/1/page
parent803bc88a5f3f5835bc57fdeb8f2f96c9a8ce5ab3 (diff)
page: implement bookmarks (thanks trav_ for starting it)
add new functions pageaddr() that returns a string describing the page to be loaded. it is in the form of: /path/to/file!pagename!subpage!.... one can jump to such a page by calling trywalk(name, addr) where name and addr get concatinated with ! to form a page address and then the currently loaded pages are walked up to the nearest page which is then returned. (or nil when not found). the remaining address will be set in the global pagewalk variable. once pages get loaded (asynchronously), pagewalk1() gets called again on addpage() and continues the walking up to the last page. new program flag -j <addr> was added to jump to a page on startup. page address (without filename) can also be supplied in plumb message with the "addr" attribute.
Diffstat (limited to 'sys/man/1/page')
-rw-r--r--sys/man/1/page22
1 files changed, 18 insertions, 4 deletions
diff --git a/sys/man/1/page b/sys/man/1/page
index 73c280f7c..828b28316 100644
--- a/sys/man/1/page
+++ b/sys/man/1/page
@@ -9,12 +9,13 @@ files
.B page
[
.B -abirPRvVw
-]
-[
+] [
.B -p
.I ppi
-]
-[
+] [
+.B -j
+.I addr
+] [
.IR file ...
]
.SH DESCRIPTION
@@ -96,6 +97,12 @@ to not load any graphics files nor to read
from standard input but rather to listen
for ones to load from the plumbing channel.
.PP
+The
+.B -j
+option with a page address
+.I addr
+jumps to the specified page on startup.
+.PP
Pressing and holding button 1 permits panning about the page.
.PP
Button 2 raises a menu of operations on the current image or the
@@ -126,6 +133,9 @@ Displays the next page.
.B Prev
Displays the previous page.
.TP
+.B Snarf
+Writes the current page address to the snarf buffer.
+.TP
.B Zerox
Displays the current image in a new page window.
Useful for selecting important pages from large documents.
@@ -179,6 +189,10 @@ page /usr/inferno/icons/*.bit
Browse the Inferno bitmap library.
.TP
.L
+page -j /sys/doc/troff.pdf!7 /sys/doc/troff.pdf
+Jump to page 7 in the troff manual.
+.TP
+.L
man -t page | page -w
Preview this manual in a new window.
.SH "SEE ALSO