]> Sergey Matveev's repositories - nnn.git/log
nnn.git
5 years agoLate get and set NNNLVL before spawning shell
Arun Prakash Jana [Mon, 17 Feb 2020 15:04:03 +0000 (20:34 +0530)]
Late get and set NNNLVL before spawning shell

5 years agoMinor reformat
Arun Prakash Jana [Mon, 17 Feb 2020 14:21:24 +0000 (19:51 +0530)]
Minor reformat

5 years agoUpdate docs
Arun Prakash Jana [Sat, 15 Feb 2020 01:55:18 +0000 (07:25 +0530)]
Update docs

5 years agoRemember file name when refresh is not requested
Arun Prakash Jana [Fri, 14 Feb 2020 17:14:49 +0000 (22:44 +0530)]
Remember file name when refresh is not requested

5 years agoDo not play dat by extension
Arun Prakash Jana [Fri, 14 Feb 2020 17:07:47 +0000 (22:37 +0530)]
Do not play dat by extension

5 years agoPolish PR #476
Arun Prakash Jana [Fri, 14 Feb 2020 15:23:20 +0000 (20:53 +0530)]
Polish PR #476

5 years agoAdd NNN_OPTS environment variable feature (#476)
Uffe Jakobsen [Fri, 14 Feb 2020 15:05:18 +0000 (16:05 +0100)]
Add NNN_OPTS environment variable feature (#476)

5 years agoRemove redundant mouse mask variable
Arun Prakash Jana [Fri, 14 Feb 2020 13:18:44 +0000 (18:48 +0530)]
Remove redundant mouse mask variable

5 years agoCompile option O_NOMOUSE to disable mouse support
Arun Prakash Jana [Fri, 14 Feb 2020 02:51:30 +0000 (08:21 +0530)]
Compile option O_NOMOUSE to disable mouse support

5 years agoMinor refactor
Arun Prakash Jana [Fri, 14 Feb 2020 01:47:09 +0000 (07:17 +0530)]
Minor refactor

5 years agoUse atoi from lib, use attribute for unused
Arun Prakash Jana [Fri, 14 Feb 2020 01:12:30 +0000 (06:42 +0530)]
Use atoi from lib, use attribute for unused

5 years agoMinor refactor
Arun Prakash Jana [Thu, 13 Feb 2020 14:24:01 +0000 (19:54 +0530)]
Minor refactor

5 years agoFix static package name in repo
Arun Prakash Jana [Thu, 13 Feb 2020 11:08:06 +0000 (16:38 +0530)]
Fix static package name in repo

5 years agoFix #474: explicitly indicate gzip to tar
Arun Prakash Jana [Thu, 13 Feb 2020 09:48:56 +0000 (15:18 +0530)]
Fix #474: explicitly indicate gzip to tar

5 years agoUse s in statusbar to indicate selection enabled
Arun Prakash Jana [Wed, 12 Feb 2020 20:26:16 +0000 (01:56 +0530)]
Use s in statusbar to indicate selection enabled

5 years agoEnable UTF8 for PCRE
Arun Prakash Jana [Wed, 12 Feb 2020 17:32:02 +0000 (23:02 +0530)]
Enable UTF8 for PCRE

5 years agoUpdate Haiku Makefile
Arun Prakash Jana [Wed, 12 Feb 2020 03:24:04 +0000 (08:54 +0530)]
Update Haiku Makefile

5 years agoFix static file upload
Arun Prakash Jana [Wed, 12 Feb 2020 03:02:49 +0000 (08:32 +0530)]
Fix static file upload

5 years agoPrepare for release v3.0 v3.0
Arun Prakash Jana [Wed, 12 Feb 2020 02:00:15 +0000 (07:30 +0530)]
Prepare for release v3.0

5 years agoPlay known video file types by extension
Arun Prakash Jana [Wed, 12 Feb 2020 01:35:41 +0000 (07:05 +0530)]
Play known video file types by extension

5 years agoDo not end selection on redraw
Arun Prakash Jana [Mon, 10 Feb 2020 13:31:27 +0000 (19:01 +0530)]
Do not end selection on redraw

5 years agoFix prefix calcualtion
Arun Prakash Jana [Sun, 9 Feb 2020 02:51:12 +0000 (08:21 +0530)]
Fix prefix calcualtion

5 years agoFix man
Arun Prakash Jana [Sun, 9 Feb 2020 00:10:24 +0000 (05:40 +0530)]
Fix man

5 years agoWhen a file is edited, vim adds a \n at the end
Arun Prakash Jana [Sun, 9 Feb 2020 00:08:12 +0000 (05:38 +0530)]
When a file is edited, vim adds a \n at the end

5 years agoSimplify and fix common prefix calculation
Arun Prakash Jana [Sat, 8 Feb 2020 18:55:58 +0000 (00:25 +0530)]
Simplify and fix common prefix calculation

5 years agoFix build break
Arun Prakash Jana [Sat, 8 Feb 2020 14:28:30 +0000 (19:58 +0530)]
Fix build break

5 years agoUse xrealpath() to show unresolved symlinks
Arun Prakash Jana [Sat, 8 Feb 2020 14:05:07 +0000 (19:35 +0530)]
Use xrealpath() to show unresolved symlinks

5 years agoIgnore . and .. in file list
Arun Prakash Jana [Sat, 8 Feb 2020 13:42:00 +0000 (19:12 +0530)]
Ignore . and .. in file list

5 years ago1. dirname() loses path, 2. use realpath()
Arun Prakash Jana [Sat, 8 Feb 2020 13:21:56 +0000 (18:51 +0530)]
1. dirname() loses path, 2. use realpath()

5 years agoShow target file size in list mode
Arun Prakash Jana [Sat, 8 Feb 2020 12:15:49 +0000 (17:45 +0530)]
Show target file size in list mode

5 years agoFix empty dir on list files
Arun Prakash Jana [Fri, 7 Feb 2020 18:41:10 +0000 (00:11 +0530)]
Fix empty dir on list files

5 years agoClear filter on a manual dir relaod
Arun Prakash Jana [Fri, 7 Feb 2020 00:23:15 +0000 (05:53 +0530)]
Clear filter on a manual dir relaod

5 years agoMinor refactor
Arun Prakash Jana [Tue, 4 Feb 2020 17:40:46 +0000 (23:10 +0530)]
Minor refactor

5 years agoDocument list files
Arun Prakash Jana [Mon, 3 Feb 2020 03:16:14 +0000 (08:46 +0530)]
Document list files

5 years agoLate allocate memory for path pointers
Arun Prakash Jana [Sun, 2 Feb 2020 13:40:35 +0000 (19:10 +0530)]
Late allocate memory for path pointers

5 years agoxrealloc() may move memory
Arun Prakash Jana [Sun, 2 Feb 2020 12:06:35 +0000 (17:36 +0530)]
xrealloc() may move memory

5 years agoFix build break
Arun Prakash Jana [Sun, 2 Feb 2020 11:55:47 +0000 (17:25 +0530)]
Fix build break

5 years agoRefactor file list processing
Arun Prakash Jana [Sun, 2 Feb 2020 11:37:53 +0000 (17:07 +0530)]
Refactor file list processing

5 years agoRemove redundant example
Arun Prakash Jana [Sun, 2 Feb 2020 08:17:42 +0000 (13:47 +0530)]
Remove redundant example

5 years agoUpdate docs
Arun Prakash Jana [Sat, 1 Feb 2020 17:12:49 +0000 (22:42 +0530)]
Update docs

5 years agoFix #446
Arun Prakash Jana [Sat, 1 Feb 2020 17:00:32 +0000 (22:30 +0530)]
Fix #446

5 years agoReduce the number of redundant checks
Arun Prakash Jana [Sat, 1 Feb 2020 16:30:53 +0000 (22:00 +0530)]
Reduce the number of redundant checks

5 years agoList of files as input (#443)
KlzXS [Sat, 1 Feb 2020 14:54:56 +0000 (15:54 +0100)]
List of files as input (#443)

* Start implementation on show list of files as input

* Remove tmp dir on exit, set global flag

* Bug fixes and improvements

* Follow symlinks when in list paths mode

* Fix bugs

* Add flag check

* Add message for invalid paths and style fixes

* Change the message

* Addressing review comments

* Handle errno being set

* Fix CI break

* Decreased startup memory usage and removed loops

* Fix CI break

5 years agoDo not swallow keypress after printwait (#461)
Maxim Baz [Sat, 1 Feb 2020 14:37:18 +0000 (15:37 +0100)]
Do not swallow keypress after printwait (#461)

5 years agoUse _exit() to terminate children
Arun Prakash Jana [Sat, 1 Feb 2020 13:58:59 +0000 (19:28 +0530)]
Use _exit() to terminate children

The NNN_PIPE file gets deleted after spawning a child in NOWAIT mode. Steps:
- open `nnn` with option `-x`
- press `;o` (custom binding) to open fzopen plugin
- press `^J` to select a file; it will spawn plugin `.cbcp` in NOWAIT mode
- when the intermediate child quits, the NNN_PIPE of parent is also deleted

5 years agoIgnore link assuming stdscr is NULL
Arun Prakash Jana [Sat, 1 Feb 2020 13:16:56 +0000 (18:46 +0530)]
Ignore link assuming stdscr is NULL

5 years agoFix #459
Arun Prakash Jana [Sat, 1 Feb 2020 03:27:16 +0000 (08:57 +0530)]
Fix #459

The following changes are made:

- STDOUT and STDIN are redirected to /dev/null when spawning rclone
  rclone blocks and also shows error/warning messages. nnn needs to spawn
  rclone and return without waiting. To avoid the rclone messages from
  corrupting the screen nnn makes the child silent.
  Note: sshfs returns after mount with a proper error code
- prompt only if both sshfs and rclone are installed

5 years agoUpload static binary as package
Arun Prakash Jana [Fri, 31 Jan 2020 03:06:53 +0000 (08:36 +0530)]
Upload static binary as package

5 years agoCompile static bin locally for release (#457)
Maxim Baz [Thu, 30 Jan 2020 21:46:06 +0000 (22:46 +0100)]
Compile static bin locally for release (#457)

5 years agoAuto-proceed on open (key + to toggle)
Arun Prakash Jana [Thu, 30 Jan 2020 20:15:06 +0000 (01:45 +0530)]
Auto-proceed on open (key + to toggle)

5 years agoRun GUI app as plugin
Arun Prakash Jana [Thu, 30 Jan 2020 18:08:36 +0000 (23:38 +0530)]
Run GUI app as plugin

5 years agoFallbacks for absent NAME_MAX and PATH_MAX (#455)
Sijmen J. Mulder [Wed, 29 Jan 2020 13:31:07 +0000 (14:31 +0100)]
Fallbacks for absent NAME_MAX and PATH_MAX (#455)

* Fallbacks for absent NAME_MAX and PATH_MAX

Certainly NAME_MAX isn't guaranteed to exist and on (some versions of?)
Illumos and SmartOS it doesn't, so provide some reasonably accommodating
fallbacks.

* Smaller limits

* Remove now redundant PATH_MAX definition for Hurd

5 years agoUse enough buffer length for file names
Arun Prakash Jana [Tue, 28 Jan 2020 23:52:03 +0000 (05:22 +0530)]
Use enough buffer length for file names

5 years agoRemove redundant lib only for older GLIBC
Arun Prakash Jana [Tue, 28 Jan 2020 13:25:41 +0000 (18:55 +0530)]
Remove redundant lib only for older GLIBC

5 years agoFix typo
Arun Prakash Jana [Mon, 27 Jan 2020 18:20:29 +0000 (23:50 +0530)]
Fix typo

5 years agoExit prompt on ^D at empty prompt
Arun Prakash Jana [Mon, 27 Jan 2020 14:16:10 +0000 (19:46 +0530)]
Exit prompt on ^D at empty prompt

5 years agoAdded more readline bindings (#452)
Ethan R [Mon, 27 Jan 2020 13:27:56 +0000 (07:27 -0600)]
Added more readline bindings (#452)

5 years agoAdd -DNORL when var O_STATIC is set
Arun Prakash Jana [Sat, 25 Jan 2020 18:14:28 +0000 (23:44 +0530)]
Add -DNORL when var O_STATIC is set

5 years agoRevert "Test static packaging"
Arun Prakash Jana [Sat, 25 Jan 2020 03:25:07 +0000 (08:55 +0530)]
Revert "Test static packaging"

This reverts commit dbcbaa583c4c95ba211bf51127083670a07b430c.

5 years agoTest static packaging
Arun Prakash Jana [Sat, 25 Jan 2020 03:03:34 +0000 (08:33 +0530)]
Test static packaging

5 years agoMove compilation notes to Wiki
Arun Prakash Jana [Fri, 24 Jan 2020 18:12:05 +0000 (23:42 +0530)]
Move compilation notes to Wiki

5 years agoMakefile option to compile with PCRE lib
Arun Prakash Jana [Fri, 24 Jan 2020 17:58:30 +0000 (23:28 +0530)]
Makefile option to compile with PCRE lib

Command: make O_PCRE=1 strip

5 years agoPCRE 2 - fix check for filter match
Arun Prakash Jana [Fri, 24 Jan 2020 17:16:47 +0000 (22:46 +0530)]
PCRE 2 - fix check for filter match

Kind contribution from uno20001:

https://old.reddit.com/r/C_Programming/comments/etavho/file_manager_nnn_needs_help_with_pcre/fffk4wr/

5 years agoPCRE 2 - fix compilation error
Arun Prakash Jana [Fri, 24 Jan 2020 16:55:27 +0000 (22:25 +0530)]
PCRE 2 - fix compilation error

5 years agoPCRE - add error handling
Arun Prakash Jana [Fri, 24 Jan 2020 13:30:12 +0000 (19:00 +0530)]
PCRE - add error handling

5 years agoDetach process with F_NOWAIT (#450)
KlzXS [Fri, 24 Jan 2020 13:28:43 +0000 (14:28 +0100)]
Detach process with F_NOWAIT (#450)

* Experimental PCRE library support

To compile with PCRE install libpcre-dev(el) and run:

cc  -Wall -Wextra -O3 -DPCRE -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -I/usr/include -o nnn src/nnn.c -lreadline -lncursesw -ltinfo -lpcre

* Detach process with F_NOWAIT

Co-authored-by: Mischievous Meerkat <engineerarun@gmail.com>
5 years agoExperimental PCRE library support
Arun Prakash Jana [Thu, 23 Jan 2020 18:54:51 +0000 (00:24 +0530)]
Experimental PCRE library support

To compile with PCRE install libpcre-dev(el) and run:

cc  -Wall -Wextra -O3 -DPCRE -D_GNU_SOURCE -D_DEFAULT_SOURCE -I/usr/include/ncursesw -I/usr/include -o nnn src/nnn.c -lreadline -lncursesw -ltinfo -lpcre

5 years agoAdd static compilation flag
Arun Prakash Jana [Thu, 23 Jan 2020 16:52:07 +0000 (22:22 +0530)]
Add static compilation flag

make command:

make O_STATIC=1 O_NORL=1 strip

5 years agoDo not show file name in status bar
Arun Prakash Jana [Thu, 23 Jan 2020 15:51:24 +0000 (21:21 +0530)]
Do not show file name in status bar

Both in light and detail modes we show more characters than in status bar.

5 years agoLazy unmount, umount (macOS) support
Arun Prakash Jana [Wed, 22 Jan 2020 20:19:04 +0000 (01:49 +0530)]
Lazy unmount, umount (macOS) support

5 years agonuke: add glow to preview markdown
Arun Prakash Jana [Wed, 22 Jan 2020 17:50:31 +0000 (23:20 +0530)]
nuke: add glow to preview markdown

5 years agoCheck if path exists before trying to create
Arun Prakash Jana [Wed, 22 Jan 2020 14:39:16 +0000 (20:09 +0530)]
Check if path exists before trying to create

5 years agoUse indicative dir names when creating
Arun Prakash Jana [Tue, 21 Jan 2020 18:30:33 +0000 (00:00 +0530)]
Use indicative dir names when creating

5 years agoRemove redundant variables/assignments
Arun Prakash Jana [Tue, 21 Jan 2020 17:39:05 +0000 (23:09 +0530)]
Remove redundant variables/assignments

5 years agoRemove redundant check
Arun Prakash Jana [Tue, 21 Jan 2020 16:23:45 +0000 (21:53 +0530)]
Remove redundant check

5 years agoUpdate badges
Arun Prakash Jana [Tue, 21 Jan 2020 12:59:54 +0000 (18:29 +0530)]
Update badges

5 years agoInitialize mask
Arun Prakash Jana [Mon, 20 Jan 2020 18:03:57 +0000 (23:33 +0530)]
Initialize mask

5 years agoCode refactor
Arun Prakash Jana [Mon, 20 Jan 2020 13:39:10 +0000 (19:09 +0530)]
Code refactor

5 years agoRevert "Update badges"
Arun Prakash Jana [Mon, 20 Jan 2020 03:08:20 +0000 (08:38 +0530)]
Revert "Update badges"

This reverts commit 3d98daaf27a0ac20dc4914e756faeb9da77f0b7a.

5 years agoUpdate badges
Arun Prakash Jana [Mon, 20 Jan 2020 03:07:04 +0000 (08:37 +0530)]
Update badges

5 years agoRefactor
Arun Prakash Jana [Sun, 19 Jan 2020 15:54:33 +0000 (21:24 +0530)]
Refactor

5 years agoCopy current name in API
Arun Prakash Jana [Sun, 19 Jan 2020 05:19:40 +0000 (10:49 +0530)]
Copy current name in API

5 years agoRefactor
Arun Prakash Jana [Sat, 18 Jan 2020 18:01:39 +0000 (23:31 +0530)]
Refactor

5 years agocheckpatch.pl fixes
Arun Prakash Jana [Sat, 18 Jan 2020 17:17:05 +0000 (22:47 +0530)]
checkpatch.pl fixes

5 years agoShorten env vars
Arun Prakash Jana [Sat, 18 Jan 2020 15:31:27 +0000 (21:01 +0530)]
Shorten env vars

5 years agoUse macro
Arun Prakash Jana [Sat, 18 Jan 2020 15:27:51 +0000 (20:57 +0530)]
Use macro

5 years agoGet rid of modulo operation
Arun Prakash Jana [Sat, 18 Jan 2020 15:13:11 +0000 (20:43 +0530)]
Get rid of modulo operation

5 years agoKey F5 toggle hidden
Arun Prakash Jana [Sat, 18 Jan 2020 14:25:09 +0000 (19:55 +0530)]
Key F5 toggle hidden

5 years agoMerge functions
Arun Prakash Jana [Sat, 18 Jan 2020 09:28:27 +0000 (14:58 +0530)]
Merge functions

5 years agofixed a formating error (#444)
Siddharth Dushantha [Sat, 18 Jan 2020 08:54:48 +0000 (09:54 +0100)]
fixed a formating error (#444)

Some normal text was indent a little, which caused to to become a code

5 years agoUse simpler logic to show progress on Linux
Arun Prakash Jana [Sat, 18 Jan 2020 08:43:56 +0000 (14:13 +0530)]
Use simpler logic to show progress on Linux

5 years agoClear lastname is the top file is deleted
Arun Prakash Jana [Fri, 17 Jan 2020 14:56:14 +0000 (20:26 +0530)]
Clear lastname is the top file is deleted

5 years agoRevert "Revert "Fixed calculation of capacity on OpenBSD (#441)""
Arun Prakash Jana [Fri, 17 Jan 2020 14:38:45 +0000 (20:08 +0530)]
Revert "Revert "Fixed calculation of capacity on OpenBSD (#441)""

This reverts commit 681b22d5c76356912fe29eb5769a92634329ad9b.

The statvfs man page:
http://man7.org/linux/man-pages/man3/statvfs.3.html

says clearly:

fsblkcnt_t     f_blocks;   /* Size of fs in f_frsize units */

I missed this earlier.

5 years agoOptions -e and -t
Arun Prakash Jana [Fri, 17 Jan 2020 13:36:42 +0000 (19:06 +0530)]
Options -e and -t

Replaces the following environment variables:
- NNN_USE_EDITOR
- NNN_IDLE_TIMEOUT

5 years agoFix: crash on entering empty dir, then press down
Arun Prakash Jana [Thu, 16 Jan 2020 22:06:57 +0000 (03:36 +0530)]
Fix: crash on entering empty dir, then press down

5 years agoRemove redundant check
Arun Prakash Jana [Thu, 16 Jan 2020 21:10:02 +0000 (02:40 +0530)]
Remove redundant check

5 years agoUse do-while instead of while
Arun Prakash Jana [Thu, 16 Jan 2020 17:39:19 +0000 (23:09 +0530)]
Use do-while instead of while

5 years agoRevert "Fixed calculation of capacity on OpenBSD (#441)"
Arun Prakash Jana [Thu, 16 Jan 2020 17:28:12 +0000 (22:58 +0530)]
Revert "Fixed calculation of capacity on OpenBSD (#441)"

This reverts commit 527e995f1f6686966fcf13181d7a922d913aac95.

5 years agoUpdate docs
Arun Prakash Jana [Thu, 16 Jan 2020 14:49:21 +0000 (20:19 +0530)]
Update docs

5 years agoA fancier prompt
Arun Prakash Jana [Thu, 16 Jan 2020 14:05:34 +0000 (19:35 +0530)]
A fancier prompt