]> Sergey Matveev's repositories - nnn.git/log
nnn.git
4 years agoPrepare for release v3.2 v3.2
Arun Prakash Jana [Mon, 25 May 2020 23:51:46 +0000 (05:21 +0530)]
Prepare for release v3.2

4 years agoUse lock workflow
Arun Prakash Jana [Sun, 24 May 2020 07:29:14 +0000 (12:59 +0530)]
Use lock workflow

4 years agoUpdate templates
Arun Prakash Jana [Sun, 24 May 2020 05:39:09 +0000 (11:09 +0530)]
Update templates

4 years agoFix build break
Arun Prakash Jana [Sun, 24 May 2020 03:58:29 +0000 (09:28 +0530)]
Fix build break

4 years agoSelect file if file path is passed
Arun Prakash Jana [Sat, 23 May 2020 22:00:51 +0000 (03:30 +0530)]
Select file if file path is passed

4 years agoFix filterfn not in sync with cfg.regex
Arun Prakash Jana [Sat, 23 May 2020 20:21:59 +0000 (01:51 +0530)]
Fix filterfn not in sync with cfg.regex

4 years agoAdd openSUSE Tumbleweed
Arun Prakash Jana [Sat, 23 May 2020 12:37:23 +0000 (18:07 +0530)]
Add openSUSE Tumbleweed

