nnn/nnn.spec

58 lines
1.6 KiB
RPMSpec
Raw Normal View History

#
# spec file for package nnn
#
Accepting request 765521 from home:dilawar:branches:utilities - Update to version 2.9 * user pain points addressed - all keybinds and options reviewed by the team and frozen (see #422) - fewer keybinds - greatly improved help screen readability * nuke: sample opener (CLI-only by default) and plugin * fast line redraws instead of full screen refresh (thanks @annagrram) * auto archive handling by extension (see config NNN_ARCHIVE) * Lead key simplified to bookmark key (b or ^/) * single key to toggle order (t or ^T) * plugins - .cbcp: copy selection to system clipboard (internal, program option -x) - .ntfy: show noti on cp, mv, rm completion (internal, program option -x) - autojump: navigate using autojump - upload: paste text files to http://ix.io, upload rest to https://file.io - all fuzzy plugins modified to support both fzf and fzy * more control on plugins - prefix - to skip directory refresh after running (cmd as) plugin - suffix * to skip confirmation after running cmd as plugin * indicate range selection mode with * * list keys at bookmark and plugin key prompts * visit to pinned dir like bookmarks (Bookmark key followed by ,) * toggle executable (key *) * show mime along with file details * more special keys at empty filter prompt: - apply the last filter (^L) - toggle between string and regex (/) - toggle case-sensitivity (:) * retain filter on Esc, Up, Down * show filter details when filter is on * remove option to run filter as cmd on prompt key (can be disruptive) * program options - option -x: enable notis and copy selection to system clipboard - option -g: regex filters (string filter is default now) - option -Q: quit program without confirmation - option -s: load session - option -n: start in nav-as-you-type mode - option -v: version sort - option -V: show program version - option -A: disable dir auto-select * ISO 8601 compliant date in status bar * ported to Haiku OS (thanks @annagrram) * sort only filtered entries (to avoid directory refresh) * fix getplugs to install hidden files * fix several selection issues (see #400) * fix detail mode not restored on loading session * fix symlink to directory not auto-selected * fix regex error on partial regex patterns * fix symlink not shown if stat(2) on target fails * fix flags when spawning a CLI opener as default FM * fix issue with stat flag on Sun (no support for dirent.d_type) * fix current file in current context not saved correctly in session * signed source distribution on release * simplified debugging with line numbers in logs OBS-URL: https://build.opensuse.org/request/show/765521 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=35
2020-01-19 05:21:53 +00:00
# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany.
#
# All modifications and additions to the file contributed by third parties
# remain the property of their copyright owners, unless otherwise agreed
# upon. The license for this file, and modifications and additions to the
# file, is the same license as for the pristine package itself (unless the
# license for the pristine package is not an Open Source License, in which
# case the license is the MIT License). An "Open Source License" is a
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
Accepting request 765521 from home:dilawar:branches:utilities - Update to version 2.9 * user pain points addressed - all keybinds and options reviewed by the team and frozen (see #422) - fewer keybinds - greatly improved help screen readability * nuke: sample opener (CLI-only by default) and plugin * fast line redraws instead of full screen refresh (thanks @annagrram) * auto archive handling by extension (see config NNN_ARCHIVE) * Lead key simplified to bookmark key (b or ^/) * single key to toggle order (t or ^T) * plugins - .cbcp: copy selection to system clipboard (internal, program option -x) - .ntfy: show noti on cp, mv, rm completion (internal, program option -x) - autojump: navigate using autojump - upload: paste text files to http://ix.io, upload rest to https://file.io - all fuzzy plugins modified to support both fzf and fzy * more control on plugins - prefix - to skip directory refresh after running (cmd as) plugin - suffix * to skip confirmation after running cmd as plugin * indicate range selection mode with * * list keys at bookmark and plugin key prompts * visit to pinned dir like bookmarks (Bookmark key followed by ,) * toggle executable (key *) * show mime along with file details * more special keys at empty filter prompt: - apply the last filter (^L) - toggle between string and regex (/) - toggle case-sensitivity (:) * retain filter on Esc, Up, Down * show filter details when filter is on * remove option to run filter as cmd on prompt key (can be disruptive) * program options - option -x: enable notis and copy selection to system clipboard - option -g: regex filters (string filter is default now) - option -Q: quit program without confirmation - option -s: load session - option -n: start in nav-as-you-type mode - option -v: version sort - option -V: show program version - option -A: disable dir auto-select * ISO 8601 compliant date in status bar * ported to Haiku OS (thanks @annagrram) * sort only filtered entries (to avoid directory refresh) * fix getplugs to install hidden files * fix several selection issues (see #400) * fix detail mode not restored on loading session * fix symlink to directory not auto-selected * fix regex error on partial regex patterns * fix symlink not shown if stat(2) on target fails * fix flags when spawning a CLI opener as default FM * fix issue with stat flag on Sun (no support for dirent.d_type) * fix current file in current context not saved correctly in session * signed source distribution on release * simplified debugging with line numbers in logs OBS-URL: https://build.opensuse.org/request/show/765521 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=35
2020-01-19 05:21:53 +00:00
# Please submit bugfixes or comments via http://bugs.opensuse.org/
#
Name: nnn
Version: 3.0
Release: 0
Summary: Terminal based file browser
Accepting request 735727 from home:dilawar:branches:utilities - Update to 2.7 * plugins for image preview, image and video thumbnails * redesigned selection workflow * drop path prefix for files in current dir for selection based archives * custom direct keybinds for plugins * libreadline `.history` file moved to `nnn` config directory * export current entry as `$NN` at command prompt * more informative status bar in light/detail modes * auto-proceed to next file on single file select * path clipping for long paths * completely revamped wiki * new program options: - `-a` to use file access time throughout the program - `-c` to indicate cli-only opener - `-f` to run filter as command on <kbd>^P</kbd> - `-o` replaces config `NNN_RESTRICT_NAV_OPEN` - `-t` replaces config `NNN_NO_AUTOSELECT` - `-r` replaces config `NNN_OPS_PROG` * plugin changes: - `vidthumb` - show video thumbnails in terminal - `mediainf` - show media info (decoupled as a plugin) - `notes` - open a quick notes file/dir in `$EDITOR` (decoupled as a plugin) - `dups` - list duplicate files in the current directory - `oldbigfile` - list large files by access time - `moclyrics` - show lyrics of the track currently playing in MOC - `uidgid` list uid and gid of files in directory - `mocplay` - now detects if a track is playing or not - `organize` - categorize files and move to respective directories - `pastebin` - now uses ix.io paste service - `fzy-edit` - merged into `fzy-open` - `viuimg` - fix directory view - `checksum` - fixed POSIX compliance issues - `boom` - play music in MOC * keybind changes: - select entry: <kbd>Space</kbd> and <kbd>^J</kbd> - select range (or clear selection): <kbd>m</kbd> and <kbd>^K</kbd> - select all in dir: <kbd>a</kbd> - list selection: <kbd>M</kbd> - <kbd>^N</kbd> replaces <kbd>^T</kbd> to toggle _nav-as-you-type_ - <kbd>Shift TAB</kbd> to reverse context cycle - <kbd>'</kbd> to jump to first file in dir - <kbd>S</kbd> for du, <kbd>A</kbd> for apparent du - additional key <kbd>:</kbd> to run plugin - additional key <kbd>F2</kbd> to rename file - additional key <kbd>F5</kbd> to redraw - quit context key <kbd>Leadq</kbd> is removed * Leader key combinations: - <kbd>Lead'</kbd> to jump to first file in dir - <kbd>Lead]</kbd> go to next active context - <kbd>Lead[</kbd> go to prev active context - <kbd>Lead.</kbd> toggle show hidden files * improved duplicate file workflow * improved batch rename workflow when a selection exists * removed the wild load option (`-w`) * removed quick notes (added plugin `notes`) * fix #225 (thanks @KlzXS) * fix `tar`/`bsdtar` always creating tar archives (and not by suffix) * fix single mouse click to select file not working * fix symlink to dir removed on batch rename * fix detail mode not set with program option `-S` OBS-URL: https://build.opensuse.org/request/show/735727 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=29
2019-10-08 08:24:29 +00:00
License: BSD-2-Clause
Group: Productivity/File utilities
Accepting request 628527 from home:dilawar:branches:openSUSE:Factory - Update to 1.9 * Support unlimited number of scripts * Pass currently selected filename as first argument to custom scripts * Support directory auto-select in navigate-as-you-type mode * Show selection name in archive name prompt * Support Cygwin opener * Better support on RHEL 25 with earlier version on curses * Sample script for fzy integration * Now available on OpenBSD * Disabled package generation for Ubuntu 17.10 - Update to 1.8 * Run a custom script * Archive selected file/directory * Show number of cherry-picked files in multi-copy mode * Env var NNN_SHOW_HIDDEN to show hidden files by default * Additional information in help screen * Prefer env var VISUAL, if defined, to EDITOR * New/changed/remapped shortcuts ^] - spawn a new shell in current directory r - edit directory entries in vidir R - run a custom script ^I - toggle navigate-as-you-type mode L - lock the current terminal * All Ctrl shortcuts enabled in navigate-as-you-type mode * Fix: GUI programs closing when parent terminal is closed * Recognize ~, - and & at bookmark prompt * Recognize ruby (.rb) files as text files * Efficient integer-only file size calculation - minor cleanup with spec-cleaner - include license, readme and changelog - Update to 1.7 * Batch rename/move/delete files in vidir (from moreutils) * Copy multiple file paths * Copy file paths when X is unavailable * Optionally quote individual file paths with single quotes on copy * Use ISO 8601 date format in file details * See CHANGELOG for new and changed keybindings - cleanup with spec-cleaner - Ensure neutrality of description. - Update to 1.6 * Shortcut ^O to open file with custom application * Option -b to open bookmarks directly at start * Huge performance improvements around file name storing and handling * Several large static buffers removed or reduced * Several internal algorithms fine tuned for performance / resource usage - pass through optflags - Update to 1.5 * File and directory creation (n) * Env variable NNN_NOWAIT to unblock nnn when opening files (DE-specific) * Show current entry number in status bar * Support archive listing (F) and extraction (Ctrl-X) [using atool] * Show correct file size on i386 for large files (> 2GB) - Drop _service file - Create initial package at 1.4 OBS-URL: https://build.opensuse.org/request/show/628527 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=10
2018-08-10 17:48:20 +00:00
Url: https://github.com/jarun/nnn#nnn
Source0: https://github.com/jarun/nnn/archive/v%{version}.tar.gz#/%{name}-%{version}.tar.gz
BuildRequires: pkgconfig
BuildRequires: readline-devel
%if 0%{?leap_version} == 420300
BuildRequires: ncurses-devel
%else
BuildRequires: pkgconfig(ncursesw)
%endif
Recommends: sshfs
%description
nnn is a fork of noice, a terminal file browser with keyboard
shortcuts for navigation, opening files and running tasks. There is
no config file and MIME associations are hard-coded.
%prep
%setup -q
%build
export CFLAGS="%{optflags}"
make %{?_smp_mflags}
%install
%make_install PREFIX=%{_prefix}
%files
%license LICENSE
%doc README.md CHANGELOG
%{_bindir}/%{name}
%{_mandir}/man1/%{name}.1%{?ext_man}
%changelog