Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: using tag-order with _pids



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.



Messages sorted by: Reverse Date, Date, Thread, Author