]> Sergey Matveev's repositories - nnn.git/log
nnn.git
3 years agoPrepare for release v3.3 v3.3
Arun Prakash Jana [Tue, 14 Jul 2020 00:14:41 +0000 (05:44 +0530)]
Prepare for release v3.3

3 years agoUpdate help
Arun Prakash Jana [Sun, 12 Jul 2020 18:50:12 +0000 (00:20 +0530)]
Update help

3 years agoAlt+Esc to exit nav-to-type and redraw
Arun Prakash Jana [Sun, 12 Jul 2020 18:30:34 +0000 (00:00 +0530)]
Alt+Esc to exit nav-to-type and redraw

3 years agoAdd a note that Esc cancels
Arun Prakash Jana [Thu, 9 Jul 2020 15:00:30 +0000 (20:30 +0530)]
Add a note that Esc cancels

3 years agoFix #675
Arun Prakash Jana [Thu, 9 Jul 2020 14:55:39 +0000 (20:25 +0530)]
Fix #675

3 years agoUpdate preview-tui (#674)
lvgx [Wed, 8 Jul 2020 15:23:35 +0000 (17:23 +0200)]
Update preview-tui (#674)

Co-authored-by: akimdi <akimdi@users.noreply.github.com>
3 years agoUse the term mark instead of pin
Arun Prakash Jana [Tue, 7 Jul 2020 02:27:43 +0000 (07:57 +0530)]
Use the term mark instead of pin

3 years agoPin dir when visitng target file in find and list
Arun Prakash Jana [Tue, 7 Jul 2020 01:59:38 +0000 (07:29 +0530)]
Pin dir when visitng target file in find and list

3 years agoAdd quick find (fd) and grep (rg) plugin examples
Arun Prakash Jana [Mon, 6 Jul 2020 18:13:36 +0000 (23:43 +0530)]
Add quick find (fd) and grep (rg) plugin examples

3 years agoRemove snprintf() from start-up path
Arun Prakash Jana [Sat, 4 Jul 2020 17:31:36 +0000 (23:01 +0530)]
Remove snprintf() from start-up path

3 years agoRevert "Simplify check"
Arun Prakash Jana [Sun, 28 Jun 2020 15:03:54 +0000 (20:33 +0530)]
Revert "Simplify check"

This reverts commit 37e5e6189a10ce0da8df4dbdb64398cf7a02c0bd.

3 years agoCopy the correct length
Arun Prakash Jana [Sat, 27 Jun 2020 19:22:24 +0000 (00:52 +0530)]
Copy the correct length

3 years agoMinor refactor
Arun Prakash Jana [Sat, 27 Jun 2020 18:39:48 +0000 (00:09 +0530)]
Minor refactor

3 years agoFix build break
Arun Prakash Jana [Sat, 27 Jun 2020 18:18:23 +0000 (23:48 +0530)]
Fix build break

3 years agoAdd relative paths support for cp/mv as (#668)
KlzXS [Sat, 27 Jun 2020 17:46:17 +0000 (17:46 +0000)]
Add relative paths support for cp/mv as (#668)

3 years agoFix build break
Arun Prakash Jana [Sat, 27 Jun 2020 17:44:14 +0000 (23:14 +0530)]
Fix build break

3 years agoPin current path on archive/remote mount
Arun Prakash Jana [Sat, 27 Jun 2020 16:52:20 +0000 (22:22 +0530)]
Pin current path on archive/remote mount

3 years agoUpdate docs
Arun Prakash Jana [Sat, 27 Jun 2020 15:38:55 +0000 (21:08 +0530)]
Update docs

3 years agoSimplify check
Arun Prakash Jana [Thu, 25 Jun 2020 14:29:47 +0000 (19:59 +0530)]
Simplify check

3 years agoFix check when char is unsigned (#665)
Sijmen J. Mulder [Tue, 23 Jun 2020 23:05:42 +0000 (01:05 +0200)]
Fix check when char is unsigned (#665)

If char is unsigned (as on ARM) subtracting a larger number would
result in a wrap around, not a negative value.

  src/nnn.c: In function 'readpipe':
  src/nnn.c:4325:11: warning: comparison is always false due to limited
  range of data type [-Wtype-limits]

     if (ctx < 0 || ctx > CTX_MAX)
             ^

3 years agoAlways use builtin alloca() (#666)
Sijmen J. Mulder [Tue, 23 Jun 2020 22:47:05 +0000 (00:47 +0200)]
Always use builtin alloca() (#666)

Fixes the build on NetBSD 9 on arm64.

GCC expands alloca() to __builtin_alloca() but only in nonstandard mode,
e.g. when -std=... is not supplied.  In standards mode (with -std=...)
alloca() is left undefined by GCC. The C library may define it but it
also may not, as on NetBSD on arm64:

    $ uname -srp
    NetBSD 9.0 aarch64

    $ cat alloca.c
    #include <stdlib.h>
    int main() { char *p = alloca(10); }

    $ gcc alloca.c

    $ gcc -std=c99 alloca.c
    alloca.c:(.text+0xc): warning: Warning: reference to the libc
     supplied alloca(3); this most likely will not work. Please use the
     compiler provided version of alloca(3), by supplying the
     appropriate compiler flags (e.g. not -std=c89).
    ld: alloca.c:(.text+0xc): undefined reference to `alloca'

The fix is to either not use standards mode (undesirable) or to
explicitly use the builtin, which is what this patch does.

This is also sufficient for Solarius/Illumos so that check and include
are removed.

3 years agoAdd -Wshadow to CFLAGS and fixes
Arun Prakash Jana [Mon, 22 Jun 2020 03:47:59 +0000 (09:17 +0530)]
Add -Wshadow to CFLAGS and fixes

3 years agoAdd plugin bulknew (#662)
KlzXS [Sat, 20 Jun 2020 13:39:32 +0000 (13:39 +0000)]
Add plugin bulknew (#662)

* Add plugin bulknew

* Update documentation

* Update dependencies

* Add whitespace note

3 years agoUpdate contributing guideline
Arun Prakash Jana [Fri, 19 Jun 2020 02:01:54 +0000 (07:31 +0530)]
Update contributing guideline

3 years agoAvoid SIGWINCH interruptions of NNN_PIPE IO (#659)
lvgx [Fri, 19 Jun 2020 01:40:37 +0000 (03:40 +0200)]
Avoid SIGWINCH interruptions of NNN_PIPE IO (#659)

Fixes #656

3 years agoInitial CONTRIBUTING.md (#655)
Mario [Thu, 18 Jun 2020 03:36:27 +0000 (05:36 +0200)]
Initial CONTRIBUTING.md (#655)

3 years agoUpdate docs
Arun Prakash Jana [Tue, 16 Jun 2020 13:39:09 +0000 (19:09 +0530)]
Update docs

3 years agoadded support webp format (#652)
akimdi [Tue, 16 Jun 2020 13:38:46 +0000 (16:38 +0300)]
added support webp format (#652)

* added support webp format

* update nuke plugin with support webp format

3 years agoOption -u to disable current/selection prompt
Arun Prakash Jana [Mon, 15 Jun 2020 14:24:44 +0000 (19:54 +0530)]
Option -u to disable current/selection prompt

3 years agoClear selection after some operations (see notes)
Arun Prakash Jana [Mon, 15 Jun 2020 13:35:44 +0000 (19:05 +0530)]
Clear selection after some operations (see notes)

Selection is cleared after successful:
- file removal
- batch rename
- link creation

However, selection is not cleared after:
- archive creation: user may want to delete the files after archiving

4 years agoUpdate docs
Arun Prakash Jana [Sun, 14 Jun 2020 05:45:41 +0000 (11:15 +0530)]
Update docs

4 years agoShow '+' in statusbar instead of 's' for selection
Arun Prakash Jana [Sun, 14 Jun 2020 04:26:34 +0000 (09:56 +0530)]
Show '+' in statusbar instead of 's' for selection

4 years agoRefactor key-val pair parsing
Arun Prakash Jana [Sat, 13 Jun 2020 19:01:48 +0000 (00:31 +0530)]
Refactor key-val pair parsing

4 years agoMake once-used function inline
Arun Prakash Jana [Sat, 13 Jun 2020 18:30:39 +0000 (00:00 +0530)]
Make once-used function inline

4 years agoUpdate docs
Arun Prakash Jana [Fri, 12 Jun 2020 11:29:57 +0000 (16:59 +0530)]
Update docs

4 years agoSane tree defaults and viu support (#649)
Mario [Thu, 11 Jun 2020 13:15:54 +0000 (15:15 +0200)]
Sane tree defaults and viu support (#649)

4 years agoFeature #534: Support hardware cursor sync
Ian R [Thu, 11 Jun 2020 05:46:40 +0000 (05:46 +0000)]
Feature #534: Support hardware cursor sync

4 years agoUpdate docs
Arun Prakash Jana [Thu, 11 Jun 2020 05:41:35 +0000 (11:11 +0530)]
Update docs

4 years agosupport imv in imgview and nuke
Arun Prakash Jana [Wed, 10 Jun 2020 20:19:40 +0000 (01:49 +0530)]
support imv in imgview and nuke

4 years agoUse Firefox Send for upload if ffsend is found
Arun Prakash Jana [Wed, 10 Jun 2020 18:02:03 +0000 (23:32 +0530)]
Use Firefox Send for upload if ffsend is found

4 years agoAdd hx as alternative hex viewer
Arun Prakash Jana [Wed, 10 Jun 2020 17:03:59 +0000 (22:33 +0530)]
Add hx as alternative hex viewer

4 years agopreview-tui: make scope & pistol run before `file` (#647)
Doron Behar [Wed, 10 Jun 2020 07:50:38 +0000 (10:50 +0300)]
preview-tui: make scope & pistol run before `file` (#647)

Both Pistol and `scope.sh` are run `file --mimetype` or an equivalent, internally.
Thus, for speed, it's better to run them before almost anything else.

4 years agoPistol support (#646)
Mario [Wed, 10 Jun 2020 00:41:57 +0000 (02:41 +0200)]
Pistol support (#646)

4 years agoKitty splits (#643)
Mario [Wed, 10 Jun 2020 00:26:15 +0000 (02:26 +0200)]
Kitty splits (#643)

* Easier to browse plugin README.md

* Splits are inverted

* trying to fix kitty splits

* Correctly restores the kitty layout

* More clear comments

4 years agoFixes environmental variables not being passed on preview-tui (#644)
Mario [Tue, 9 Jun 2020 23:58:35 +0000 (01:58 +0200)]
Fixes environmental variables not being passed on preview-tui (#644)

4 years agoSelection mode don't need to be persistent
Arun Prakash Jana [Tue, 9 Jun 2020 18:13:49 +0000 (23:43 +0530)]
Selection mode don't need to be persistent

4 years agoPlugin run flags don't need to be persistent
Arun Prakash Jana [Tue, 9 Jun 2020 18:03:32 +0000 (23:33 +0530)]
Plugin run flags don't need to be persistent

4 years agoPicker mode doesn't need to be persistent
Arun Prakash Jana [Tue, 9 Jun 2020 17:33:36 +0000 (23:03 +0530)]
Picker mode doesn't need to be persistent

4 years agoRetain order on session load
Arun Prakash Jana [Tue, 9 Jun 2020 16:56:35 +0000 (22:26 +0530)]
Retain order on session load

4 years agopreview-tui splits are inverted (#642)
Mario [Tue, 9 Jun 2020 14:57:28 +0000 (16:57 +0200)]
preview-tui splits are inverted (#642)

* Easier to browse plugin README.md

* Splits are inverted

* $SPLIT clarification and default values for $SPLIT and $TERMINAL

4 years agoEasier to browse plugin README.md (#641)
Mario [Tue, 9 Jun 2020 13:59:28 +0000 (15:59 +0200)]
Easier to browse plugin README.md (#641)

4 years agoUpdate docs
Arun Prakash Jana [Tue, 9 Jun 2020 05:14:09 +0000 (10:44 +0530)]
Update docs

4 years agoUnified preview-tui and preview-kitty scripts (#634)
Mario [Tue, 9 Jun 2020 01:09:35 +0000 (03:09 +0200)]
Unified preview-tui and preview-kitty scripts (#634)

* Unified preview-tui and preview-kitty

* Remove preview-kitty

* No need to set $TERMINAL

* fix undeclared variable

* Integrated support for scope.sh

* Review fixes

* allow_remote_control must be enabled on kitty

* Documentation, kitty splits and images fallback

* fix restoring kitty layout

4 years agoSimplify subdir creation
Arun Prakash Jana [Mon, 8 Jun 2020 16:26:33 +0000 (21:56 +0530)]
Simplify subdir creation

4 years agoDerive session and mount paths, shorten paths
Arun Prakash Jana [Mon, 8 Jun 2020 04:14:53 +0000 (09:44 +0530)]
Derive session and mount paths, shorten paths

4 years agoSubdir 'mounts' for remote/archive mounts
Arun Prakash Jana [Mon, 8 Jun 2020 03:18:20 +0000 (08:48 +0530)]
Subdir 'mounts' for remote/archive mounts

4 years agoFix #639: store NNNLVL in tmp var
Arun Prakash Jana [Sat, 6 Jun 2020 19:04:46 +0000 (00:34 +0530)]
Fix #639: store NNNLVL in tmp var

4 years agopreview-kitty: fix crash on first file on dash (#636)
lvgx [Sat, 6 Jun 2020 15:17:41 +0000 (17:17 +0200)]
preview-kitty: fix crash on first file on dash (#636)

In the dash shell, when `exec < fifo` is interrupted by SIGCHLD, it exits.
So we replace it with `cat fifo |`.

Issue discussed in #614

4 years agoFix #637: remove mount dir after unmount
Arun Prakash Jana [Sat, 6 Jun 2020 10:51:43 +0000 (16:21 +0530)]
Fix #637: remove mount dir after unmount

4 years agoUpdate preview-kitty (#638)
ncoder-1 [Sat, 6 Jun 2020 03:17:40 +0000 (03:17 +0000)]
Update preview-kitty (#638)

Fixed typo in preview-kitty.

4 years agoUpdate docs
Arun Prakash Jana [Thu, 4 Jun 2020 14:52:35 +0000 (20:22 +0530)]
Update docs

4 years agoAdded selection prompt and README entry (#633)
KlzXS [Thu, 4 Jun 2020 14:51:50 +0000 (14:51 +0000)]
Added selection prompt and README entry (#633)

4 years agoAdd Live Previews asciicast
Arun Prakash Jana [Thu, 4 Jun 2020 04:03:48 +0000 (09:33 +0530)]
Add Live Previews asciicast

Thanks @Kabouik!

4 years agopreview-tui: wait killed previewers (#632)
lvgx [Thu, 4 Jun 2020 02:53:04 +0000 (04:53 +0200)]
preview-tui: wait killed previewers (#632)

4 years agoAdded GPG encrypt and decrypt plugins (#630)
KlzXS [Thu, 4 Jun 2020 02:47:09 +0000 (02:47 +0000)]
Added GPG encrypt and decrypt plugins (#630)

* Added GPG encrypt and decrypt plugins

* Made description more descriptive

4 years agoFix tmux version check
Arun Prakash Jana [Wed, 3 Jun 2020 22:11:42 +0000 (03:41 +0530)]
Fix tmux version check

4 years agobookmarks: Pipe error to PAGER and clean up code (#631)
Todd Yamakawa [Wed, 3 Jun 2020 19:17:46 +0000 (14:17 -0500)]
bookmarks: Pipe error to PAGER and clean up code (#631)

Co-authored-by: Todd Yamakawa <todd.yamakawa@arm.com>
4 years agoAdd new ToDo list
Arun Prakash Jana [Wed, 3 Jun 2020 10:42:27 +0000 (16:12 +0530)]
Add new ToDo list

4 years agoEsc to send hovered path to FIFO
Arun Prakash Jana [Wed, 3 Jun 2020 10:26:10 +0000 (15:56 +0530)]
Esc to send hovered path to FIFO

4 years agoForce notify on left click (right selects & updates)
Arun Prakash Jana [Wed, 3 Jun 2020 09:21:52 +0000 (14:51 +0530)]
Force notify on left click (right selects & updates)

4 years agoMove Live Preview usage notes to Wiki page
Arun Prakash Jana [Wed, 3 Jun 2020 03:45:00 +0000 (09:15 +0530)]
Move Live Preview usage notes to Wiki page

4 years agoKey | to send file path to FIFO
Arun Prakash Jana [Tue, 2 Jun 2020 11:18:28 +0000 (16:48 +0530)]
Key | to send file path to FIFO

4 years agoRefresh hovered for preview on mouse click
Arun Prakash Jana [Tue, 2 Jun 2020 10:59:26 +0000 (16:29 +0530)]
Refresh hovered for preview on mouse click

4 years agopreview-tui: simplify, add generic fifo_pager() (#625)
lvgx [Tue, 2 Jun 2020 08:56:50 +0000 (10:56 +0200)]
preview-tui: simplify, add generic fifo_pager() (#625)

* preview-tui: simplify, add generic fifo_pager()

I've commented new filetype checks for now, as we need to discuss which ones
should be included by default, keeping in mind that this is supposed to be a
minimal, adaptable plugin.

* preview-tui: preview with man, tar, unzip by default

4 years agoKeep preview-tui generic
Arun Prakash Jana [Tue, 2 Jun 2020 00:22:47 +0000 (05:52 +0530)]
Keep preview-tui generic

4 years agoFix #624: wait for user input if cmd fails
Arun Prakash Jana [Mon, 1 Jun 2020 15:51:01 +0000 (21:21 +0530)]
Fix #624: wait for user input if cmd fails

4 years agoSupport mime, extension in preview-tui
Arun Prakash Jana [Mon, 1 Jun 2020 13:52:16 +0000 (19:22 +0530)]
Support mime, extension in preview-tui

4 years agoFix shellcheck
Arun Prakash Jana [Mon, 1 Jun 2020 09:49:24 +0000 (15:19 +0530)]
Fix shellcheck

4 years agoSimplify preview-tui
Arun Prakash Jana [Mon, 1 Jun 2020 09:47:40 +0000 (15:17 +0530)]
Simplify preview-tui

4 years agoUpdate preview-tui to adapt to terminal size
Arun Prakash Jana [Mon, 1 Jun 2020 08:42:34 +0000 (14:12 +0530)]
Update preview-tui to adapt to terminal size

4 years agoWorkaround #621: preview is updated on redraw (^L)
Arun Prakash Jana [Mon, 1 Jun 2020 08:06:02 +0000 (13:36 +0530)]
Workaround #621: preview is updated on redraw (^L)

4 years agoWrap FILE_MIME_OPTS use in check (#622)
Sijmen J. Mulder [Mon, 1 Jun 2020 01:17:03 +0000 (03:17 +0200)]
Wrap FILE_MIME_OPTS use in check (#622)

We leave it undefined on Solaris/Illumos because no such options exist,
so only use it if we have it.

4 years agoDocument non-repeat-refresh of file under preview
Arun Prakash Jana [Sun, 31 May 2020 20:10:02 +0000 (01:40 +0530)]
Document non-repeat-refresh of file under preview

4 years agoRemove redundant key F5
Arun Prakash Jana [Sun, 31 May 2020 17:50:08 +0000 (23:20 +0530)]
Remove redundant key F5

4 years agoDo not auto-revive filter in nav-to-type mode
Arun Prakash Jana [Sun, 31 May 2020 17:35:27 +0000 (23:05 +0530)]
Do not auto-revive filter in nav-to-type mode

4 years agoSimplify get_input()
Arun Prakash Jana [Sun, 31 May 2020 14:40:11 +0000 (20:10 +0530)]
Simplify get_input()

4 years agoSet the corrent keybind for plugin
Arun Prakash Jana [Sun, 31 May 2020 07:56:39 +0000 (13:26 +0530)]
Set the corrent keybind for plugin

4 years agoUpdate template
Arun Prakash Jana [Sun, 31 May 2020 07:47:36 +0000 (13:17 +0530)]
Update template

4 years agoUpdate docs
Arun Prakash Jana [Sun, 31 May 2020 04:45:34 +0000 (10:15 +0530)]
Update docs

4 years agoF5 to redraw (even with filter)
Arun Prakash Jana [Sat, 30 May 2020 17:55:01 +0000 (23:25 +0530)]
F5 to redraw (even with filter)

4 years agoRetire ^S as select plugin
Arun Prakash Jana [Sat, 30 May 2020 16:32:36 +0000 (22:02 +0530)]
Retire ^S as select plugin

4 years agoalso send mutool to $PAGER (#615)
basbebe [Sat, 30 May 2020 13:18:12 +0000 (15:18 +0200)]
also send mutool to $PAGER (#615)

4 years agoRemove NNN_PIPE on exit
Arun Prakash Jana [Sat, 30 May 2020 10:01:37 +0000 (15:31 +0530)]
Remove NNN_PIPE on exit

4 years agoUpdate docs
Arun Prakash Jana [Sat, 30 May 2020 09:12:24 +0000 (14:42 +0530)]
Update docs

4 years agoSupport make option O_CTX8 for 8 contexts
Arun Prakash Jana [Sat, 30 May 2020 01:29:45 +0000 (06:59 +0530)]
Support make option O_CTX8 for 8 contexts

Note that this is not compatible with 4 contexts.

4 years agoUse bitfields for runtime transient states
Arun Prakash Jana [Sat, 30 May 2020 01:15:45 +0000 (06:45 +0530)]
Use bitfields for runtime transient states

4 years agoHandle number of contexts in a generic fashion
Arun Prakash Jana [Sat, 30 May 2020 00:26:12 +0000 (05:56 +0530)]
Handle number of contexts in a generic fashion

This supports using a power of 2 number of contexts like 2, 4 or 8.
Note that the number of contexts are not backward compatible. So if
user is having 8 contexts and plans to use 4, his sessions with > 1
contexts open may break.

We can have a make option to enable 8 contexts. 4 remains default.

4 years agoRevert "Alt+Enter: clear filter and exit filter prompt"
Arun Prakash Jana [Fri, 29 May 2020 23:54:41 +0000 (05:24 +0530)]
Revert "Alt+Enter: clear filter and exit filter prompt"

This reverts commit 2232772db4f00eb936ee66e57d35dd8bc5344d86.

4 years agoAdd -P to man (#612)
lvgx [Fri, 29 May 2020 23:47:06 +0000 (01:47 +0200)]
Add -P to man (#612)

4 years agoMerge pull request #607 from leovilok/signals
Mischievous Meerkat [Fri, 29 May 2020 23:38:45 +0000 (05:08 +0530)]
Merge pull request #607 from leovilok/signals

Cleanly handle SIGTERM and SIGHUP