Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: Extend `zed' with status bar, is it possible?
- X-seq: zsh-workers 43716
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Sebastian Gniazdowski <sgniazdowski@xxxxxxxxx>
- Subject: Re: Extend `zed' with status bar, is it possible?
- Date: Sat, 20 Oct 2018 10:35:20 -0700
- Cc: "zsh-workers@xxxxxxx" <zsh-workers@xxxxxxx>
- Dkim-signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20150623.gappssmtp.com; s=20150623; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc; bh=OEEPxz8bmzPZ7uN4YOMQqBkh3MInPCERxhNMzv3VC3g=; b=fKOMmfV6sDPteYiRGrGMVhAYBky58i3pJgOJytoXiqj1TuX1NrIFH0IMNw8PaWO74R qsxlmOJ4WlZ5MuqmYp99zP+1r9Roakj06H5ZOQBQg4Ia1AwRRAJxbSDkZiNbXx/qt6eI qC93Ms2ob/I4vd/P2bfwga9LeAH5GBhYs8aXXPFKjh/MFph2rN7E9o0W0NUTCBbAo9xk n9IJHhtrTZxgPt8F4NNEwOtPMTppdAvjNICmxAvFEmotKjD4r3Z7236C8GGPH6pUJCtF bAFkWqe9a/AUFvqOsa1jYfmfRh29yuC/hmWBAM85Z9+HTtxEofBbvmkzcNP2Y4hGUlTn YwBA==
- In-reply-to: <CAKc7PVBu9Ddg1c0AAAYy8RjdhePcA_LcGj8sL=kns36-QM5f1w@mail.gmail.com>
- List-help: <mailto:zsh-workers-help@zsh.org>
- List-id: Zsh Workers List <zsh-workers.zsh.org>
- List-post: <mailto:zsh-workers@zsh.org>
- List-unsubscribe: <mailto:zsh-workers-unsubscribe@zsh.org>
- Mailing-list: contact zsh-workers-help@xxxxxxx; run by ezmlm
- References: <CAKc7PVBu9Ddg1c0AAAYy8RjdhePcA_LcGj8sL=kns36-QM5f1w@mail.gmail.com>
On Wed, Oct 17, 2018 at 10:10 PM Sebastian Gniazdowski
<sgniazdowski@xxxxxxxxx> wrote:
>
> I'm looking at vared and it seems that there is no way to
> replace/append-to vared's last line (last POSTDISPLAY line?) with some
> custom contents, basically a status bar. Does someone know a way?
Do you mean a status that changes in some way during vared execution,
like showing the line/column of the cursor position or similar?
If all you want is to set POSTDISPLAY on entry, you can do it by
passing a line-init widget to "vared -i ...". However, POSTDISPLAY
only appears after the bottom of the entire multi-line buffer, so if
you're editing something that fills more than one screen you only see
it on the last page.
I was going to suggest using "vared -r" to set the right prompt, but
that doesn't work correctly either; it's visible only at the top of
the first page and then only the first time it might appear, it never
gets redrawn as you scroll up and down. And if you set the "vared -p"
prompt to something that contains a newline, everything to the left of
the newline eventually disappears if you scroll to a second screen and
back. Seems that the only things handled correctly are PREDISPLAY and
POSTDISPLAY.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author