From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: zsh-workers-return-43717-ml=inbox.vuxu.org@zsh.org X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-1.1 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,MAILING_LIST_MULTI,RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.2 Received: from primenet.com.au (ns1.primenet.com.au [203.24.36.2]) by inbox.vuxu.org (OpenSMTPD) with ESMTP id 23a4921b for ; Sat, 20 Oct 2018 21:41:14 +0000 (UTC) Received: (qmail 27802 invoked by alias); 20 Oct 2018 21:40:58 -0000 Mailing-List: contact zsh-workers-help@zsh.org; run by ezmlm Precedence: bulk X-No-Archive: yes List-Id: Zsh Workers List List-Post: List-Help: List-Unsubscribe: X-Seq: 43717 Received: (qmail 19763 invoked by uid 1010); 20 Oct 2018 21:40:58 -0000 X-Qmail-Scanner-Diagnostics: from mail-ot1-f41.google.com by f.primenet.com.au (envelope-from , uid 7791) with qmail-scanner-2.11 (clamdscan: 0.99.2/21882. spamassassin: 3.4.1. Clear:RC:0(209.85.210.41):SA:0(-1.9/5.0):. Processed in 3.215877 secs); 20 Oct 2018 21:40:58 -0000 X-Envelope-From: sgniazdowski@gmail.com X-Qmail-Scanner-Mime-Attachments: | X-Qmail-Scanner-Zip-Files: | DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=mtXdXjEeMc8MJg5fZmR72AfsQfSRC/1mO/6/NiP/a9I=; b=MuwUrwC+bkyPdNRbxgBw81BIW4YVF8PSvRogiASHgXQfash3RhaRi7wbJJKuetQIrl 1HSAdp5DpIE8vfoqimEAWStB3WCq0COdthTg8B3AHSSWd23wWA95zfxmzUTIL5K/M4fo iLG6IzzHkrJDfIp+PqWqMrzppE8AlZM9woBGkYDtsMeQSEjXuSLgSvouSB7h7EZ2bipA kj/aiDn2KtgDbQ2PDouu612UF3gmRtlboVA+1OvRbYfDo5ExRHPFkBrhL+prgAB+KkSn Q88G6v6iAh0wn54YcD//Ijw/aMec6mOxdeUqfHPW+TTpFa2TdoaIvCs4ti0U5MvGB3L8 Ib8Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=mtXdXjEeMc8MJg5fZmR72AfsQfSRC/1mO/6/NiP/a9I=; b=ErnBl/I5QWZwp0lctQPB1C4VoKN2RGwP60RIVaY9hLNZ7Zt2Ghb3DYgfVRaThHi2QP 0ulHzovkKco1Pqeb63lu+FgJ2GaZcjaZEl/b1b+UWu6iYjhyAXxznO+rYFYajcU8sS/V 5n8jhG8ET1N05SQvOo6xxRez8kWd8rgl6hiAKOdXxFxsmA3GxXC2pMDAyo0VihEfuIuv lvIlrEWb154Q6WvYlBHtFK9ch1VUNeCPgyYjdp8trYYWbExbPTcu6/cazG2kMx30mZ82 rZogySyGrv1bkl2CzfuBneVjrvsk3nN8dZ1E5ZTsT9ozmb8g/ZtnSiPEYJz/+bxdPYqp AyGQ== X-Gm-Message-State: ABuFfoiTezWZQkrUrpPPasLBRykndyVOATRBiKVh+g4W1evaxKTaspMA /g531FHxV4nKm7fCxQNXD2BP87DoZH8soxdYUVA= X-Google-Smtp-Source: ACcGV613CwkXXPjrnD21rLgLm2475EisqJo3IF0HcHJhk70QbsCJlucRhO1CC2+Xqdw4I6ZeIJX8JAgUmcK2h3GefUg= X-Received: by 2002:a9d:3b24:: with SMTP id z33-v6mr18392280otb.126.1540071652407; Sat, 20 Oct 2018 14:40:52 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sat, 20 Oct 2018 23:40:39 +0200 Message-ID: Subject: Re: Extend `zed' with status bar, is it possible? To: Bart Schaefer Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Sat, 20 Oct 2018 at 19:35, Bart Schaefer wro= te: > > On Wed, Oct 17, 2018 at 10:10 PM Sebastian Gniazdowski > 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. Tried it, behaves like described, but also isn't permanent, the added line disappears when going to other page and then back to the last one. > 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. The tmux version would work very well. I know this seams a no-go to use some somewhat large foreign binary project to hack vared, but it's like git using perl for many of its subcommands =E2=80=93 I've read that someone wrote "A machine without perl is essentially broken to me" in this context. Tmux isn't as that much widespread as perl, but is also a basic command commonly available. So it's a reason to be happy that such command can provide /dev/tty* for vared, to open 2 windows, with a status bar in one of them, with e.g. vim mode and current line. I've described use of tmux in other post in this thread. Maybe you could guess what bad happens with stdin/stdout so that tmux cannot start for the second time. -- Sebastian Gniazdowski News: https://twitter.com/ZdharmaI IRC: https://kiwiirc.com/client/chat.freenode.net:+6697/#zplugin Blog: http://zdharma.org