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.3 required=5.0 tests=DKIM_SIGNED,DKIM_VALID, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,T_SCC_BODY_TEXT_LINE, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 14732 invoked from network); 17 Sep 2022 23:32:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 17 Sep 2022 23:32:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1663457555; b=fWxH18taeKvQ/+MFEGEdzUXdHD6t+lYoeZrF5I+0EVKo6SvSaXH1Bh66YA+3U6iCYumQTFtHk3 L49Z9W/Xm/3IfK6GEVY/kwWexOhv7UGF5e/MP5libJP3+KyucPwUHOtd09ADyZBCmRVndPO9iF VZ8IzRmheUv1P+mO/9EkmwIkS7KCovO65ytey+Jl6yhh6VaObovAgulrtWkRrFNvaE7lyqiWbx lqz9fN79NaQvuU5GYnNAbW28Z4I5H3adGFge5znwXgE2X9aEmV2i/Uuf8lbRSkRjCS8ndH9zle ZbjKc8tylpbglTAHu6nvPOUdLFGe9vvmPMv7vRFsNpiMyw==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1663457555; bh=4LXPaYyJXOmiLcMgSMRbUJCaEtLPprjzf27oF4pGI68=; 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=nS9CWe0vEjPD8aJLY2sfz9s8fW13bOaFZrKCiTzvhEY5//OomrQUnordHk5Z6AV9gjJtWPdI72 yeFwVT1nr5mNfcbMLbEBqapIwgGN2uYsKLAfx4FEcsbKY2TJDzexiBllYpi8DUcwevk8tgwx2T iEqvs4AAuwO8Eahwd7aXoNrQJezkqbfBzkYUA+bwUjSzhWEGhC6Pg2usYGhK5Bv7h9bVo1TDWX wBdksjOo3hpQTfH5OVNwhPx5f7NbjMsztX95cBQZGWwYCXsSG4S1mCEXOKnxtYHeRg9Yubx4HF rhk5lFFdF5Ydy2I+uKOyFzleNOI79remQPt0IQvctlcHWg==; 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=XomPXD19pa9amXFQFRun/gCWmcLIy8iJ34hGADUXtMM=; b=bgejMM9KK2t5DMBqDEEhA8R3d7 PIpq8r+F+Cn/LSNX7Xb4kp31168TYoFP+5yz2x4QsePpPMnhC/UWBl89r6z/scNUtsx6y0WUV7CHW Vt61CBOYsphlaaAzBM+z9+Coaz/VOLOedgk9Lu35aRX5KxICNbgt7g5KcYXeE26wZrXaXR/lbwDfv mb2MY7/xua7U8eN1H0QrBwjan4jy7OhodLWy6oaFynhUJpOXsIKxStQaW1xFpvPG+HmwkXwItNEth SYk+AJzVgCGy8J0ftB3dAxzi2U5UViNqZlqr+NsayzR1LBBK+YRPdv16vO5G5UqseDVOkIn8PYVyZ mGlBbwmg==; Received: from authenticated user by zero.zsh.org with local id 1oZhIY-000Oyz-F6; Sat, 17 Sep 2022 23:32:34 +0000 Authentication-Results: zsh.org; iprev=pass (mail-ej1-f53.google.com) smtp.remote-ip=209.85.218.53; dkim=pass header.d=brasslantern-com.20210112.gappssmtp.com header.s=20210112 header.a=rsa-sha256; dmarc=none header.from=brasslantern.com; arc=none Received: from mail-ej1-f53.google.com ([209.85.218.53]:37493) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1oZhDN-000OX8-CZ; Sat, 17 Sep 2022 23:27:14 +0000 Received: by mail-ej1-f53.google.com with SMTP id a26so28185779ejc.4 for ; Sat, 17 Sep 2022 16:27:13 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=brasslantern-com.20210112.gappssmtp.com; s=20210112; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date; bh=XomPXD19pa9amXFQFRun/gCWmcLIy8iJ34hGADUXtMM=; b=onZis1K7eOUQwFWQFyweKyCVyE0yjkFi+TKTqwUmsYtgl0j26pJy7i0uV40hGiosQN 5K3Izi/IeemamRraKrRwxq6Jp3QyNQOukG8n5H07SlR3vJy/Zy0gmOpFjvlTSHGM1Ghf H9p8592KLZ3t6jOFVPsJei9dWIatyNarFI3PmXLyO5DJrKRRmfIoUbq8zchck/UAjEPf LdQ91xwTo626PNqCtwCZSqj3trvNV2zIPaa47R5tXs4N02kImQJoOEqcvxt+q5ge6TzP jlW9DLTs0S0IgTZ0i6/47sIQkok3PdPEwvxjDxygTaya/qfIfPR57piFBjsnXhI5oMvf rzRg== 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=XomPXD19pa9amXFQFRun/gCWmcLIy8iJ34hGADUXtMM=; b=xOHfAaABsDxXai6Ksde0r8kBrPry/lNdEopZNHeE/9K9iy5c36ERWoQ36Mt3JZ0/UX s7449ajnQ8KZ81zF4xQnSmjr4j+xoeVCPvfDCE8W+E9zWn08Lt7PMG5V6s2m38o9L3vu 8DYqaBtCgiaxUdCiiQvPSRd8/RxxeSoxqXESipfciBRXrVLS+H/6yhnPG2KyIJqxmavr bCTJ/nUpvPo9GhdQJ6hAGeOu2JWfkFAn243FLRQyOXXrigEYvMNvIM46p3p3kRI4EOtF OQPqg+AhnvnHxrq5zmBIYzW0YfbWpMaatpJ3e08M34zVWXh5MUuB483zNC7O8o1IDeP+ z31Q== X-Gm-Message-State: ACrzQf0RJPBJ1Ysiu4oDF2TYxeOiY76bZPupu6xO/Clz3Crc1fNlmm+1 4SpbzFMSroj4J8ugWuLUBteK3XQTCqsqj5FOHqms/g== X-Google-Smtp-Source: AMsMyM43w656CSZhqrXowoyW3Yl2zp0xmEQ6azym3zqZ2v2/mQEGxSJLuYk57ApxF1r2PQXG8wcveoTC9kyxeYEnKg4= X-Received: by 2002:a17:907:a052:b0:780:c4e4:1715 with SMTP id gz18-20020a170907a05200b00780c4e41715mr4694462ejc.55.1663457232859; Sat, 17 Sep 2022 16:27:12 -0700 (PDT) MIME-Version: 1.0 References: In-Reply-To: From: Bart Schaefer Date: Sat, 17 Sep 2022 16:27:01 -0700 Message-ID: Subject: Re: Complete global aliases? To: Sebastian Gniazdowski Cc: Zsh hackers list Content-Type: text/plain; charset="UTF-8" X-Seq: 50644 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: 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)? Do the aliases expand or is just their name completed? What happens if you complete to the right of a global alias that (if expanded) changes the syntax of the command line? There are probably several other cases to consider, depending on the answers to those.