From af664191553bff15c2cde4fa0c85b693037fb4d3 Mon Sep 17 00:00:00 2001 From: Efraim Flashner 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: address@hidden address@hidden utf8 support address@hidden user mappings (almost like in @code{vi}) address@hidden ranges in command address@hidden line commands address@hidden user defined commands (with support for ranges) address@hidden registers address@hidden operation undoing/redoing address@hidden fuse file systems support address@hidden trash address@hidden multiple files renaming address@hidden support of filename modifiers address@hidden colorschemes support address@hidden file name color according to file type address@hidden path specific colorscheme customization address@hidden bookmarks address@hidden operation backgrounding address@hidden customizable file viewers address@hidden handy @code{less}-like preview mode address@hidden filtering out and searching for files using regular expressions address@hidden one or two panes view address@hidden enumerate +With the package comes a plugin to use vifm as a vim file selector.") + (license license:gpl2+))) -- 2.10.2