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

Re: Extend `zed' with status bar, is it possible?



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