Zsh Mailing List Archive
Messages sorted by: Reverse Date, Date, Thread, Author

Re: Suggested improvement for sticky-note



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