zsh-workers
 help / color / mirror / Atom feed
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)
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"

       reply	other threads:[~2021-05-01 19:19 UTC|newest]

Thread overview: 7+ 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

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

zsh-workers

This inbox may be cloned and mirrored by anyone:

	git clone --mirror http://inbox.vuxu.org/zsh-workers

	# If you have public-inbox 1.1+ installed, you may
	# initialize and index your mirror using the following commands:
	public-inbox-init -V1 zsh-workers zsh-workers/ http://inbox.vuxu.org/zsh-workers \
		zsh-workers@zsh.org
	public-inbox-index zsh-workers

Example config snippet for mirrors.
Newsgroup available over NNTP:
	nntp://inbox.vuxu.org/vuxu.archive.zsh.workers


code repositories for the project(s) associated with this inbox:

	https://git.vuxu.org/mirror/zsh/

AGPL code for this site: git clone https://public-inbox.org/public-inbox.git