unofficial mirror of guix-patches@gnu.org 
 help / color / mirror / code / Atom feed
* [bug#28225] Subject: [PATCH] gnu: Add fzy.
@ 2017-08-24 20:19 Stefan Reichör
  2017-08-27 11:10 ` Thomas Danckaert
  2017-08-30  7:25 ` bug#28225: " Thomas Danckaert
  0 siblings, 2 replies; 3+ messages in thread
From: Stefan Reichör @ 2017-08-24 20:19 UTC (permalink / raw)
  To: 28225

[-- Attachment #1: 0001-gnu-Add-fzy.patch --]
[-- Type: text/x-diff, Size: 2503 bytes --]

From 5acc5925493b040b5b56b8b1efec5e90a2d67e44 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Stefan=20Reich=C3=B6r?= <stefan@xsteve.at>
Date: Thu, 24 Aug 2017 22:14:51 +0200
Subject: [PATCH] gnu: Add fzy.

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

diff --git a/gnu/packages/shellutils.scm b/gnu/packages/shellutils.scm
index 3ecc1ee..2d515ec 100644
--- a/gnu/packages/shellutils.scm
+++ b/gnu/packages/shellutils.scm
@@ -2,6 +2,7 @@
 ;;; Copyright © 2016 Matthew Jordan <matthewjordandevops@yandex.com>
 ;;; Copyright © 2016, 2017 Alex Griffin <a@ajgrf.com>
 ;;; Copyright © 2016 Christopher Baines <mail@cbaines.net>
+;;; Copyright © 2017 Stefan Reichör <stefan@xsteve.at>
 ;;;
 ;;; This file is part of GNU Guix.
 ;;;
@@ -122,3 +123,37 @@ Before each prompt, direnv checks for the existence of a .envrc file in the
 current and parent directories.  This file is then used to alter the
 environmental variables of the current shell.")
     (license expat)))
+
+(define-public fzy
+  (package
+    (name "fzy")
+    (version "0.9")
+    (source
+     (origin
+       (method url-fetch)
+       (uri (string-append "https://github.com/jhawthorn/fzy/archive/"
+                           version ".tar.gz"))
+       (file-name (string-append name "-" version ".tar.gz"))
+       (sha256
+        (base32
+         "1xfgxqbkcpi2n4381kj3fq4026qs6by7xhl5gn0fgp3dh232c63j"))))
+    (build-system gnu-build-system)
+    (arguments
+     '(#:make-flags (list "CC=gcc"
+                          (string-append "PREFIX=" (assoc-ref %outputs "out")))
+       #:phases
+       (modify-phases %standard-phases
+         (delete 'configure))))
+    (home-page "https://github.com/jhawthorn/fzy")
+    (synopsis "Fast fuzzy text selector for the terminal with an advanced
+scoring algorithm")
+    (description
+     "Most other fuzzy matchers sort based on the length of a match.  fzy tries
+to find the result the user intended.  It does this by favouring matches on
+consecutive letters and starts of words.  This allows matching using acronyms
+or different parts of the path.
+
+fzy is designed to be used both as an editor plugin and on the command
+line.  Rather than clearing the screen, fzy displays its interface directly
+below the current cursor position, scrolling the screen if necessary.")
+    (license expat)))
-- 
2.7.4

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

* [bug#28225] Subject: [PATCH] gnu: Add fzy.
  2017-08-24 20:19 [bug#28225] Subject: [PATCH] gnu: Add fzy Stefan Reichör
@ 2017-08-27 11:10 ` Thomas Danckaert
  2017-08-30  7:25 ` bug#28225: " Thomas Danckaert
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Danckaert @ 2017-08-27 11:10 UTC (permalink / raw)
  To: Stefan Reichör; +Cc: 28225

Hi Stefan,

Looks good, I'll push as soon as I've verified it builds on current
master (takes a bit due to the recent core-updates merge).

thank you!

Thomas

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

* bug#28225: Subject: [PATCH] gnu: Add fzy.
  2017-08-24 20:19 [bug#28225] Subject: [PATCH] gnu: Add fzy Stefan Reichör
  2017-08-27 11:10 ` Thomas Danckaert
@ 2017-08-30  7:25 ` Thomas Danckaert
  1 sibling, 0 replies; 3+ messages in thread
From: Thomas Danckaert @ 2017-08-30  7:25 UTC (permalink / raw)
  To: Stefan Reichör; +Cc: 28225, 28225-done

Pushed as commit f3f82d1d1.

Thomas

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

end of thread, other threads:[~2017-08-30  7:26 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2017-08-24 20:19 [bug#28225] Subject: [PATCH] gnu: Add fzy Stefan Reichör
2017-08-27 11:10 ` Thomas Danckaert
2017-08-30  7:25 ` bug#28225: " Thomas Danckaert

Code repositories for project(s) associated with this public inbox

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

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).