9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: ori@eigenstate.org
To: 9fans@9fans.net
Subject: Re: [9fans] Can acme directory listings be customized through plumber?
Date: Sat, 18 Sep 2021 11:00:34 -0400	[thread overview]
Message-ID: <063E17E716CCC3D4B1E00157E16D0FED@eigenstate.org> (raw)
In-Reply-To: <CAOk9ws1+hEKqC2aSAxv9LHEpHRR1xyC5MYAdEaVR=uebgkrPqQ@mail.gmail.com>

Quoth Chris McGee <newton688@gmail.com>:
> Hi All,
> 
> I heard somewhere that it should be possible to customize directory
> listings in acme via some plumber rules. I'm hoping to append the contents
> of a file if it exists in a particular directory below the listing.
> 
> I'm new to plumber and curious if this is possible. If so, where might I
> look to learn more about how to put this together? If not, then I might
> have a look at how to program this behaviour into my own copy of acme.

I don't believe that the kind of customization you want
can be done via the plumber.

I'd probably write my own "acme app" for this, similar
to acme mail, which I rewrote recently:

        http://git.9front.org/plan9front/plan9front/HEAD/sys/src/cmd/upas/Mail/f.html

(Feel free to steal win.c, which provides a reasonable
API for interacting with acme events)


------------------------------------------
9fans: 9fans
Permalink: https://9fans.topicbox.com/groups/9fans/T93887e657a7d3332-Mc47f9a7ff5608c0427888494
Delivery options: https://9fans.topicbox.com/groups/9fans/subscription

      reply	other threads:[~2021-09-18 15:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2021-09-15 16:13 Chris McGee
2021-09-18 15:00 ` ori [this message]

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=063E17E716CCC3D4B1E00157E16D0FED@eigenstate.org \
    --to=ori@eigenstate.org \
    --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).