From patchwork Mon Aug 22 04:28:01 2022 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: =?utf-8?b?44Ku44Oj44Op?= X-Patchwork-Id: 41814 Return-Path: X-Original-To: patchwork@mira.cbaines.net Delivered-To: patchwork@mira.cbaines.net Received: by mira.cbaines.net (Postfix, from userid 113) id D271727BBEA; Mon, 22 Aug 2022 05:30:19 +0100 (BST) X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on mira.cbaines.net X-Spam-Level: X-Spam-Status: No, score=-1.4 required=5.0 tests=BAYES_00,DKIM_INVALID, DKIM_SIGNED,MAILING_LIST_MULTI,RCVD_IN_BL_SPAMCOP_NET,SPF_HELO_PASS, URIBL_BLOCKED autolearn=no autolearn_force=no version=3.4.6 Received: from lists.gnu.org (lists.gnu.org [209.51.188.17]) by mira.cbaines.net (Postfix) with ESMTPS id 65CCE27BBE9 for ; Mon, 22 Aug 2022 05:30:19 +0100 (BST) Received: from localhost ([::1]:53426 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1oPz4r-0001hY-1d for patchwork@mira.cbaines.net; Mon, 22 Aug 2022 00:30:17 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:35522) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPz4d-0001hC-D6 for guix-patches@gnu.org; Mon, 22 Aug 2022 00:30:03 -0400 Received: from debbugs.gnu.org ([209.51.188.43]:47567) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPz4d-0000RE-34 for guix-patches@gnu.org; Mon, 22 Aug 2022 00:30:03 -0400 Received: from Debian-debbugs by debbugs.gnu.org with local (Exim 4.84_2) (envelope-from ) id 1oPz4c-0003PW-UJ for guix-patches@gnu.org; Mon, 22 Aug 2022 00:30:02 -0400 X-Loop: help-debbugs@gnu.org Subject: [bug#57333] [PATCH] gnu: zsh-autopair Resent-From: gyara Original-Sender: "Debbugs-submit" Resent-CC: guix-patches@gnu.org Resent-Date: Mon, 22 Aug 2022 04:30:02 +0000 Resent-Message-ID: Resent-Sender: help-debbugs@gnu.org X-GNU-PR-Message: report 57333 X-GNU-PR-Package: guix-patches X-GNU-PR-Keywords: patch To: 57333@debbugs.gnu.org Cc: gyara X-Debbugs-Original-To: guix-patches@gnu.org Received: via spool by submit@debbugs.gnu.org id=B.166114259513069 (code B ref -1); Mon, 22 Aug 2022 04:30:02 +0000 Received: (at submit) by debbugs.gnu.org; 22 Aug 2022 04:29:55 +0000 Received: from localhost ([127.0.0.1]:37316 helo=debbugs.gnu.org) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPz4V-0003Oj-29 for submit@debbugs.gnu.org; Mon, 22 Aug 2022 00:29:55 -0400 Received: from lists.gnu.org ([209.51.188.17]:43790) by debbugs.gnu.org with esmtp (Exim 4.84_2) (envelope-from ) id 1oPz4Q-0003OY-8U for submit@debbugs.gnu.org; Mon, 22 Aug 2022 00:29:53 -0400 Received: from eggs.gnu.org ([2001:470:142:3::10]:54822) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1oPz4Q-0001gR-3R for guix-patches@gnu.org; Mon, 22 Aug 2022 00:29:50 -0400 Received: from mail-wr1-x42b.google.com ([2a00:1450:4864:20::42b]:33706) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_128_GCM_SHA256:128) (Exim 4.90_1) (envelope-from ) id 1oPz4O-0000Hy-Ar for guix-patches@gnu.org; Mon, 22 Aug 2022 00:29:49 -0400 Received: by mail-wr1-x42b.google.com with SMTP id k9so11703444wri.0 for ; Sun, 21 Aug 2022 21:29:47 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gyara.moe; s=google; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:from:to:cc; bh=HB4dCYCkGkjmIpHvCdk42rZIkzlyaLuaILpgZ9xvIG0=; b=K6GJIZTGaHpC+OX6lvY85VaMoYyKNgiPzEw6GhhXVmWYyRdlEY5d/7NKX53uq5QxB+ fr927rnpxVrXjKnK7IXPrfSHFTc6DeZdhvulRRBNE+ZpsgGgEq4Jv3sksd+cc4qLbsrc Qm3xCb6A6K//ZbznhE89CA5y/xFHbJQQFfaHuF5mV2kf+ygUCejim01BmBtuSCEU97Py o+F4m/rsb6qAk2Fx8yQdx9OXqyK6gre/uMqVu++R78dznrFGlqgR5/rnpKvnkJbV1X4c g8t0+PWj6JIilPr31R0mRgSOVLPoRNKID248Pt2DTEIPiJD6jBqPg4nSQ/Rm+7jhn/e1 pGhQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc; bh=HB4dCYCkGkjmIpHvCdk42rZIkzlyaLuaILpgZ9xvIG0=; b=TBT4y54VfuA25T1OoTZVR2q0mQvyQQumXzotjIR4tEX8/aanpAGQCoF9EXyLvsroWt dyNSRBmZKghAJvWT9098PPk0XhjbPagsHtaM5eUW8VvF8UzPLAcOEEb8JrRHQknKYZJN vXdw+ikiMLl7qbj0v0UYCsRj7NOiyXNqjv+oD0ZOFDyD1IP52g4IPbe4TiGJY5nkn+fL LEKcVBbAEYijk9hz5Jmv3ArrWn8U62ytZF/eRVNaM1ohJLDOHerQnmbTq2OOrsNxn3c5 TJlZCQAIkbY02rSwTthFTt/2bJyZK8B8Uc8M/r4/BtUHdIZHHvItvdqs2C+hCFMFIUTL 7FzQ== X-Gm-Message-State: ACgBeo3sK1wJT2MCjK4zonDDc5wegdIW1MxRjc1lRrTOT3i/wkotl2XX SkpjGVR4aLe0bTPFMcsR1MB145slwkge3n+8PbA= X-Google-Smtp-Source: AA6agR5k3BdQPNZVpzonRTea5iQAWCAwM46CivOnuHXDZ2cBL3fCav/bH1p90oPdyDBpRYPp2pelwg== X-Received: by 2002:a5d:4a11:0:b0:225:2f5e:c704 with SMTP id m17-20020a5d4a11000000b002252f5ec704mr9434991wrq.703.1661142586394; Sun, 21 Aug 2022 21:29:46 -0700 (PDT) Received: from localhost (tor-exit-3.zbau.f3netze.de. [185.220.100.254]) by smtp.gmail.com with ESMTPSA id j4-20020a05600c42c400b003a5c064717csm15277113wme.22.2022.08.21.21.29.44 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sun, 21 Aug 2022 21:29:45 -0700 (PDT) Date: Mon, 22 Aug 2022 13:28:01 +0900 Message-Id: <20220822042800.1564-1-me@gyara.moe> X-Mailer: git-send-email 2.37.2 MIME-Version: 1.0 Received-SPF: pass client-ip=2a00:1450:4864:20::42b; envelope-from=me@gyara.moe; helo=mail-wr1-x42b.google.com X-Spam_score_int: -7 X-Spam_score: -0.8 X-Spam_bar: / X-Spam_report: (-0.8 / 5.0 requ) BAYES_00=-1.9, DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, DKIM_VALID_EF=-0.1, RCVD_IN_BL_SPAMCOP_NET=1.347, RCVD_IN_DNSWL_NONE=-0.0001, SPF_HELO_NONE=0.001, SPF_PASS=-0.001, T_SCC_BODY_TEXT_LINE=-0.01 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: debbugs-submit@debbugs.gnu.org X-Mailman-Version: 2.1.18 Precedence: list X-BeenThere: guix-patches@gnu.org List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-patches-bounces+patchwork=mira.cbaines.net@gnu.org Sender: "Guix-patches" Reply-to: gyara X-ACL-Warn: , gyara via Guix-patches X-Patchwork-Original-From: gyara via Guix-patches via From: =?utf-8?b?44Ku44Oj44Op?= X-getmail-retrieved-from-mailbox: Patches --- This patch added zsh-autopair, a zsh plugin that auto-closes, deletes and skips over matching delimiters in zsh intelligently to guix. gnu/packages/shellutils.scm | 24 ++++++++++++++++++++++++ 1 file changed, 24 insertions(+) diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm index 110cbe9fda..295bece21c 100644 --- a/gnu/packages/shellutils.scm +++ b/gnu/packages/shellutils.scm @@ -38,6 +38,7 @@ (define-module (gnu packages shellutils) #:use-module (guix packages) #:use-module (guix download) #:use-module (guix git-download) + #:use-module (guix build-system copy) #:use-module (guix build-system gnu) #:use-module (guix build-system go) #:use-module (guix build-system python) @@ -145,6 +146,29 @@ (define-public boxes text.") (license license:gpl2))) +(define-public zsh-autopair + (package + (name "zsh-autopair") + (version "1.0") + (home-page "https://github.com/hlissner/zsh-autopair") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/hlissner/zsh-autopair.git") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "1h0vm2dgrmb8i2pvsgis3lshc5b0ad846836m62y8h3rdb3zmpy1")))) + (build-system copy-build-system) + (arguments + '(#:install-plan '(("autopair.zsh" + "/share/zsh/plugins/zsh-autopair/zsh-autopair.zsh")))) + (synopsis "Auto-close and delete matching delimiters in zsh") + (description + "A simple plugin that auto-closes, deletes and skips over matching delimiters in zsh intelligently.") + (license license:expat))) + (define-public zsh-autosuggestions (package (name "zsh-autosuggestions")