Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: One other alternative history search widget
- X-seq: zsh-users 20655
- From: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- To: zsh-users@xxxxxxx
- Subject: Re: One other alternative history search widget
- Date: Sun, 27 Sep 2015 09:08:27 +0200
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=frjBVrLZpgF653mi56lrMmc5Z7PTtDNIL1CjNEjf0DU=; b=XFm3Yw8B5MM0ygKZeaSuC+npNCBJaLPzqTi1U1XcmdSWqh299nYa+wrprOLOb7/kf6 Ph4U6U+ipCQHaTavY19O7yOVT/d8f5p8SHvznyv1O+Wt1byg5VHvDQymSzMOHF1uRUnh K1EREx3mFaLyJ38eFX5Pfu3qPbsP5pcbE7p4/5QrbebnV7b7onfPtgNeWUbnoaY2iSwX jT4AyhUymlqgTckNEsa6g/eVv5SXk9Vbgllr7+PjM2Yce/+teVa7lLtgjPGAu+cF4Sgo sT+6lYezp9VAA3o+AVls4V06DCQzQ3V41JevlaYf3GFJXqNaL3nbPp37XfYyoQ4vFwMZ MJLA==
- In-reply-to: <150926164544.ZM18002@torch.brasslantern.com>
- List-help: <mailto:zsh-users-help@zsh.org>
- List-id: Zsh Users List <zsh-users.zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- Mailing-list: contact zsh-users-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVCW0EmwR3Ovwgtjvrk5mztk+vgPDtwibodtimzZAk0JRg@mail.gmail.com> <150926164544.ZM18002@torch.brasslantern.com>
On 27 September 2015 at 01:45, Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
> On Sep 26, 4:07pm, Sebastian Gniazdowski wrote:
> }
> } One problem is that it puts multi line history entries into one line,
> } introducing '\n' where the newlines should be.
>
> Is that a problem with "history -nr" output, or is it a problem with
> the representation necessary to allow curses-based list selection?
It's rather difficult to implement multi-line entries in the curses
list. It doesn't support them right now, so the format gave by history
call is a plus. One quick idea is to keep array ENTRY_MULTIPLICITY
which would hold count of "\n"-s for each list entry. I would
implement that in separate n-list-multi-line. Line-wise n-list is fine
in the line-wise Unix world, but like in the history case, there are
situations where that isn't fully enough.
Best regards,
Sebastian Gniazdowski
Messages sorted by:
Reverse Date,
Date,
Thread,
Author