zsh-workers
 help / color / mirror / code / Atom feed
From: Bart Schaefer <schaefer@brasslantern.com>
To: Zsh workers <zsh-workers@zsh.org>
Subject: Re: using tag-order with _pids
Date: Tue, 22 Jul 2014 20:58:05 -0700	[thread overview]
Message-ID: <140722205805.ZM23154@torch.brasslantern.com> (raw)
In-Reply-To: <18723.1406025098@thecus.kiddle.eu>

On Jul 22, 12:31pm, Oliver Kiddle wrote:
} Subject: using tag-order with _pids
}
} The patch below moves the use of _call_program by _pids to inside the
} _tags loop.

So ... before, there was no _tags loop at all.

} Much of the patch is just reindentation. The purpose of this
} is to allow separate processes to be grouped so _next_tags can expand
} the list to include a wider range of processes.

Maybe another way to do this is to keep a single _call_program outside
the new _tags loop, and use a new zstyle inside the loop to partition
the "ps" output by pattern matching?

Since _pids is already "parsing" the ps header line to figure out what
column the actual PID is in, the style could potentially specify that
the pattern had to match in a particular column.


  reply	other threads:[~2014-07-23  3:58 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2014-07-22 10:31 Oliver Kiddle
2014-07-23  3:58 ` Bart Schaefer [this message]
2014-07-31 16:30   ` Oliver Kiddle
2014-08-04 17:47     ` Bart Schaefer

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=140722205805.ZM23154@torch.brasslantern.com \
    --to=schaefer@brasslantern.com \
    --cc=zsh-workers@zsh.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.
Code repositories for project(s) associated with this public inbox

	https://git.vuxu.org/mirror/zsh/

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).