unofficial mirror of guix-devel@gnu.org 
 help / color / mirror / code / Atom feed
* [PATCH]: Add vifm.
@ 2016-11-09 11:50 Efraim Flashner
  2016-11-09 15:33 ` Ludovic Courtès
  0 siblings, 1 reply; 2+ messages in thread
From: Efraim Flashner @ 2016-11-09 11:50 UTC (permalink / raw)
  To: guix-devel


[-- Attachment #1.1: Type: text/plain, Size: 271 bytes --]

This one is a cli file manager with vi-like keybindings.

-- 
Efraim Flashner   <efraim@flashner.co.il>   אפרים פלשנר
GPG key = A28B F40C 3E55 1372 662D  14F7 41AA E7DC CA3D 8351
Confidentiality cannot be guaranteed on emails sent or received unencrypted

[-- Attachment #1.2: 0001-gnu-Add-vifm.patch --]
[-- Type: text/plain, Size: 3075 bytes --]

From af664191553bff15c2cde4fa0c85b693037fb4d3 Mon Sep 17 00:00:00 2001
From: Efraim Flashner <efraim@flashner.co.il>
Date: Wed, 9 Nov 2016 13:49:07 +0200
Subject: [PATCH] gnu: Add vifm.

* gnu/packages/vim.scm (vifm): New variable.
---
 gnu/packages/vim.scm | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 60 insertions(+)

diff --git a/gnu/packages/vim.scm b/gnu/packages/vim.scm
index 172d610..62e8f2c 100644
--- a/gnu/packages/vim.scm
+++ b/gnu/packages/vim.scm
@@ -31,6 +31,7 @@
   #:use-module (gnu packages gawk)
   #:use-module (gnu packages gettext)
   #:use-module (gnu packages glib)
+  #:use-module (gnu packages groff)
   #:use-module (gnu packages gtk)
   #:use-module (gnu packages image)
   #:use-module (gnu packages linux)
@@ -147,3 +148,62 @@ configuration files.")
        ("ruby" ,ruby)
        ("tcl" ,tcl)
        ,@(package-inputs vim)))))
+
+(define-public vifm
+  (package
+    (name "vifm")
+    (version "0.8.2")
+    (source
+      (origin
+        (method url-fetch)
+        (uri (string-append "mirror://sourceforge/vifm/vifm/vifm-"
+                            version ".tar.bz2"))
+        (sha256
+         (base32
+          "07r15kq7kjl3a41sd11ncpsii866xxps4f90zh3lv8jqcrv6silb"))))
+    (build-system gnu-build-system)
+    (arguments
+    '(#:phases
+      (modify-phases %standard-phases
+        (add-after 'patch-source-shebangs 'patch-test-shebangs
+          (lambda _
+            (substitute* (find-files "tests" "\\.c$")
+                         (("/bin/sh") (which "sh")))
+            #t)))))
+    (native-inputs
+     `(("groff" ,groff) ; for the documentation
+       ("perl" ,perl)))
+    (inputs
+     `(("libx11" ,libx11)
+       ("ncurses" ,ncurses)))
+    (home-page "http://vifm.info/")
+    (synopsis "Flexible vi-like file manager using ncurses")
+    (description "Vifm is a file manager providing a @code{vi}-like usage
+experience.  It has similar keybindings and modes (e.g. normal, command line,
+visual).  The interface uses ncurses, thus vifm can be used in text-only
+environments.  It supports a wide range of features, some of which are known
+from the @code{vi}-editor:
+@enumerate
+@item utf8 support
+@item user mappings (almost like in @code{vi})
+@item ranges in command
+@item line commands
+@item user defined commands (with support for ranges)
+@item registers
+@item operation undoing/redoing
+@item fuse file systems support
+@item trash
+@item multiple files renaming
+@item support of filename modifiers
+@item colorschemes support
+@item file name color according to file type
+@item path specific colorscheme customization
+@item bookmarks
+@item operation backgrounding
+@item customizable file viewers
+@item handy @code{less}-like preview mode
+@item filtering out and searching for files using regular expressions
+@item one or two panes view
+@end enumerate
+With the package comes a plugin to use vifm as a vim file selector.")
+    (license license:gpl2+)))
-- 
2.10.2


[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 801 bytes --]

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

* Re: [PATCH]: Add vifm.
  2016-11-09 11:50 [PATCH]: Add vifm Efraim Flashner
@ 2016-11-09 15:33 ` Ludovic Courtès
  0 siblings, 0 replies; 2+ messages in thread
From: Ludovic Courtès @ 2016-11-09 15:33 UTC (permalink / raw)
  To: Efraim Flashner; +Cc: guix-devel

Efraim Flashner <efraim@flashner.co.il> skribis:

> From af664191553bff15c2cde4fa0c85b693037fb4d3 Mon Sep 17 00:00:00 2001
> From: Efraim Flashner <efraim@flashner.co.il>
> Date: Wed, 9 Nov 2016 13:49:07 +0200
> Subject: [PATCH] gnu: Add vifm.
>
> * gnu/packages/vim.scm (vifm): New variable.

[...]

> +          (lambda _
> +            (substitute* (find-files "tests" "\\.c$")
> +                         (("/bin/sh") (which "sh")))

Please align the line below the ‘u’ of ‘substitute*’.

> +    (synopsis "Flexible vi-like file manager using ncurses")
> +    (description "Vifm is a file manager providing a @code{vi}-like usage
> +experience.  It has similar keybindings and modes (e.g. normal, command line,
> +visual).  The interface uses ncurses, thus vifm can be used in text-only
> +environments.  It supports a wide range of features, some of which are known
> +from the @code{vi}-editor:

“the @command{vi} editor:”

Otherwise LGTM, thanks!

Ludo’.

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

end of thread, other threads:[~2016-11-09 15:33 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-11-09 11:50 [PATCH]: Add vifm Efraim Flashner
2016-11-09 15:33 ` Ludovic Courtès

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).