- Update to version 3.2 * previews - config `NNN_FIFO` to write hovered file paths a previewer can read - plugin `preview-tabbed`: [tabbed](https://tools.suckless.org/tabbed)/xembed based file previewer - plugin `preview-tui`: simple TUI file previewer in tmux/xterm - plugin `preview-kitty`: preview using kitty terminal's capabilities - [live preview](https://github.com/jarun/nnn/wiki/Live-previews) configuration example * find & list - send list of files from (cmd run as) plugin to `nnn` - plugin `finder`: find/fd/fzf/grep/ripgrep/fzf (in subtree) and list in `nnn` - <kbd>Right</kbd> or <kbd>l</kbd> on symlink in list dir takes to target file * persistent session option `-S` [for disk usage, run `nnn -T d` (see help)] * hover on the file when a file path is passed as positional argument * go to first file or match with <kbd>'</kbd> (followed by <kbd>'</kbd> or <kbd>char</kbd>) * config `NNN_SEL` to specify custom selection file * config `NNN_LOCKER` to specify locker program * dim file details in detail mode * call `chdir()` on directory change * option `-l`: number of lines to move on mouse scroll * graphical [keybind map](https://github.com/jarun/nnn/wiki/Usage#graphical-map) * let `NNN_COLORS` override `NO_COLOR` * plugins - option `-P`: run plugin by key at start - run plugins with <kbd>Alt+key</kbd> - allow `NNN_PIPE` usage by commands run as plugin - input format to `NNN_PIPE`: `<ctxcode><opcode><data>` (see plugins doc) - set `ctxcode` to `+` for smart context usage (next inactive, else current) - `getplugs` to fetch plugins by installed version of `nnn` - plugin `mimelist`: list files by mime type in subtree - plugin `bookmarks`: named bookmarks using symlinks - plugin `nbak`: backup `nnn` config - `nuke` adds lowdown as alternative markdown viewer - several plugin improvements * fix broken screen on resize (see #520) * fix broken version sort (see #550) * fix list and pipe modes not working together * fix multiple issues with listing files * fix `@` shown in detail mode for symlink to dir * fix listing files directly under `/` * move to `-std=c11` OBS-URL: https://build.opensuse.org/request/show/808880 OBS-URL: https://build.opensuse.org/package/show/utilities/nnn?expand=0&rev=41
58 lines
1.6 KiB
RPMSpec
58 lines
1.6 KiB
RPMSpec
#
|
|
# spec file for package nnn
|
|
#
|
|
# Copyright (c) 2020 SUSE LLC
|
|
#
|
|
# 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.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: nnn
|
|
Version: 3.2
|
|
Release: 0
|
|
Summary: Terminal based file browser
|
|
License: BSD-2-Clause
|
|
Group: Productivity/File utilities
|
|
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
|