all messages for Guix-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
* [bug#61775] [PATCH 0/2] Add zsh shell niceties
@ 2023-02-24 23:03 Timo Wilken
  2023-02-24 23:05 ` [bug#61775] [PATCH 1/2] gnu: Add zsh-history-substring-search Timo Wilken
  2023-03-30 21:17 ` bug#61775: [PATCH 0/2] Add zsh shell niceties Ludovic Courtès
  0 siblings, 2 replies; 4+ messages in thread
From: Timo Wilken @ 2023-02-24 23:03 UTC (permalink / raw)
  To: 61775; +Cc: Timo Wilken

This patch series adds two zsh shell extensions:

* zsh-history-substring-search, which lets the user search their shell history
  by typing at the zsh prompt and pressing "up", and:
* zsh-completions, which contains completion info for commands not covered by
  the built-in completion info in zsh itself.

While the packages are independent from each other, I'm sending them as a
patch series to make the whole thing easier to merge.

Timo Wilken (2):
  gnu: Add zsh-history-substring-search
  gnu: Add zsh-completions

 gnu/packages/shellutils.scm | 55 +++++++++++++++++++++++++++++++++++++
 1 file changed, 55 insertions(+)


base-commit: df8b8f0c76388239dac9f2892c97b92e92c92901
-- 
2.39.1





^ permalink raw reply	[flat|nested] 4+ messages in thread

* [bug#61775] [PATCH 1/2] gnu: Add zsh-history-substring-search
  2023-02-24 23:03 [bug#61775] [PATCH 0/2] Add zsh shell niceties Timo Wilken
@ 2023-02-24 23:05 ` Timo Wilken
  2023-02-24 23:05   ` [bug#61775] [PATCH 2/2] gnu: Add zsh-completions Timo Wilken
  2023-03-30 21:17 ` bug#61775: [PATCH 0/2] Add zsh shell niceties Ludovic Courtès
  1 sibling, 1 reply; 4+ messages in thread
From: Timo Wilken @ 2023-02-24 23:05 UTC (permalink / raw)
  To: 61775; +Cc: Timo Wilken

* gnu/packages/shellutils.scm (zsh-history-substring-search): New variable.
---
 gnu/packages/shellutils.scm | 29 +++++++++++++++++++++++++++++
 1 file changed, 29 insertions(+)

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 64cc818d65..3553eaa4ed 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -15,6 +15,7 @@
 ;;; Copyright © 2021 Foo Chuan Wei <chuanwei.foo@hotmail.com>
 ;;; Copyright © 2021 Wiktor Żelazny <wzelazny@vurv.cz>
 ;;; Copyright © 2022 Jose G Perez Taveras <josegpt27@gmail.com>
+;;; Copyright © 2023 Timo Wilken <guix@twilken.net>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -221,6 +222,34 @@ (define-public zsh-autosuggestions
 as you type.")
     (license license:expat)))
 
+(define-public zsh-history-substring-search
+  (package
+    (name "zsh-history-substring-search")
+    (version "1.0.2")
+    (home-page "https://github.com/zsh-users/zsh-history-substring-search")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (commit (string-append "v" version))))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0y8va5kc2ram38hbk2cibkk64ffrabfv1sh4xm7pjspsba9n5p1y"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan '(("zsh-history-substring-search.plugin.zsh"
+                         "share/zsh/plugins/zsh-history-substring-search/")
+                        ("zsh-history-substring-search.zsh"
+                         "share/zsh/plugins/zsh-history-substring-search/")
+                        ("README.md" "share/doc/zsh-history-substring-search/"))))
+    (synopsis "ZSH port of Fish history search (up arrow)")
+    (description
+     "This is a clean-room implementation of the Fish shell's history search
+feature, where you can type in any part of any command from history and then
+press chosen keys, such as the UP and DOWN arrows, to cycle through matches.")
+    (license license:bsd-3)))
+
 (define-public zsh-syntax-highlighting
   (package
     (name "zsh-syntax-highlighting")
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* [bug#61775] [PATCH 2/2] gnu: Add zsh-completions
  2023-02-24 23:05 ` [bug#61775] [PATCH 1/2] gnu: Add zsh-history-substring-search Timo Wilken
@ 2023-02-24 23:05   ` Timo Wilken
  0 siblings, 0 replies; 4+ messages in thread
From: Timo Wilken @ 2023-02-24 23:05 UTC (permalink / raw)
  To: 61775; +Cc: Timo Wilken

* gnu/packages/shellutils.scm (zsh-completions): New variable.
---
 gnu/packages/shellutils.scm | 26 ++++++++++++++++++++++++++
 1 file changed, 26 insertions(+)

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 3553eaa4ed..4a2917cfa2 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -222,6 +222,32 @@ (define-public zsh-autosuggestions
 as you type.")
     (license license:expat)))
 
+(define-public zsh-completions
+  (package
+    (name "zsh-completions")
+    (version "0.34.0")
+    (home-page "https://github.com/zsh-users/zsh-completions")
+    (source (origin
+              (method git-fetch)
+              (uri (git-reference
+                    (url home-page)
+                    (commit version)))
+              (file-name (git-file-name name version))
+              (sha256
+               (base32
+                "0jjgvzj3v31yibjmq50s80s3sqi4d91yin45pvn3fpnihcrinam9"))))
+    (build-system copy-build-system)
+    (arguments
+     '(#:install-plan '(("src/" "share/zsh/site-functions/")
+                        ("README.md" "share/doc/zsh-completions/"))))
+    (synopsis "Additional completion definitions for Zsh")
+    (description
+     "This projects aims at gathering/developing new completion scripts that
+are not available in Zsh yet.  The scripts may be contributed to the Zsh
+project when stable enough.")
+    (license (license:non-copyleft "file://LICENSE"
+              "Custom BSD-like, permissive, non-copyleft license."))))
+
 (define-public zsh-history-substring-search
   (package
     (name "zsh-history-substring-search")
-- 
2.39.1





^ permalink raw reply related	[flat|nested] 4+ messages in thread

* bug#61775: [PATCH 0/2] Add zsh shell niceties
  2023-02-24 23:03 [bug#61775] [PATCH 0/2] Add zsh shell niceties Timo Wilken
  2023-02-24 23:05 ` [bug#61775] [PATCH 1/2] gnu: Add zsh-history-substring-search Timo Wilken
@ 2023-03-30 21:17 ` Ludovic Courtès
  1 sibling, 0 replies; 4+ messages in thread
From: Ludovic Courtès @ 2023-03-30 21:17 UTC (permalink / raw)
  To: Timo Wilken; +Cc: 61775-done

Hi Timo,

Timo Wilken <guix@twilken.net> skribis:

>   gnu: Add zsh-history-substring-search
>   gnu: Add zsh-completions

Applied, thanks!

Ludo’.




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2023-03-30 21:18 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-02-24 23:03 [bug#61775] [PATCH 0/2] Add zsh shell niceties Timo Wilken
2023-02-24 23:05 ` [bug#61775] [PATCH 1/2] gnu: Add zsh-history-substring-search Timo Wilken
2023-02-24 23:05   ` [bug#61775] [PATCH 2/2] gnu: Add zsh-completions Timo Wilken
2023-03-30 21:17 ` bug#61775: [PATCH 0/2] Add zsh shell niceties Ludovic Courtès

Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/guix.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.