Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Suggested improvement for sticky-note
- X-seq: zsh-workers 48768
- From: vapnik spaknik <vapniks@xxxxxxxxx>
- To: Zsh Hackers List <zsh-workers@xxxxxxx>
- Subject: Suggested improvement for sticky-note
- Date: Sat, 1 May 2021 19:18:43 +0000 (UTC)
- Archived-at: <https://zsh.org/workers/48768>
- List-id: <zsh-workers.zsh.org>
- References: <1185563186.165566.1619896723304.ref@mail.yahoo.com>
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
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"
Messages sorted by:
Reverse Date,
Date,
Thread,
Author