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 17102 invoked from network); 26 May 2022 15:54:37 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 May 2022 15:54:37 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20210803; t=1653580477; b=V65Y+ybKCjnDkNRBIyaMlfCRkpVKDNKy9+3EqiPH1H6ns7kMCifq+SgJILHUSuFHpl51nx61+W zOgshzcQhPazNsKP4ozUsqRRN6wjkiVKTMNPCS39yPdtGmTQkfoXyBcLGhouarJ3gwG+m54J7L tpKJB6sYxt5Wzci5ufkfKMoy50c0UTEX+A3QdVRAPa7ghNDvpWslWX9OmiP/zJbaGG0geoMujr vL+qRw5NIRxihtABbRdaxhetZsy8CUo09Pzzk1KluKtRdWZJu4bkRJ56GHFl16ruUZK7cQ7jxH HFQ23xWA5v6LbG1Gpoao4ri717p2eVRanQ7TNYb0bwGZ7A==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed; d=zsh.org; s=rsa-20210803; t=1653580477; bh=B1bxZb0HjdgIL2Kxvy0RtubHRFTc/srh3o+4J0rzs10=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:In-Reply-To:Content-Type:MIME-Version:References:Message-ID: Subject:Cc:To:From:Date:DKIM-Signature:DKIM-Signature:DKIM-Signature; b=JS1IggzEoCm9eqL5MzsuSVeEAPhID0tECgNYUs3rSZBrhrTOk7yeU0kTlYNvf0Bao+oka9l0IL TLF5GHP3wxbNaj0OJNwtLri5S3z5M3fxa5akjaUqkTabbY5iAPpIoZXHYq4dVmLoJdM5NJCGIF O2bduf2TCYJir9drwJCftVBWz7PDjGf/Ke1zMNJ2QqSO6ROJGkL7rAxVjPf3sW4G4lyaE6YrbO HeQsyLymzclJxEIriYucQfDigtilcVg4ylQRWgKGGSygpQJBNXguP6gd5pqGVuGPYuo642zNrO 9Bg0wyJGJVt99OjU7ZqH/5d/NJagDBvjaP/5eKG1W/HMLQ==; 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:In-Reply-To:Content-Type:MIME-Version :References:Message-ID:Subject:Cc:To:From:Date:Reply-To: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=G5rNRthv9m7m1vNGhGcazPC56v9JyKCSfukBxhWtZwI=; b=n3AJC7b6RUTkOzRCfjGANq7rCD XDBYzyaUEnxYsJy6P8hgQ0qcZFSCDoXbdE1b4dGl9m0TGtluHms4+OQV+3kRAf2lPCY4i8DNtbz9E ML3ePw1oEum6uFRKuYX5fe6kXfv46Efsnbwh4Hh4N8HSUVSmMWX2G+OjkjO7A2Ukq3lY0bjZXF4QL 7MFArq4IyM7SMKPmqdWElJ0B8ZYmNuwHEpLPGsvRe5AqcUOaobmvWf2WgJA4Ebg/EkVVzPAxQwehl Tpfrc9nUWwDWDEy85DF1O/hFBF8MJDBtbm2GztMIgk5oFGsFaQ33zLAHMPcoBD1M7+EFlQG3dgFGV 2OzCtM9Q==; Received: from authenticated user by zero.zsh.org with local id 1nuFoq-0002Hi-3E; Thu, 26 May 2022 15:54:36 +0000 Authentication-Results: zsh.org; iprev=pass (out3-smtp.messagingengine.com) smtp.remote-ip=66.111.4.27; dkim=pass header.d=daniel.shahaf.name header.s=fm3 header.a=rsa-sha256; dkim=pass header.d=messagingengine.com header.s=fm1 header.a=rsa-sha256; dmarc=none header.from=daniel.shahaf.name; arc=none Received: from out3-smtp.messagingengine.com ([66.111.4.27]:33197) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_256_GCM_SHA384:256) id 1nuFnp-0001a0-FR; Thu, 26 May 2022 15:53:35 +0000 Received: from compute4.internal (compute4.nyi.internal [10.202.2.44]) by mailout.nyi.internal (Postfix) with ESMTP id D06B85C0061; Thu, 26 May 2022 11:53:31 -0400 (EDT) Received: from mailfrontend2 ([10.202.2.163]) by compute4.internal (MEProxy); Thu, 26 May 2022 11:53:31 -0400 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= daniel.shahaf.name; h=cc:cc:content-type:date:date:from:from :in-reply-to:in-reply-to:message-id:mime-version:references :reply-to:sender:subject:subject:to:to; s=fm3; t=1653580411; x= 1653666811; bh=G5rNRthv9m7m1vNGhGcazPC56v9JyKCSfukBxhWtZwI=; b=h rO95urxlCXGkQxY/asmpeiVDN/n+vtV4X2vs8Re0W2c+Ujk9UdJsnScXvDkiOez9 aMikUAx5sFa4aGWyR6KBn1UxrNXSUiIogMZVry2oTktyzZ9YelsE4owJlBuw+Vw6 BDtIo0Nv6O7BSU2Qc+sVNaDWUnWpsex9gaFtCZVr/r7qr2S/VwO/ftClp9ZnOv8f sX1eeoSrH/+0rpntpzc3hS0brWVWOyJgsUjjk+wcFw+GxlCiCmtecPkyMG2abcuV TO82BgXmAx6EMi2WF7T4bOD+77BM+9L50sXSU0mdqTditY8gb8ZmEmgTgrmfJ6AX Y1fR+bzVb50rT6ERZ5Szg== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d= messagingengine.com; h=cc:cc:content-type:date:date:feedback-id :feedback-id:from:from:in-reply-to:in-reply-to:message-id :mime-version:references:reply-to:sender:subject:subject:to:to :x-me-proxy:x-me-proxy:x-me-sender:x-me-sender:x-sasl-enc; s= fm1; t=1653580411; x=1653666811; bh=G5rNRthv9m7m1vNGhGcazPC56v9J yKCSfukBxhWtZwI=; b=KmFhWJbETgsuwuC5r1IMmt848C0ekadtd2ETcBSwqrSx GDRzG8Z91esJC98ak8RMK8WiMz2bpRAmHT1352z8UpEdVeIWmo1xeKjgmaiwWf3v TZbIZBR4+K9Il1LpUSYY5gg9A15PMTUHPA9EK5/3KLIWJ+XZrCnQKgYYU9KOuN+n O5C4vrdPcU5tW5aXcIXxasKfiXHMWI4UjREGAi51nVbkizDgryN2Xq7rarSe8jdK QgT/Bojn/2bS8VJ5pXc5tYu48JBSl9qMT2zFVMDr0MAGpGrl2oaw5mWGL2AUVcMK CgMkpr2i7PXOF+JXYDMnCkIVaCLwrxuspFRYqb1vHA== X-ME-Sender: X-ME-Received: X-ME-Proxy-Cause: gggruggvucftvghtrhhoucdtuddrgedvfedrjeejgdelfecutefuodetggdotefrodftvf curfhrohhfihhlvgemucfhrghsthforghilhdpqfgfvfdpuffrtefokffrpgfnqfghnecu uegrihhlohhuthemuceftddtnecusecvtfgvtghiphhivghnthhsucdlqddutddtmdenuc fjughrpeffhffvvefukfhfgggtuggjfgesthdttddttdervdenucfhrhhomhepffgrnhhi vghlucfuhhgrhhgrfhcuoegurdhssegurghnihgvlhdrshhhrghhrghfrdhnrghmvgeqne cuggftrfgrthhtvghrnhepgeffvefgvdfffeefleduhfejheektdejvdeileeutdekfeeg hfelkeekjedtgeetnecuvehluhhsthgvrhfuihiivgeptdenucfrrghrrghmpehmrghilh hfrhhomhepugdrshesuggrnhhivghlrdhshhgrhhgrfhdrnhgrmhgv X-ME-Proxy: Feedback-ID: i425e4195:Fastmail Received: by mail.messagingengine.com (Postfix) with ESMTPA; Thu, 26 May 2022 11:53:31 -0400 (EDT) Received: by tarpaulin.shahaf.local2 (Postfix, from userid 1000) id 4L8CCF1yM6z220; Thu, 26 May 2022 15:53:29 +0000 (UTC) Date: Thu, 26 May 2022 15:53:29 +0000 From: Daniel Shahaf To: Vincent Lefevre Cc: zsh-users@zsh.org Subject: Re: prevent some lines directly coming from the history from being executed Message-ID: <20220526155329.GF19001@tarpaulin.shahaf.local2> References: <20220524154738.GA35284@cventin.lip.ens-lyon.fr> <20220525025403.GA97860@zira.vinc17.org> <20220525084920.GB97860@zira.vinc17.org> <20220526143602.GA1236826@zira.vinc17.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20220526143602.GA1236826@zira.vinc17.org> User-Agent: Mutt/1.10.1 (2018-07-13) X-Seq: 27803 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: Vincent Lefevre wrote on Thu, May 26, 2022 at 16:36:02 +0200: > On 2022-05-25 18:25:40 -0700, Bart Schaefer wrote: > > On Wed, May 25, 2022 at 1:49 AM Vincent Lefevre wrote: > > > zle -A accept-line real-accept-line > > > > There's the built-in ".accept-line" widget for this sort of thing, so > > you don't have to create a new alias. > > Is this documented? > > When searching the man pages, I could find only one place where > such a built-in is used: in the example for recursive-edit. There's this in compsys.yo: > Should you need to use the original completion commands, you can still > bind keys to the old widgets by putting a `tt(.)' in front of the > widget name, e.g. `tt(.expand-or-complete)'. And this in mod_complist.yo: > All movement functions wrap around at the edges; any other zle function not > listed leaves menu selection and executes that function. It is possible to > make widgets in the above list do the same by using the form of the widget > with a `tt(.)' in front. For example, the widget `tt(.accept-line)' has > the effect of leaving menu selection and accepting the entire command line. but, yes, it should be mentioned in the zle documentation too, not only in the compsys documentation. Anyone volunteering to write the patch? Cheers, Daniel