From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 7543 invoked from network); 11 May 2021 12:37:39 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 May 2021 12:37:39 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1620736660; b=kEFmzZyeIzQElx7p6c1SYPBegRoB+gFrUSlKBXGmUytTye5tYwniR2i5Vw6Shj7V/0FxOubbEn e6QyodP1oB0eeL7CYAvmGQp028LgEYOus9ymNDgnZgRBNfOuNWXCtUpwDTMX8DI1Q0XW4PwC9Y SFXejI2ZsZhHx2LhPbAvcirQ1sEAYnzrAQ6EQ07IAXdjBBF7LlQOCI0j3KQPFzDqkjuQnfuR0+ 81/tQ4vSs6XMq1RzQVLxejt9QoD15R0KINxQrxzUDi5TOOExYobUsladyjOKqbX2MaGbiAtFt9 gx1zRbmcut3kCJkHC6iiwkffHK1LJir2tB6j5qBBaZPzlw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (sonic308-54.consmr.mail.gq1.yahoo.com) smtp.remote-ip=98.137.68.30; dkim=pass header.d=yahoo.com header.s=s2048 header.a=rsa-sha256; dmarc=pass header.from=yahoo.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20200801; t=1620736660; bh=ohNu9bdSK+5ZqSEVw+TqzdFzEbn5pREnlzKq21gd4dA=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:MIME-Version:Subject: References:In-Reply-To:Message-ID:Cc:To:From:Date:DKIM-Signature: DKIM-Signature; b=B2xaeYt2RePKXRVkEeWkw78tabChHRHhnnavdQdeZL9yM2vOa8BlaIWro0mhsXkMthO23VSyoC /DPhvYEiatb68rQh7Mlu1lx3dYyB9FwULC0dK1MAU7ptQZT30Aq9aj6M+D5ouuSVinfambfptS qjE9jYGzglcorEyy+fon0yuNSphHkuFep8d8k/G3TQ68nUm+YxgsInYOPafTxeKF3r2Ehdr8Cr faWHuGa1yzf/wa/kGPF0yypIGPLCUSr9mhrPz1DljoM/Ou0r2KEQWfagfRXaemJTrcUndh6pTo z0CTRkeH9zR0J2G96bpQewv8r0aVwxXYYsZIVvAo54qEuw==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Subject:References:In-Reply-To:Message-ID:Cc:To: From:Date:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=ohNu9bdSK+5ZqSEVw+TqzdFzEbn5pREnlzKq21gd4dA=; b=jsFqtdWnv/M6u71H0nZS7eNe+6 nVE57GlwdbsK+RUzKlSYO4Ya1Hm8YR+iO9nDSmqJcKcmYsAmOSfloQgeHFiz/AsEpNfP7jzzrBXFN OGZ3sm/7uKTWRKXSxQP/jtfN7k0zV5YqLlva7HsyHDRJndwKo8myvSP2PYEJUK3ULWO6KQjQuUXhP eFWjebfzsnJG+IoGVUo6LhbntAdOEViIdM8qorvLh7z9hfKSCZS2INYhVcEff2AV41sptFJ4we0V8 AyPy3Jj9oWBJyiFerMXxt4SS2fQQMqWXcYhqFT07NgnJTI0vy03+xJNQxpS/6cFI+uv6d6oXoWl2b k4lWEoUQ==; Received: from authenticated user by zero.zsh.org with local id 1lgRdr-0008j2-72; Tue, 11 May 2021 12:37:39 +0000 Authentication-Results: zsh.org; iprev=pass (sonic308-54.consmr.mail.gq1.yahoo.com) smtp.remote-ip=98.137.68.30; dkim=pass header.d=yahoo.com header.s=s2048 header.a=rsa-sha256; dmarc=pass header.from=yahoo.com; arc=none Received: from sonic308-54.consmr.mail.gq1.yahoo.com ([98.137.68.30]:46323) by zero.zsh.org with esmtps (TLS1.2:ECDHE-RSA-AES128-GCM-SHA256:128) id 1lgRdc-0008Ri-IN; Tue, 11 May 2021 12:37:25 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1620736642; bh=ohNu9bdSK+5ZqSEVw+TqzdFzEbn5pREnlzKq21gd4dA=; h=Date:From:To:Cc:In-Reply-To:References:Subject:From:Subject:Reply-To; b=drOFDcvLi96k+YYk9EmGj6ELYbOogRLc84lkABEkhlR+SyWpqkkpBjKEh5TY2enY6y6teN7W8BWbMKDquEHg9rTln1soPLETNhsZh4Rz5RiY0i7XN7H98a8zQxmRwVPiTIiAHxBxLoRUyWAJj1SxZ4/irpZlt3oOtOpLgZMJ0ef7XoWzv9vZVDmSzeZExCK3a8UBeSTD5e5IkDgl31zsZ3W3zsjRMMEojZZtBgFjrFbPxWOumiT4+OYXdZDjzPiqYcv1HTu2QiTKdwR7NJru/smKTzHnt/lv+NGLnbTOux/uJtfAELJ693Z1zk1781Favo1IpiqS4rQVJ9Yfun0kAg== X-SONIC-DKIM-SIGN: v=1; a=rsa-sha256; c=relaxed/relaxed; d=yahoo.com; s=s2048; t=1620736642; bh=c04Y/38X3uPvumN8Vlxgle28hl7G45cIwabIxnlwzEM=; h=X-Sonic-MF:Date:From:To:Subject:From:Subject; b=ekfKTustMrLPa7QHmPqKd0Mh+Jdddt5P8CpqqiDA8QugkQoL7uV7hPQRfw6VI52QRsek2BMQXYyqI8IvJOPu0U767A1F0pnvdzPPXZf8dgmZ3N8klF8R/4Dj9KC38ojpYPweA9v1ApXyMmo/qzl0DaeHaa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PjXkUtM8vvSW2jvfzQoNARN0Nyfp2 KJIyPuPtcNt5AKQrG_6vczp9ZjrN0E921JSQSjxrrcAaJK2uuyIwNc62udjtsRlLtfKbWP5voFyA UICXtyofkxFd1.iSI2aDfP4WOlu7f6gH.yy8KgJgACAJoZP..c_a2jsvMFYfJt5DkRg5u_Nv5Jgj gGNWp.2lka9bJoORCesfnbP2EKjm8RRs5hsfTxDgKa2BMunVhwp58uoqGgqTc0ALhOcVsaJbdVJp 8hbZmcSI_pUwNYkh9RtsCVgO2Bibe_szBRu4hXUuR4vc1vCAHPs3ploV3gza0IaLWGk8.Z07WMaz Wr9UV66emqCHWV2NQhVxyGDtTQ.L50_Ytts.oQuCEjrAfZsgsmV7vVo2_hTshFYnqDJ9n3dDUC9o FqVZo2CbXOR8_2wHvhdquXK1UqKNAn2O0nB6tPtgiSoBXUqUgDYLdskulgHfl4QCL0AJCr0O2lyr AFEZwEILiKhtoVtIAFQ755vC.lKKna28OP9.vthhS3kQZ2UTDY4qmwzTfpg-- X-Sonic-MF: Received: from sonic.gate.mail.ne1.yahoo.com by sonic308.consmr.mail.gq1.yahoo.com with HTTP; Tue, 11 May 2021 12:37:22 +0000 Date: Tue, 11 May 2021 12:37:18 +0000 (UTC) From: vapnik spaknik To: Bart Schaefer Cc: Zsh Hackers List Message-ID: <734416914.95418.1620736638811@mail.yahoo.com> In-Reply-To: References: <1185563186.165566.1619896723304.ref@mail.yahoo.com> <1185563186.165566.1619896723304@mail.yahoo.com> <1293997275.666259.1620093977494@mail.yahoo.com> Subject: Re: Suggested improvement for sticky-note MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable X-Mailer: WebService/1.1.18231 YMailNorrin Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/90.0.4430.72 Safari/537.36 X-Seq: 48817 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: > On Sunday, May 9, 2021, 09:50:18 PM GMT+1, Bart Schaefer wrote: >> On Mon, May 3, 2021 at 7:06 PM vapnik spaknik wrote: >> >> The attached diff (against the original) > ... is still a file with the ".diff" suffix instead of ".txt" ... oops, sorry > ..... > Hardwiring two options for color and blink seems pretty arbitrary > (compare the "escapes" style in my patch that selects among three > variants).=C2=A0 What if someone wants italics or boldface or underlining > instead of blinking? I thought most people would only need to differentiate different categories= of notes (colours), and important ones (blinking), but I guess blinking mi= ght be a bit annoying for some. > It's a bit strange to use $(echoti blink) for "on" but then hardwire > $'\e25m' for "off".=C2=A0 Anyway, $(echoti blink) just spits out an error > on my terminal, which the patch doesn't account for. I thought echoti would be more portable, obviously I was wrong, but couldn'= t find any echoti command to turn off blinking. > Having the note blink while it is being edited is rather > weird/distracting even if you want it to blink when displayed later. > (There's a reason web browsers dropped support for the HTML > tag, but we won't go there.)=C2=A0 Also, during editing the visual change= s > are part of the vared prompt, but then are stored as raw ANSI escapes > in the text of the sticky note itself, which will have odd > side-effects when using history to access previous notes. > This is a mixing of metaphors, so to speak.=C2=A0 Visual changes are in t= he > text but the interpretation of bindkey sequences is done by "print -b" > after the text is read back from the file and is being displayed. > Even so, the raw escapes only work when combined with your -B option, > because if "print -b" is not used, the ASCII 033 are converted to "^" > "[" before being sent to the terminal. > Finally, you've embedded the definition-time theme color in the note > at the point where blink is turned off, so if the theme changes (new > zstyle applied) any notes that had color changes or blink will revert > to the previous theme's coloring.=C2=A0 In fact this makes me aware that = it > doesn't really work to interpret prompt escapes, because (for example) > after %Bbold%b the background color reverts as well and the rest of > the note is no longer yellow. Seems I overlooked a few things when I hacked that up a few days ago. It did cross my mind to use getopts, but I thought it would be better to ke= ep=C2=A0 the code short, and not make too many changes. The patched sticky-note works for my purposes, but if I get some time at so= me=C2=A0 point in the future (can't say when) I will have another look at it, unless= you beat me to it..