4 years agoAdd -a option to generate a temporary NNN_FIFO (#588)
lvgx [Sat, 23 May 2020 12:03:37 +0000 (14:03 +0200)]
Add -a option to generate a temporary NNN_FIFO (#588)

* Add -a option to generate a temporary NNN_FIFO

* Add documentation for -a option

* plugins/README.md: promote the use of -a

This obsoletes the global FIFO unlink trick, so I remove mentions of it.
@jarun update:

Polish -a

4 years agopreview-kitty polish (async version + text render for SVGs) (#591)
lvgx [Sat, 23 May 2020 10:29:51 +0000 (12:29 +0200)]
preview-kitty polish (async version + text render for SVGs) (#591)

* preview-kitty: async version

The plugin now aborts slow file viewers.

* preview-kitty: use text mode preview for SVG

4 years agoChange binary file detection in preview-tui/kitty (#587)
lvgx [Fri, 22 May 2020 02:48:00 +0000 (04:48 +0200)]
Change binary file detection in preview-tui/kitty (#587)

4 years agoFix build break
Arun Prakash Jana [Wed, 20 May 2020 13:37:00 +0000 (19:07 +0530)]
Fix build break

4 years agoFix #582
Arun Prakash Jana [Wed, 20 May 2020 13:16:12 +0000 (18:46 +0530)]
Fix #582

4 years agoRemove Fedora 29 (EOL)
Arun Prakash Jana [Wed, 20 May 2020 13:08:16 +0000 (18:38 +0530)]
Remove Fedora 29 (EOL)

4 years agoNotify FIFO readers on exit (if any) (#581)
lvgx [Tue, 19 May 2020 16:59:13 +0000 (18:59 +0200)]
Notify FIFO readers on exit (if any) (#581)

This allows to close preview windows opened just before exiting nnn.

4 years agoFix regression from commit 2200a1c
Arun Prakash Jana [Tue, 19 May 2020 12:24:36 +0000 (17:54 +0530)]
Fix regression from commit 2200a1c

4 years agoFix build break
Arun Prakash Jana [Tue, 19 May 2020 03:20:04 +0000 (08:50 +0530)]
Fix build break

4 years agoOption -P: specify plugin key to run on start
Arun Prakash Jana [Mon, 18 May 2020 03:35:19 +0000 (09:05 +0530)]
Option -P: specify plugin key to run on start

4 years agoTake to target on Right/l on symlink in list dir
Arun Prakash Jana [Sun, 17 May 2020 17:24:39 +0000 (22:54 +0530)]
Take to target on Right/l on symlink in list dir

4 years agoUpdate docs
Arun Prakash Jana [Sun, 17 May 2020 12:24:10 +0000 (17:54 +0530)]
Update docs

4 years agoAdd a preview-kitty plugin (#577)
lvgx [Sun, 17 May 2020 12:08:29 +0000 (14:08 +0200)]
Add a preview-kitty plugin (#577)

4 years agoLate handle blocked mimes
Arun Prakash Jana [Sat, 16 May 2020 19:16:49 +0000 (00:46 +0530)]
Late handle blocked mimes

4 years agoFix #575
Arun Prakash Jana [Sat, 16 May 2020 10:01:34 +0000 (15:31 +0530)]
Fix #575

4 years agoFix #573: update docs
Arun Prakash Jana [Thu, 14 May 2020 18:43:55 +0000 (00:13 +0530)]
Fix #573: update docs

4 years agoFix #571
Arun Prakash Jana [Thu, 14 May 2020 07:16:37 +0000 (12:46 +0530)]
Fix #571

4 years agoUpdate docs
Arun Prakash Jana [Wed, 13 May 2020 07:25:46 +0000 (12:55 +0530)]
Update docs

4 years agoAllow launching plugins with Alt + plugin's key (#569)
lvgx [Wed, 13 May 2020 05:06:59 +0000 (07:06 +0200)]
Allow launching plugins with Alt + plugin's key (#569)

* Allow launching plugins with Alt + plugin's key

* Fix Alt key in filter/prompts modes

* Fix handling Alt key in nextsel()

In filter mode: run the associated plugin.
In prompt mode: just throw out the Alt+key input.
In nextsel(): differentiate Alt+key and Esc

4 years agoAdd some space for badges
Arun Prakash Jana [Tue, 12 May 2020 14:20:25 +0000 (19:50 +0530)]
Add some space for badges

4 years agoSkip printing and erasing
Arun Prakash Jana [Tue, 12 May 2020 09:45:47 +0000 (15:15 +0530)]
Skip printing and erasing

4 years agoUpdate docs
Arun Prakash Jana [Mon, 11 May 2020 22:32:55 +0000 (04:02 +0530)]
Update docs

4 years agoAdd asciicast image
Arun Prakash Jana [Mon, 11 May 2020 12:54:31 +0000 (18:24 +0530)]
Add asciicast image

4 years agoAuto-lock old issues
Arun Prakash Jana [Mon, 11 May 2020 10:05:21 +0000 (15:35 +0530)]
Auto-lock old issues

4 years agoDo not leak wfd
Arun Prakash Jana [Sun, 10 May 2020 17:20:29 +0000 (22:50 +0530)]
Do not leak wfd

4 years agoSimplify cd
Arun Prakash Jana [Sun, 10 May 2020 13:45:40 +0000 (19:15 +0530)]
Simplify cd

4 years agoFix #565: chdir when dir is changed
Arun Prakash Jana [Sun, 10 May 2020 10:53:45 +0000 (16:23 +0530)]
Fix #565: chdir when dir is changed

4 years agoFix #564: Option -l: number of lines to move on mouse scroll
Arun Prakash Jana [Sun, 10 May 2020 05:51:37 +0000 (11:21 +0530)]
Fix #564: Option -l: number of lines to move on mouse scroll

4 years agoRemove blocking pipe open in child
Arun Prakash Jana [Sun, 10 May 2020 05:49:13 +0000 (11:19 +0530)]
Remove blocking pipe open in child

4 years agoUse standard exit status everywhere
Arun Prakash Jana [Sun, 10 May 2020 04:34:03 +0000 (10:04 +0530)]
Use standard exit status everywhere

4 years agoUse exit status
Arun Prakash Jana [Sun, 10 May 2020 04:27:20 +0000 (09:57 +0530)]
Use exit status

4 years agoBlock data type
Arun Prakash Jana [Sat, 9 May 2020 20:48:02 +0000 (02:18 +0530)]
Block data type

4 years agoFix reading from pipe when running plugin
Arun Prakash Jana [Sat, 9 May 2020 19:17:02 +0000 (00:47 +0530)]
Fix reading from pipe when running plugin

4 years agoIncrease pipe capacity
Arun Prakash Jana [Sat, 9 May 2020 09:10:52 +0000 (14:40 +0530)]
Increase pipe capacity

4 years agoMinor doc update
Arun Prakash Jana [Thu, 7 May 2020 19:38:42 +0000 (01:08 +0530)]
Minor doc update

4 years agoIgnore -S when start dir is specified
Arun Prakash Jana [Wed, 6 May 2020 17:56:40 +0000 (23:26 +0530)]
Ignore -S when start dir is specified

4 years agopreview-tui: ensure 1st hovered file is previewed (#561)
lvgx [Wed, 6 May 2020 17:25:14 +0000 (19:25 +0200)]
preview-tui: ensure 1st hovered file is previewed (#561)

4 years agogetplugs: add "master" version support (#560)
lvgx [Wed, 6 May 2020 17:06:19 +0000 (19:06 +0200)]
getplugs: add "master" version support (#560)

Pass "master" as first argument to the script.

4 years agoIgnore false lint issue
Arun Prakash Jana [Wed, 6 May 2020 15:58:59 +0000 (21:28 +0530)]
Ignore false lint issue

4 years agoMention tmux version required
Arun Prakash Jana [Wed, 6 May 2020 15:19:21 +0000 (20:49 +0530)]
Mention tmux version required

4 years agoFix no preview update when dir changed with same entry number hovered
Arun Prakash Jana [Wed, 6 May 2020 13:59:46 +0000 (19:29 +0530)]
Fix no preview update when dir changed with same entry number hovered

4 years agoFix broken dir read from pipe
Arun Prakash Jana [Wed, 6 May 2020 13:33:29 +0000 (19:03 +0530)]
Fix broken dir read from pipe

4 years agoDrop fzy support
Arun Prakash Jana [Wed, 6 May 2020 13:11:01 +0000 (18:41 +0530)]
Drop fzy support

4 years agoAdd a bookmarks plugin that supports names (#558)
Todd Yamakawa [Wed, 6 May 2020 11:54:21 +0000 (06:54 -0500)]
Add a bookmarks plugin that supports names (#558)

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
4 years agoUpdate docs
Arun Prakash Jana [Wed, 6 May 2020 05:49:39 +0000 (11:19 +0530)]
Update docs

4 years agoChange requires to dependencies
Arun Prakash Jana [Wed, 6 May 2020 05:29:57 +0000 (10:59 +0530)]
Change requires to dependencies

4 years agoUniform plugins
Arun Prakash Jana [Wed, 6 May 2020 05:12:29 +0000 (10:42 +0530)]
Uniform plugins

4 years agopreview-tui: fix tmux behaviour, del refs to nuke (#559)
lvgx [Wed, 6 May 2020 04:24:31 +0000 (06:24 +0200)]
preview-tui: fix tmux behaviour, del refs to nuke (#559)

As reported by @toddyamakawa

4 years agoPrevent open FIFO prom leaking to subprocess
Léo Villeveygoux [Tue, 5 May 2020 23:45:21 +0000 (01:45 +0200)]
Prevent open FIFO prom leaking to subprocess

This fix previews window staying open after nnn exits, because they
inherited open FIFO (in write mode) from parent nnn process, and never
close it.

4 years agoShorten column width
Arun Prakash Jana [Tue, 5 May 2020 23:17:35 +0000 (04:47 +0530)]
Shorten column width

4 years agoAdd a tmux/xterm based text previewer plugin (#557)
lvgx [Tue, 5 May 2020 23:08:10 +0000 (01:08 +0200)]
Add a tmux/xterm based text previewer plugin (#557)

Uses `NNN_FIFO`, minimal dependencies.

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
4 years agowhich prints to screen
Arun Prakash Jana [Tue, 5 May 2020 23:06:26 +0000 (04:36 +0530)]
which prints to screen

4 years agoUpdate docs
Arun Prakash Jana [Tue, 5 May 2020 20:15:04 +0000 (01:45 +0530)]
Update docs

4 years agoMinor previewer plugin update, docs update
Arun Prakash Jana [Tue, 5 May 2020 19:03:46 +0000 (00:33 +0530)]
Minor previewer plugin update, docs update

4 years agoAdd a tabbed/xembed based file previewer plugin (#552)
lvgx [Tue, 5 May 2020 18:58:57 +0000 (20:58 +0200)]
Add a tabbed/xembed based file previewer plugin (#552)

* Add a tabbed/xembed based file previewer plugin

This plugin is written in bash, because job control is not well
specified in POSIX sh (`jobs` can return anything).

We use `tabbed` [1] as a xembed [2] host, to have a single window
owning each previewer window.

Uses mpv, sxiv, zathura, and the nuke plugin.

[1]: http://tools.suckless.org/tabbed/
[2]: https://specifications.freedesktop.org/xembed-spec/xembed-spec-latest.html

* tabbed-preview: prevent focus steal with xdotool

* preview-tabbed: tabs->4 spaces

* preview-tabbed: add focus prevention timeout

4 years agoFix double free when starting in list mode
Arun Prakash Jana [Tue, 5 May 2020 18:05:14 +0000 (23:35 +0530)]
Fix double free when starting in list mode

4 years agoUpdate docs
Arun Prakash Jana [Tue, 5 May 2020 17:39:24 +0000 (23:09 +0530)]
Update docs

4 years agoDouble click only works on same item (#555)
0xACE [Tue, 5 May 2020 12:32:42 +0000 (14:32 +0200)]
Double click only works on same item (#555)

This patch disables accidental triggering of double clicking when you
are just single clicking on multiple objects fast.

4 years agoSEL_FIRST now displays the correct message (#556)
0xACE [Tue, 5 May 2020 12:19:26 +0000 (14:19 +0200)]
SEL_FIRST now displays the correct message (#556)

A bit scary when you get prompted to remove a file but you wanted to
select a file.

I also made sure all strings are correctly ordered.

4 years agoFix context range check
Arun Prakash Jana [Tue, 5 May 2020 11:44:42 +0000 (17:14 +0530)]
Fix context range check

4 years agoUpdate docs
Arun Prakash Jana [Mon, 4 May 2020 14:47:40 +0000 (20:17 +0530)]
Update docs

4 years agoUpdate docs
Arun Prakash Jana [Mon, 4 May 2020 04:20:31 +0000 (09:50 +0530)]
Update docs

4 years agoAdd an option to print hovered files to a FIFO (#548)
lvgx [Mon, 4 May 2020 04:05:13 +0000 (06:05 +0200)]
Add an option to print hovered files to a FIFO (#548)

* Add an option to print hovered files to a FIFO

This adds an env variable, `NNN_FIFO`, that can be set to a path that
`nnn` will open/create as a FIFO, and where every hovered file's path is
printed. This allows creating external perview/quick open plugins, ...

It can be compiled out with the make variable `O_NOFIFO`.

* Check filename ptr instead of full path (for FIFO)

* Add documentation to use NNN_FIFO in plugins

* Fix path sent to FIFO in empty dirs

4 years agoUse const type
Arun Prakash Jana [Mon, 4 May 2020 02:18:51 +0000 (07:48 +0530)]
Use const type

4 years agoRefactor move_cursor()
Arun Prakash Jana [Mon, 4 May 2020 00:47:38 +0000 (06:17 +0530)]
Refactor move_cursor()

4 years agoFix #550
Arun Prakash Jana [Sun, 3 May 2020 22:55:26 +0000 (04:25 +0530)]
Fix #550

4 years agoAdd is_prefix(), block empty files completely
Arun Prakash Jana [Sun, 3 May 2020 22:38:12 +0000 (04:08 +0530)]
Add is_prefix(), block empty files completely

4 years agoBind getplugs to installed version
Arun Prakash Jana [Sun, 3 May 2020 14:56:06 +0000 (20:26 +0530)]
Bind getplugs to installed version

4 years agoPlugin finder: run custom find/fd/grep/rg/fzf and list
Arun Prakash Jana [Sun, 3 May 2020 11:39:30 +0000 (17:09 +0530)]
Plugin finder: run custom find/fd/grep/rg/fzf and list

4 years agoContext code '+' to create context smartly
Arun Prakash Jana [Sun, 3 May 2020 10:46:14 +0000 (16:16 +0530)]
Context code '+' to create context smartly

4 years agoDecouple listpath and initpath
Arun Prakash Jana [Sun, 3 May 2020 09:55:19 +0000 (15:25 +0530)]
Decouple listpath and initpath

4 years agoShow messages appropriately
Arun Prakash Jana [Sun, 3 May 2020 09:44:26 +0000 (15:14 +0530)]
Show messages appropriately

4 years agoPlugin mimelist: support reading file list from (cmd as) plugin
Arun Prakash Jana [Sun, 3 May 2020 09:25:33 +0000 (14:55 +0530)]
Plugin mimelist: support reading file list from (cmd as) plugin

4 years agobrowse: fix nnn -e (#549)
Danh Doan [Sun, 3 May 2020 04:26:16 +0000 (04:26 +0000)]
browse: fix nnn -e (#549)

The current code will start editor if the mime doesn't start with
"text/". But, we want the opposite.

Simplify the check by using `strncmp` instead.

We may improve by writing a helper: `start_withs` in the future.

This change also cleans -Wstrict-aliasing on Ubuntu 16.04 LTS

4 years agoSimplify unescape() in no locale mode
Arun Prakash Jana [Sat, 2 May 2020 21:22:48 +0000 (02:52 +0530)]
Simplify unescape() in no locale mode

4 years agoDim file details in detail mode
Arun Prakash Jana [Sat, 2 May 2020 14:28:10 +0000 (19:58 +0530)]
Dim file details in detail mode

4 years agoFix: BSD expr syntax error on empty $NNNLVL (#546)
Rami3L [Sat, 2 May 2020 04:14:19 +0000 (12:14 +0800)]
Fix: BSD expr syntax error on empty $NNNLVL (#546)

4 years agoUpdate docs
Arun Prakash Jana [Fri, 1 May 2020 22:55:42 +0000 (04:25 +0530)]
Update docs

4 years agoUpdate docs
Arun Prakash Jana [Fri, 1 May 2020 15:56:56 +0000 (21:26 +0530)]
Update docs

4 years agoInstall logo to desktop icons (#542)
lvgx [Fri, 1 May 2020 15:58:07 +0000 (17:58 +0200)]
Install logo to desktop icons (#542)

This shows the "n³" logo as  icon in application menus, when desktop file is
installed (using `install-desktop` make target).

4 years agoAdd a logo for nnn (n³) (#544)
lvgx [Fri, 1 May 2020 15:47:03 +0000 (17:47 +0200)]
Add a logo for nnn (n³) (#544)

"n³" on a black knight chess piece/black horse head.

4 years agoSupport $_Z_DATA environment variable (#545)
step [Fri, 1 May 2020 09:36:19 +0000 (11:36 +0200)]
Support $_Z_DATA environment variable (#545)

Support `$_Z_DATA` environment variable per z's documentation https://github.com/rupa/z/blob/dcd5541e7dc37a3a32885565539c6fb1479af26f/z.1#L78.
`$_Z_DATA` allows changing the default location of the z database file.

4 years agoMove installation section to Wiki
Arun Prakash Jana [Fri, 1 May 2020 05:51:25 +0000 (11:21 +0530)]
Move installation section to Wiki

4 years agoUpdate autogen packages
Arun Prakash Jana [Fri, 1 May 2020 05:15:25 +0000 (10:45 +0530)]
Update autogen packages

4 years agoNew logo: n³
Arun Prakash Jana [Tue, 28 Apr 2020 12:52:09 +0000 (18:22 +0530)]
New logo: n³

4 years agoRandomize mocp
Arun Prakash Jana [Mon, 27 Apr 2020 03:05:43 +0000 (08:35 +0530)]
Randomize mocp

4 years agoUse mem* function
Arun Prakash Jana [Mon, 27 Apr 2020 02:55:13 +0000 (08:25 +0530)]
Use mem* function

4 years agoLet mocp shuffle
Arun Prakash Jana [Mon, 27 Apr 2020 02:53:22 +0000 (08:23 +0530)]
Let mocp shuffle

4 years agoRandomize mocp playlist
Arun Prakash Jana [Sun, 26 Apr 2020 19:47:03 +0000 (01:17 +0530)]
Randomize mocp playlist

4 years agoVarious plugin improvements
Arun Prakash Jana [Sun, 26 Apr 2020 18:35:11 +0000 (00:05 +0530)]
Various plugin improvements

4 years agoOptimize dups (#539)
KlzXS [Sun, 26 Apr 2020 16:55:03 +0000 (18:55 +0200)]
Optimize dups (#539)

4 years agoShow error at source
Arun Prakash Jana [Sun, 26 Apr 2020 08:35:56 +0000 (14:05 +0530)]
Show error at source

4 years agoFix #537
Arun Prakash Jana [Sun, 26 Apr 2020 08:24:12 +0000 (13:54 +0530)]
Fix #537