From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1249 invoked by alias); 7 Sep 2016 12:46:10 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: X-Seq: 39220 Received: (qmail 28445 invoked from network); 7 Sep 2016 12:46:10 -0000 X-Qmail-Scanner-Diagnostics: from mail-qt0-f179.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.216.179):SA:0(0.0/5.0):. Processed in 0.396491 secs); 07 Sep 2016 12:46:10 -0000 X-Spam-Checker-Version: SpamAssassin 3.4.1 (2015-04-28) on f.primenet.com.au X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=FREEMAIL_FROM,HTML_MESSAGE, SPF_PASS,T_DKIM_INVALID autolearn=unavailable autolearn_force=no version=3.4.1 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | Received-SPF: pass (ns1.primenet.com.au: SPF record at _netblocks.google.com designates 209.85.216.179 as permitted sender) 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== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:from:date:message-id:subject:to; bh=piV+fnIWVfGyTKzP24/lHri7m3H/ujrH5gEHr8TwISo=; b=ehzOVsAXb2qOL/eCkZRabwtJ1QyWrwN0LSsJCBlHIFad9U6gF6t3kD07iEwqmHAR2O jkZO2tCdtV43UobpoHrC6vDRgPHXa/3OAyPHAM11tFTBYtiNiTsFFr++4SRZh+CjeNK1 r4wBh8AyCsvEURg93ae1EVT1c+MwF3wIwrUI77bTzHYF+IIIz8U+dB4RqEhd599owMET 9iAUIDFcUmlXMLXieEK+D/FphrherKPTJyZGNQV5yxpXJMYXm2xSRn6efMB14qJcduRU 30dxE1fPLEke7TmIszQ7OAj+rwzmy/er4JhM6hk35p+5YQWCYAF39+pmTHKG36SprvLx wiew== X-Gm-Message-State: AE9vXwPhryj87hXt0B+D4dTYO4KqtzxBEU6lwnUwn3L1S1c0y48O46zr34n6nV55rzV6O76VWTI3P4zhg94diQ== X-Received: by 10.200.34.135 with SMTP id f7mr44603592qta.141.1473245423302; Wed, 07 Sep 2016 03:50:23 -0700 (PDT) MIME-Version: 1.0 From: Sebastian Gniazdowski Date: Wed, 7 Sep 2016 12:50:03 +0200 Message-ID: Subject: Could this function (zaccu-process-buffer) be added? To: Zsh hackers list Content-Type: multipart/alternative; boundary=001a113f420c1f7edc053be8ae10 --001a113f420c1f7edc053be8ae10 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable 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 =E2=80=93 it doesn't dea= l with following, but not a problem for current Zsh: http://www.zsh.org/mla/workers/2015/msg02570.html Best regards, Sebastian Gniazdowski --001a113f420c1f7edc053be8ae10--