Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Suggested improvement for sticky-note
- X-seq: zsh-workers 52314
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Zsh Hackers List <zsh-workers@xxxxxxx>
- Cc: vapnik spaknik <vapniks@xxxxxxxxx>
- Subject: Re: Suggested improvement for sticky-note
- Date: Sat, 18 Nov 2023 21:25:19 -0800
- Archived-at: <https://zsh.org/workers/52314>
- In-reply-to: <CAH+w=7ZRvCU1Uog_38D=CH7xTGYy1Lnuq4ORR0Oz77psZZAmag@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <1185563186.165566.1619896723304.ref@mail.yahoo.com> <1185563186.165566.1619896723304@mail.yahoo.com> <CAH+w=7YSJwPwsA1D7xyVi_PoCvpVdB0Ng3OBdF+2UfAd2JeRDw@mail.gmail.com> <1293997275.666259.1620093977494@mail.yahoo.com> <CAH+w=7Z0wO_1AgHxhsRLDcActY=YCyp1+1r-w4mJxmKDGhZM9A@mail.gmail.com> <CAH+w=7ZRvCU1Uog_38D=CH7xTGYy1Lnuq4ORR0Oz77psZZAmag@mail.gmail.com>
On Sun, Nov 12, 2023 at 1:10 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> I'm sure there are undiscovered bugs with this, so mess around if interested.
>
> > That also caused me to notice that interrupting
> > sticky-note with a keyboard interrupt (^C) can cause old notes to
> > disappear, so that should be fixed.
I solved this. It turns out that "fc -ap" removes events from the
history file if the enclosing function exits on interrupt. This is
probably a bug of some sort, but easily worked around by addition of
an "always" block that clears the interrupt state.
> Also yet to be fixed is expiring
> lines from the display file when the corresponding lines expire from
> the history.
Fixed this too.
The attached revision also adds a "history-opts" style for changing
the localoptions used e.g. when navigating past notes and rewriting
the stickyfile.
Attachment:
sticky-note
Description: Binary data
Messages sorted by:
Reverse Date,
Date,
Thread,
Author