9front - general discussion about 9front
 help / color / mirror / Atom feed
* plumb: page bookmarks with relative paths
@ 2019-01-12 18:06 theinicke
  0 siblings, 0 replies; only message in thread
From: theinicke @ 2019-01-12 18:06 UTC (permalink / raw)
  To: 9front

[-- Attachment #1: Type: text/plain, Size: 146 bytes --]

Attached is a diff to make plumbing page bookmarks work with relative paths (like books/guide.pdf!42) in basic plumber rules.

--
Tobias Heinicke

[-- Attachment #2: relbookmarks --]
[-- Type: text/plain, Size: 409 bytes --]

diff -r ac7f3eff2208 sys/lib/plumb/basic
--- a/sys/lib/plumb/basic	Tue Jan 08 13:22:09 2019 +0100
+++ b/sys/lib/plumb/basic	Sat Jan 12 17:16:39 2019 +0100
@@ -56,7 +56,7 @@
 data set	$file
 attr add	addr=$4
 plumb to image
-plumb start page -wij $0 $file
+plumb start page -wij $file!$4 $file
 
 # postscript/pdf/dvi/doc go to page but not over the a plumb port
 # the port is here for reference but is unused

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2019-01-12 18:07 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2019-01-12 18:06 plumb: page bookmarks with relative paths theinicke

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).