9front - general discussion about 9front
 help / color / mirror / Atom feed
From: noam@pixelhero.dev
To: 9front@9front.org
Subject: Re: [9front] graphics tools
Date: Fri, 25 Nov 2022 16:37:02 -0500	[thread overview]
Message-ID: <4BDA75F7E73DFD81058C168D505DBC6F@pixelhero.dev> (raw)
In-Reply-To: <5B92F9C29AF4BD28334E6EF01A686EED@thinktankworkspaces.com>

Quoth william@thinktankworkspaces.com:
> I would like to have it open in acme and click put or sam and :w or and see it change quickly.

% cat /mnt/acme/log | awk '{ if($2 == "put") system("command goes here") }

You can run that in acme to run arbitrary commands whenever a file is saved. File name is available as $3 in that awk script, so it can also be limited to specific files.

I have hooks to automatically run `go fmt` when a Go file is saved, for instance.


- Noam Preil


  parent reply	other threads:[~2022-11-25 21:38 UTC|newest]

Thread overview: 33+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2022-09-23  0:58 william
2022-09-23  1:06 ` ori
2022-09-23  1:15   ` william
2022-09-23  2:04     ` ori
2022-09-23  2:12       ` william
2022-09-23  2:24         ` Stanley Lieber
2022-09-23  2:38           ` william
2022-09-23  2:44             ` Stanley Lieber
2022-09-23  4:21               ` umbraticus
2022-09-23  6:55                 ` Steve Simon
2022-09-23  7:15                 ` kvik
2022-09-23 21:16               ` william
2022-09-23 21:16               ` william
2022-09-23 21:53                 ` Stanley Lieber
2022-09-23 22:02                   ` william
2022-09-23 22:35                     ` Stanley Lieber
2022-09-25  1:57                     ` sl
2022-09-25  2:37                       ` william
2022-11-25 21:37         ` noam [this message]
2022-11-26  1:15           ` umbraticus
2022-11-27 20:46             ` umbraticus
2022-09-23  1:15   ` william
2022-09-23 20:45   ` Stuart Morrow
2022-09-23 10:54 ` tlaronde
2022-09-23 18:17 ` Csepp
2022-09-23 22:33   ` umbraticus
2022-09-24 18:29     ` Csepp
2022-09-27  9:56       ` umbraticus
2022-09-27 15:43         ` Kurt H Maier
2022-09-27 15:59           ` Sigrid Solveig Haflínudóttir
2022-09-28  9:39             ` tlaronde
2022-09-30  6:39               ` william
2022-09-30  6:39               ` william

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=4BDA75F7E73DFD81058C168D505DBC6F@pixelhero.dev \
    --to=noam@pixelhero.dev \
    --cc=9front@9front.org \
    /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).