From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=-3.4 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, DKIM_VALID_AU,FREEMAIL_FROM,HTML_MESSAGE,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 22806 invoked from network); 18 Sep 2022 09:49:05 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 18 Sep 2022 09:49:05 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1663494545; b=oleJiCCeVqUuvRX5CLloh49vstpDlfP4sWbGiZ29ByCNeRGv5k33FxTYwwY2QtZ622kBNZJUTX Rhd/RxR+vn45YwYZu5GQT1IBYbqu7uevQTRAZOixeikqDremkKrxndjxFquNYZL77SObzjuaYe 8MrTmYTf2fdlwqcWxu/ETUxNMAqm4UGEa7zv+574GfuLuEUTTo+gVKS0HDVFCFvmVV84DKaEhc KxtYOr2C/KBHOFcFc29JWjJ2pEoHbA7x0BjVrvUa7BuhMo6zesW5Sz/NSlZswqlShrgJVxm+vf twy5pOcIKIA55Xu9m1o/35CY9VOQl28WyXhe4szJb1WDbQ==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ua1-f44.google.com) smtp.remote-ip=209.85.222.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1663494545; bh=5OgjWrrEn1UnwlI4pacNL/HtPLJwdT9CCXtM/JgpMQQ=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To: References:MIME-Version:DKIM-Signature:DKIM-Signature; b=JaZ6Wqqm+rknhh+3cv1vLXWlqjUkibVH3RAup8Fd8bbaK6/Pcvt9ijIoiIMwutggH6P7yAXgYE xtYZPsDL0rp8Tsi1pKPkkha3hOzrx2asH5hz6o8Rp2J7LSCl2yxDPcNlkr+UA6DcNVD71wchcx PA3zNwK0rw2ZPeEFM9Evz5zwGVXJbFc6qHnLb4Aqy2s4mFMlgSU60d4L9Swqc6HfbdHU6PJsGz AL6S2Sg35Zz36RJBKBxKYWy0zbr0uGv1TEcvdnBKcyj1NJ5BakVlKbCEbqJIYoix/n3Tr6wtN6 1FJLeyNu/ZPtNxs0jPf65Jc9fNJmNsstS7ppu/08nFmXMg==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20210803; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Type:Cc:To:Subject:Message-ID :Date:From:In-Reply-To:References:MIME-Version:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=9j6061j7A6ZmsclFxaDZsNXwfAZCS1rvUx6MNTMiggQ=; b=H8uT01p/kp1CEUK9co6e+vYuwb 5tG0hfmwxEJvbPy2/tNxI6v4pT/lKEBA/jX79ZOMOtEzksBj1aGJlqpaXkaGMpHMPurWCRTnE+uEM bfyDSVLyVuxOtEzGzQKoUVW+CdgllNNOb9OIEzEZ7xDGHF3P5BwAnxx+VHt+0dxePgnUleN+tkJjb Svi9hrejqL1pqfVsNgA0G7UwUqH5d9fJ0RLhfXosDgamYFvZ4CN6lqTDtZ1ltRQ7laLQIDLIhYZII ntii7FRQT/EwQjYWgNClGuxZFV6qpZNB4ABB0oEg0vM1yj4Hl9ZdaMb28kI/LK4GKMDe1UA2DnlyF 2OXF6qGw==; Received: from authenticated user by zero.zsh.org with local id 1oZqv9-000GTs-Og; Sun, 18 Sep 2022 09:49:03 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ua1-f44.google.com) smtp.remote-ip=209.85.222.44; dkim=pass header.d=gmail.com header.s=20210112 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-ua1-f44.google.com ([209.85.222.44]:40609) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oZqpy-000G0d-I2; Sun, 18 Sep 2022 09:43:43 +0000 Received: by mail-ua1-f44.google.com with SMTP id f12so7475068uam.7 for ; Sun, 18 Sep 2022 02:43:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=9j6061j7A6ZmsclFxaDZsNXwfAZCS1rvUx6MNTMiggQ=; b=qSRBXCG3t+3Dxzed7rHt0J/87ji1ijzcjjH0tw2HSzqz+I6/dgqCeCxW678EFfiaDc D4dh6OEtb9tcpYW3/YUlTWZO6/NDUgNX6Swlp8LfT+wrcarXdSpntm1lUuOaQdG8kliJ 64eCZ+4WLKYr+XbScPgbNJa4rDxud0FMhNl1JzDngYTtE9QuOiwkgCcuoUVmQuwgxUY+ deSgUxucRxn+0SiYgtEIqldwiTu//Upwi+uSBmMNDnma5fzEV85QXU+CMjy/E8MTI2uY 4K8YzhSH9g9G0lCvs0N/U1UhmQF3Z3gNxEULDlhzaC5/2DXHPYnM1PrAQLjyxEOTi/Cl NLkA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date; bh=9j6061j7A6ZmsclFxaDZsNXwfAZCS1rvUx6MNTMiggQ=; b=pF/68VJ/uaBJnRoViFyZRYI6+V2QDAs36wo86VHPp6KHtxrz4thykjcQ/gFeFPfM6A zQfLQITGxgBVyVF2LKPjM0I04kQK9ywfrOHix/bG8QwFeJjcX5Oo6vSWoqWIyXkgExBl iAk8BofaEYD9WueoYKb6m/q6JTW7JTS16w694uKBKGhlHepL+e1Tb4e8OAwPSFVRiyBY iYpZU2IoU56/5CW08is5rYLkX7avyfheIVcTLXLGHZC6+ku8XlQ/BQPm7aQ/IpOc9C7d JrPV0zYLQWPzppnRf+lUjEw6gpGLngPkWZfZ1vJwftsTqy4JWRW/3tzc0YPljOg9P0vi cnzQ== X-Gm-Message-State: ACrzQf3X7Z/PZ6ySVbFMxQxyrqGwaC/e1Zq3BOkpFRw/XLE92dgxmoTc MoSOtEupa4flhLnhFGp0fwdjTM6jwPXEZyTUxtM= X-Google-Smtp-Source: AMsMyM5lSn0UB1a3OP0qEKxZwqGrMw6HGDQ458d3nKmqKa53aFvb56PntLwZA5P61spqKUZ2MaCVJduSHAvBhLTmyMI= X-Received: by 2002:a05:6130:6c3:b0:3b1:5469:61f5 with SMTP id bl3-20020a05613006c300b003b1546961f5mr4728884uab.121.1663494221213; Sun, 18 Sep 2022 02:43:41 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Sebastian Gniazdowski Date: Sun, 18 Sep 2022 11:43:15 +0200 Message-ID: Subject: Re: Complete global aliases? To: Bart Schaefer Cc: Zsh hackers list Content-Type: multipart/alternative; boundary="00000000000024367b05e8f06eb0" X-Seq: 50646 Archived-At: X-Loop: zsh-workers@zsh.org Errors-To: zsh-workers-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-workers-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: --00000000000024367b05e8f06eb0 Content-Type: text/plain; charset="UTF-8" On Sun, 18 Sept 2022 at 01:27, Bart Schaefer wrote: > On Sat, Sep 17, 2022 at 7:27 AM Sebastian Gniazdowski > wrote: > > > > I think that the global aliases should be completed out of the box, what > do you say? > > I think there needs to be a bit more specification about how this would > work. > > Where would this fit in the overall design of contexts? E.g. does it > happen in "-default-" context (which isn't always applied) and if so > do alaises complete instead of files, as well as files, or only when > there are no files (that is, _files returns nonzero)? > I'm not sure, however there's a solution on the web, see: https://stackoverflow.com/a/59513051/11999858 > > Do the aliases expand or is just their name completed? I think that only its name should be completed. > What happens > if you complete to the right of a global alias that (if expanded) > changes the syntax of the command line I think that it shouldn't be expanded, so the issue isn't actual. -- Best regards, Sebastian Gniazdowski --00000000000024367b05e8f06eb0 Content-Type: text/html; charset="UTF-8" Content-Transfer-Encoding: quoted-printable
On Sun, 18 Sept 2022 at 01:27, Bart Schaefer <schaefer@brasslantern.com> wrote:
On Sat, Sep 17, 2022 at 7:27 AM Sebastian Gniazdowski<= br> <sgniazdowsk= i@gmail.com> wrote:
>
> I think that the global aliases should be completed out of the box, wh= at do you say?

I think there needs to be a bit more specification about how this would wor= k.

Where would this fit in the overall design of contexts?=C2=A0 E.g. does it<= br> happen in "-default-" context (which isn't always applied) an= d if so
do alaises complete instead of files, as well as files, or only when
there are no files (that is, _files returns nonzero)?
=
I'm not sure, however there's a solution on the= web, see: https:= //stackoverflow.com/a/59513051/11999858

Do the aliases expand or is just their name completed?

I think that only its name should be completed.<= /div>
=C2=A0
What happens
if you complete to the right of a global alias that (if expanded)
changes the syntax of the command line

I think=C2=A0 that it shouldn't be expanded, s= o the issue isn't actual.
--
B= est regards,
Sebastian Gniazdowski

--00000000000024367b05e8f06eb0--