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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 32285 invoked from network); 11 Sep 2021 22:40:21 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 11 Sep 2021 22:40:21 -0000 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:Subject:Cc:To:From:Date: References:In-Reply-To:Message-Id: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=uvPC9uNmq8pf6XU/YVK5NoHoDF/kh1Gl3hRLsCFsm9U=; b=nitNcVYwuvIeAfKff9T8450gxL MIRKT/XqcPubIMDjO/jYDB2cbBekkEUNJpFlNzwdoyKY79ruaRmEj9n75ThIyA0HvQdUoxMt6LxQW vZB+427Hz68bHGdwtBacikDkc2Y8zapWIGIdgq6C/EYnikt4IYafiUoIBrT16d5Bo8BRG+y2uWTNg gDECYU+YJN3Shxy+5vxvkilFlLVlH85Fd54CmxNWFpNr/QFJ10g0z0GlHpzEw9m3dnDi7UEPtbQ9g YXgIWVRGhb3BnBVqEhpvKD0XXS1R7rE1FBrspRBCL2uuPhftvmX0qdrZSrBD2mK8oJGyOmX+kD1pW tO8rL18g==; Received: from authenticated user by zero.zsh.org with local id 1mPBfX-00031b-Qx; Sat, 11 Sep 2021 22:40:19 +0000 Received: from authenticated user by zero.zsh.org with esmtpsa (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1mPBev-0002KC-B6; Sat, 11 Sep 2021 22:39:41 +0000 Received: from compute3.internal (compute3.nyi.internal [10.202.2.43]) by mailauth.nyi.internal (Postfix) with ESMTP id 8A8F027C005B; Sat, 11 Sep 2021 18:39:39 -0400 (EDT) Received: from imap48 ([10.202.2.98]) by compute3.internal (MEProxy); Sat, 11 Sep 2021 18:39:39 -0400 X-ME-Sender: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvtddrudeggedgtdelucetufdoteggodetrfdotf fvucfrrhhofhhilhgvmecuhfgrshhtofgrihhlpdfqfgfvpdfurfetoffkrfgpnffqhgen uceurghilhhouhhtmecufedttdenucenucfjughrpefofgggkfgjfhffhffvufgtsehttd ertderreejnecuhfhrohhmpefnrgifrhgvnhgtvggpgggvlhojiihquhgviicuoehlrghr rhihvhesiihshhdrohhrgheqnecuggftrfgrthhtvghrnhepieekjeevledugeefiefgue elgffgtddtgeehvedvhedviefghedvffeuvddvueehnecuvehluhhsthgvrhfuihiivgep tdenucfrrghrrghmpehmrghilhhfrhhomheplhgrrhhrhihvodhmvghsmhhtphgruhhthh hpvghrshhonhgrlhhithihqdduudehudekjeejtdegqdduudelvdejfeekhedqlhgrrhhr hihvpeepiihshhdrohhrghesfhgrshhtmhgrihhlrdgtohhm X-ME-Proxy: Received: by mailuser.nyi.internal (Postfix, from userid 501) id D6C6721E005C; Sat, 11 Sep 2021 18:39:38 -0400 (EDT) X-Mailer: MessagingEngine.com Webmail Interface User-Agent: Cyrus-JMAP/3.5.0-alpha0-1229-g7ca81dfce5-fm-20210908.005-g7ca81dfc Mime-Version: 1.0 Message-Id: <88e7249e-09d7-4fc2-8b7f-d9e00c86f44f@www.fastmail.com> In-Reply-To: References: <8432871497e50ae7a6136a9e03a09ad6@dondley.com> <4df9fd0786c03076984bfd7d5cccc34c6780f519.camel@ntlworld.com> <01fed731885d32a336c7b0f31c8f4156@dondley.com> Date: Sat, 11 Sep 2021 18:39:02 -0400 From: =?UTF-8?Q?Lawrence_Vel=C3=A1zquez?= To: "Steve Dondley" Cc: zsh-users@zsh.org Subject: =?UTF-8?Q?Re:_Is_there_any_possible_way_to_automatically_escape_characte?= =?UTF-8?Q?rs_when_executing_an_alias_in_zsh=3F?= Content-Type: text/plain X-Seq: 27110 Archived-At: X-Loop: zsh-users@zsh.org Errors-To: zsh-users-owner@zsh.org Precedence: list Precedence: bulk Sender: zsh-users-request@zsh.org X-no-archive: yes List-Id: List-Help: List-Subscribe: List-Unsubscribe: List-Post: List-Owner: List-Archive: On Sat, Sep 11, 2021, at 5:01 PM, Steve Dondley wrote: > > > "man zshzle" will tell you about special widgets. Basically, they're > > just user defined commands that instead of being called by a keystroke > > are called at particular points during editing. > > > > The test is just an ordinary zsh pattern, as used for globbing / file > > matching, so it's easy to extend... > > > > if [[ $BUFFER = (tasn|taxx|tmxx)' '* && $BUFFER != *\\* ]]; then > > Nice. Yeah, this annoyance has been bugging me for years. I'll share > this out to the TW community, I'm sure others will love this, too. This is fun and all, but it's not clear to me why this is desirable over, say: % tasn "call Tom's friend" -- vq