Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: [RFC][PATCH] Add change-directory() widget function
- X-seq: zsh-workers 48640
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Marlon Richert <marlon.richert@xxxxxxxxx>
- Cc: Zsh hackers list <zsh-workers@xxxxxxx>
- Subject: Re: [RFC][PATCH] Add change-directory() widget function
- Date: Tue, 20 Apr 2021 20:46:11 -0700
- Archived-at: <https://zsh.org/workers/48640>
- In-reply-to: <CAH+w=7bQLq43JChP7PmaqT_wHMwgs4Nk_-0grrtQXEhQJcfrbA@mail.gmail.com>
- List-id: <zsh-workers.zsh.org>
- References: <95CDA630-4EE5-4003-8D9C-CCCB9A47F109@gmail.com> <CAH+w=7bpkYktd4UN5DtUS45MMNdWYr7c-OG7DHOX21QXG4LMUA@mail.gmail.com> <4D587C0C-EB5F-4A58-A0AE-D45E43F432CD@gmail.com> <CAH+w=7bQLq43JChP7PmaqT_wHMwgs4Nk_-0grrtQXEhQJcfrbA@mail.gmail.com>
On Tue, Apr 20, 2021 at 2:32 PM Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx> wrote:
>
> [[ -n "$PREBUFFER$BUFFER" ]] && zle push-input
Oh, I missed this:
> On Tue, Apr 20, 2021 at 1:13 PM Marlon Richert <marlon.richert@xxxxxxxxx> wrote:
> > @@ -0,0 +1,29 @@
> > +zle .push-line-or-edit
That's still wrong, because in the event there's a PS2 prompt, you'll
never get past this line. You need .push-input here. My suggested
test for $PREBUFFER is probably not actually needed.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author