Zsh Mailing List Archive
Messages sorted by:
Reverse Date,
Date,
Thread,
Author
Re: completion within a function
- X-seq: zsh-users 26262
- From: Bart Schaefer <schaefer@xxxxxxxxxxxxxxxx>
- To: Ray Andrews <rayandrews@xxxxxxxxxxx>
- Subject: Re: completion within a function
- Date: Tue, 29 Dec 2020 10:52:59 -0800
- Archived-at: <https://zsh.org/users/26262>
- Archived-at: <http://www.zsh.org/sympa/arcsearch_id/zsh-users/2020-12/CAH%2Bw%3D7bT5GaGvWih%3DA8KCyUe4N6k25VxDLcpPA5C1yGn38Zimg%40mail.gmail.com>
- Authentication-results: zsh.org; iprev=pass (mail-oi1-f182.google.com) smtp.remote-ip=209.85.167.182; dkim=pass header.d=brasslantern-com.20150623.gappssmtp.com header.s=20150623 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none
- Cc: Zsh Users <zsh-users@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=c09Ww9kj9sruN6wbwWApQ+3WvK9/T7pFfugH14eE2Yc=; b=DC1aAI6mYnN5riRKhr81v3SynYMfEWTwR/HBvC0/Oc/lQ9dRBwTepv1G9Qn2GyFECh qjNvx0pt8hWm6fR6/ttj3Lrbr5daXuYE/cYCY0yIN5PRjwg4Tfq6TyxgTlq2oH4a9kcG cgc7kk9TZ6T6PGRNl7GHY8EsdFqzeZKOGRekJv5cr/3RqzIiR/8idt9i1Y7puJcYj7jV xpjcXxBYYC5IRkijPba5+5UHA/NaKthX0PeBYJL+TSTw372589fhUjYeQAkVlROmkoWC hlN8iCcjUmW1KqxyzcQAcuwLqk/H58F8ECzO4wpaMC9lzI5m7g3z66wplxh/OhFQfJc7 y/kA==
- In-reply-to: <c9416d92-29b1-68e5-e51e-d7152f1fbc4b@eastlink.ca>
- List-archive: <http://www.zsh.org/sympa/arc/zsh-users>
- List-help: <mailto:sympa@zsh.org?subject=help>
- List-id: <zsh-users.zsh.org>
- List-owner: <mailto:zsh-users-request@zsh.org>
- List-post: <mailto:zsh-users@zsh.org>
- List-subscribe: <mailto:sympa@zsh.org?subject=subscribe%20zsh-users>
- List-unsubscribe: <mailto:sympa@zsh.org?subject=unsubscribe%20zsh-users>
- References: <c9416d92-29b1-68e5-e51e-d7152f1fbc4b@eastlink.ca>
- Sender: zsh-users-request@xxxxxxx
On Tue, Dec 29, 2020 at 7:24 AM Ray Andrews <rayandrews@xxxxxxxxxxx> wrote:
>
> How do we execute a completion within a function?
Depends on the context.
If the function is already executing as a ZLE widget, it might invoke
"zle recursive-edit".
If it's running as a command or from inside a script, using "vared" to
read from the keyboard into a local is one way.
There are examples of both of these in the Functions tree in the distribution.
Messages sorted by:
Reverse Date,
Date,
Thread,
Author