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,MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED, UNPARSEABLE_RELAY autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 11325 invoked from network); 26 Oct 2020 07:12:35 -0000 Received: from zero.zsh.org (2a02:898:31:0:48:4558:7a:7368) by inbox.vuxu.org with ESMTPUTF8; 26 Oct 2020 07:12:35 -0000 ARC-Seal: i=1; cv=none; a=rsa-sha256; d=zsh.org; s=rsa-20200801; t=1603696355; b=VHe04Qw9hv/W7aFA7vOrpsoezUJYalEX3qpvwRHBeJM1Ngg1MTfVAfPqpFANpzqqRHUK8jRzy9 fqKvNULAxFz4yFPd0e5hlHT7af+yjWnnK2P3IRMIQFqTVlTqZ39klR1qtZq/cUNmzRi1+iKhY/ bqAr0Pao/sG3juuBY8IKUYV8glQUe6U/d9k/NjQH2e+njqQDN6E20tHaJT28fva7opOmvABXAm 3JnNWCPNIhyaU9/ik1QXzl2EDiAOH7bGVCKbGEq4F8i7ZyRLG0/jmfl6CEP9htOm0vDcnO5jtq CP9BVVwzhinkuachp6uzBzOQBfutjqWt5YgzLN2vqSlsJg==; ARC-Authentication-Results: i=1; zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20161025 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-20200801; t=1603696355; bh=fpzq22ZMkf0nkdHpFM6latQW7LCTPX8MZOoreIlkMF8=; h=List-Archive:List-Owner:List-Post:List-Unsubscribe:List-Subscribe:List-Help: List-Id:Sender:Content-Transfer-Encoding:Content-Type:Cc:To:Subject: Message-ID:Date:From:In-Reply-To:References:MIME-Version:DKIM-Signature: DKIM-Signature; b=qdw5v3/6WBuitvfhDYp+r945zWVQGJig0dvOrmpUC1QaSWmeRZpW9DLD5AFzm4uApbmkFAbMA8 Cqpr70PmEvHlNxpQDhBLc7rUOE9AcoieJShkfp3U1dICz+6oXR2G766D0YfuKwS3+W95/J5RH4 Yl0vx5NvzB0eGLgY1c5ycPPITsgKURqB9DUr5gWG352KN1RRCp5WJoJwUhdkTnFinJOdrE7YvE 8g3AXjpEAqPgQ3GRJZmXNO5ozXIvFNvs869vSqwPEU/RKPfdklkz/aQT68qDnufgW3xfHDLXO6 +dorqZliKMD3rp+AZp5pftsfot4t13JX1ObsoELE4F4jwQ==; DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=zsh.org; s=rsa-20200801; h=List-Archive:List-Owner:List-Post:List-Unsubscribe: List-Subscribe:List-Help:List-Id:Sender:Content-Transfer-Encoding: Content-Type:Cc:To:Subject:Message-ID:Date:From:In-Reply-To:References: MIME-Version:Reply-To:Content-ID:Content-Description:Resent-Date:Resent-From: Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID; bh=fpzq22ZMkf0nkdHpFM6latQW7LCTPX8MZOoreIlkMF8=; b=eLqW0aFmmRXUQ8p/hJJxRR/68s Ai2mNHT5s4d68syXqYn6vtLofiIZa20fWjgrsm0phIgzKyIhCq9+CBNJcS/HmoZkDOY03WXfKkP0P E/SCwOKMHThR+V06jtftDWv1tm6tI0AeQVzva6WWp4lb51W1zlOT2AHq4jvZQnBBG1DxldD1olJ5s Qt28yRsTfkFJd1MfotQVihqwS1y81/sRxLm89PzqRM8yTUyYGEQIN/gmJqAmhKmiwDV9PhyP/8AOq UlkYMIj55gzY/ktgkeyg7UXlWMaVpZzrOikauAsw9oh4cfghiUQwujQESJRpnr5o8imWvfI4nOgJy PygWTTnw==; Received: from authenticated user by zero.zsh.org with local id 1kWwgB-0002gO-6L; Mon, 26 Oct 2020 07:12:31 +0000 Authentication-Results: zsh.org; iprev=pass (mail-io1-f52.google.com) smtp.remote-ip=209.85.166.52; dkim=pass header.d=gmail.com header.s=20161025 header.a=rsa-sha256; dmarc=pass header.from=gmail.com; arc=none Received: from mail-io1-f52.google.com ([209.85.166.52]:36082) by zero.zsh.org with esmtps (TLS1.3:TLS_AES_128_GCM_SHA256:128) id 1kWwfg-0002JJ-Df; Mon, 26 Oct 2020 07:12:01 +0000 Received: by mail-io1-f52.google.com with SMTP id u19so8962810ion.3 for ; Mon, 26 Oct 2020 00:12:00 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:references:in-reply-to:from:date:message-id:subject:to :cc:content-transfer-encoding; bh=fpzq22ZMkf0nkdHpFM6latQW7LCTPX8MZOoreIlkMF8=; b=Zqzq3MjQJhuLZ2q/IBjoAURW8icd+ntGJnjkVCm1DOG8QGI8xvrrVMBmjMMUCqSVUM eoT7BEsgohB0krmcCfd4mLA3fX1uVtnl7qgJlEVyHo1l6iizMxE8ry2ASMgEaar/7XQv 7Dw3Cv/DIyHY7z75i5/A499MYh7flUJwiPUPBc/u7LmYrtiq5bO7VgdvdnxZF+8xgbnU PhFCHlxdLgzonR/Tef0E9GhGYt8Cv096+VFXyj2+CVYwBtei2dhi7IbOrElo3xP0VYn8 sQnqlfowYtpYQ7yLZ85SUCQehqm7yWuJhpYx2NW+6l+GjYl85hZwCnuSvSUWpsjh+uSd SgdA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:references:in-reply-to:from:date :message-id:subject:to:cc:content-transfer-encoding; bh=fpzq22ZMkf0nkdHpFM6latQW7LCTPX8MZOoreIlkMF8=; b=a5b9O2NuUOfLU8uZVWErl6lKiNaW2FtL3TYS/yjUwXf9PZO3pAk4Civ4mnsMDkrcvV TPCh8EV9YNoeFiIGMk7BUJpx51gulSjcxV5GSxtibo5qJkNtMG4fL5PLufWK5kCOTVz9 El3w0oyhMpnxWYVtxFU+/QcV/zkK3btkJ4YnGU17YnhPh/Rd8nigGRni021V3IqptN7W a+cKJoCc74zDtIDW9egLGf0LGMv/obtIvYtP47ItPtxr4Ho4FovGezOlYFclDlKpgjz/ wWskuPNrZe1o3RM/V0kiMARwA8305CSeIqTbNkM1kUOgqVuL+MSwlURhLuNBKbvjIiPO MJsw== X-Gm-Message-State: AOAM531BwZOwH/PJOjz5KJTV2r1KwbT/LBq5leQL+FEirKhZAZxuTGjw F/V+HNKY0BZE7Drs/+XD0zen9jo+vgHm28+EZZo= X-Google-Smtp-Source: ABdhPJxD63S1Z319PDRC0wSBcioZtaaC7Cc8jaLTyaJy+Ru7vm/6lBwZCeV+gMUnsqUmkj9aqEBHF7xvsBdmFgnnw7Q= X-Received: by 2002:a6b:b80a:: with SMTP id i10mr9462782iof.118.1603696319069; Mon, 26 Oct 2020 00:11:59 -0700 (PDT) MIME-Version: 1.0 References: <20201025202419.528548e8@tarpaulin.shahaf.local2> In-Reply-To: <20201025202419.528548e8@tarpaulin.shahaf.local2> From: Roman Perepelitsa Date: Mon, 26 Oct 2020 08:11:48 +0100 Message-ID: Subject: Re: save a command in history from within the widget To: Daniel Shahaf Cc: Ahmad Ismail , Zsh Users Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable X-Seq: 26131 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: Archived-At: On Sun, Oct 25, 2020 at 9:24 PM Daniel Shahaf wrot= e: > > I don't understand why you can't drop a script literally called =C2=ABg= =C2=BB > into a directory in $path and implement in it whatever logic you want. > (Or possibly a function, depending on your use-case.) I highly recommend following this advice. Write a script or a function called "g" and remove the custom accept-line widget. > But, this script is only for my personal use, so I will continue > tweaking it as per my requirement. The value of the advice is not diminished by "g" being for your personal us= e. Roman.