From: vapnik spaknik <vapniks@yahoo.com>
To: Zsh Hackers List <zsh-workers@zsh.org>
Subject: Suggested improvement for sticky-note
Date: Sat, 1 May 2021 19:18:43 +0000 (UTC) [thread overview]
Message-ID: <1185563186.165566.1619896723304@mail.yahoo.com> (raw)
In-Reply-To: <1185563186.165566.1619896723304.ref@mail.yahoo.com>
[-- Attachment #1: Type: text/plain, Size: 231 bytes --]
Hi,
it's fun & useful to be able to display sticky notes in blinking text, or different colours, to make them stand out or colour code them.
The attached diff implements that feature by adding the -b option to print.
Joe
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #2: sticky-note.diff --]
[-- Type: text/x-patch, Size: 427 bytes --]
99c99
< fc -l "${@:--1}" | while read -r sticky; do print -- "$sticky"; done
---
> fc -l "${@:--1}" | while read -r sticky; do print -b -- "$sticky"; done
123c123
< fc -f "$@" | while read -r sticky; do print -- "$sticky"; done
---
> fc -f "$@" | while read -r sticky; do print -b -- "$sticky"; done
132c132
< [[ -n "$sticky" ]] && print -s -- "$sticky"
---
> [[ -n "$sticky" ]] && print -b -s -- "$sticky"
next parent reply other threads:[~2021-05-01 19:19 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
[not found] <1185563186.165566.1619896723304.ref@mail.yahoo.com>
2021-05-01 19:18 ` vapnik spaknik [this message]
2021-05-02 23:57 ` Bart Schaefer
2021-05-04 2:06 ` vapnik spaknik
2021-05-09 20:50 ` Bart Schaefer
2021-05-11 10:18 ` Mikael Magnusson
2021-05-14 23:40 ` Termcap and boldface (was sticky-note) Bart Schaefer
2021-05-11 12:37 ` Suggested improvement for sticky-note vapnik spaknik
2023-11-12 21:10 ` Bart Schaefer
2023-11-19 5:25 ` 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=1185563186.165566.1619896723304@mail.yahoo.com \
--to=vapniks@yahoo.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).