9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Anthony Sorace <a@9srv.net>
To: 9fans <9fans@9fans.net>
Subject: [9fans] Command line read-only wiki client
Date: Fri, 12 Mar 2021 23:57:33 -0800	[thread overview]
Message-ID: <B5316B64-2D07-4DFC-8F50-50D19662FB73@9srv.net> (raw)

I've been using the wiki a lot more recently. Inspired by the wiki in tilde.club, I made a read-only command line client. It's simple: 'wiki -l' lists the pages, 'wiki foo' prints article foo, 'wiki foo bar' looks for an article called "foo_bar", then "foo-bar", then separate "foo" and "bar" articles.

I've got both a Plan 9 and p9p version:
        http://a.9srv.net/src/wiki
        http://a.9srv.net/src/wiki-p9p
Adjust the first line in the latter for your installation.

If you've got a wiki mounted on /mnt/wiki (Plan 9) or `{namespace}/wiki (p9p), it'll use that, so if you talk to multiple wikis that'll work. Otherwise, it relies on "9fs wiki" finding a wiki installation. I use this in 9fs on Plan 9:
        case wiki
                srv -m 'net!p9f.org!wiki' wiki /mnt/wiki 
and this on p9p:
        case wiki
                srv 'net!p9f.org!wiki' wiki



------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T033f756b8ec05b5d-M92ccac8a85a9504f3ae8cab7
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

             reply	other threads:[~2021-03-13  7:58 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-03-13  7:57 Anthony Sorace [this message]
2021-03-16 13:46 ` [9fans] " nydldmcd2

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=B5316B64-2D07-4DFC-8F50-50D19662FB73@9srv.net \
    --to=a@9srv.net \
    --cc=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).