Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Could this function (zaccu-process-buffer) be added?
- X-seq: zsh-workers 39220
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Could this function (zaccu-process-buffer) be added?
- Date: Wed, 7 Sep 2016 12:50:03 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:from:date:message-id:subject:to; bh=piV+fnIWVfGyTKzP24/lHri7m3H/ujrH5gEHr8TwISo=; b=PIL1WKbzgxJqBa8mbpVyMl6lyzo1cHIMZMj4AbACZMq8LdxSCoAVwf1P7XL0g6VR4l Xs7VJCrBS1n9wT6dkQZrLqCVxuMdlPsG1015S8X0v6oQKTq382jW6Wd19YiViOEdYKqc ToAy9TM/q/iUXeDLKPHjSAOZNN44y51+RI2Yis8G6TqJJgUVGfQKKyORwNYwijTcakh2 LF8H8hSB156rdCU8PHh/Ckcpxw6KMQRm9JDUePquInuzcUggm0174Krlg8VMF5KeIdYG ojVOnxqvJX+56djbd6o6drxPkj+Ei3pVHDD9AF+0uens+QPQL2sWhecxKsovn8nlH0LJ KyIg==
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
Hello,
https://github.com/psprint/accumulator/blob/master/zaccu-process-buffer
I use this function in multiple projects, e.g. here it allows to split
every line in displayed text and preserve spaces:
https://asciinema.org/a/8k8v5ni5lnnpoc3z5jzl6jgav
I think it provides with precious data. Allows to keep spaces, to address
words via indexes, carefully selects active word, and also splits it in
half. If one would want to use bare (z) flag to obtain some of this he
would have to write control-rich and careful-indexing-rich code, rather a
headache.
I would change namespace and send to ml. One thing – it doesn't deal with
following, but not a problem for current Zsh:
http://www.zsh.org/mla/workers/2015/msg02570.html
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author