]> Sergey Matveev's repositories - nnn.git/log
nnn.git
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

5 years agoQuit with an error code (#442)
Maxim Baz [Thu, 16 Jan 2020 13:55:48 +0000 (14:55 +0100)]
Quit with an error code (#442)

* Quit with an error code

* Use `Q` as "quit with err"

* Remove extra var and simplify conditions

* Revert combining conditions

* Fix formatting

* Format help with as much tabs as possible

5 years agoFixed calculation of capacity on OpenBSD (#441)
Martin Ziemer [Thu, 16 Jan 2020 11:10:30 +0000 (12:10 +0100)]
Fixed calculation of capacity on OpenBSD (#441)

5 years agoRelease improvements, take 2 (#440)
Maxim Baz [Wed, 15 Jan 2020 12:24:29 +0000 (13:24 +0100)]
Release improvements, take 2 (#440)

* Revert "Undo changes from #417"

* Do not remove .git folder

5 years agoChange command order
Arun Prakash Jana [Wed, 15 Jan 2020 11:48:10 +0000 (17:18 +0530)]
Change command order

5 years agoUpdate docs
Arun Prakash Jana [Wed, 15 Jan 2020 09:31:14 +0000 (15:01 +0530)]
Update docs

5 years agoFix alignment
Arun Prakash Jana [Wed, 15 Jan 2020 08:40:46 +0000 (14:10 +0530)]
Fix alignment

5 years agoUndo changes from #417 v2.9
Arun Prakash Jana [Wed, 15 Jan 2020 05:52:54 +0000 (11:22 +0530)]
Undo changes from #417

5 years agoUse shorter lines in man page
Arun Prakash Jana [Wed, 15 Jan 2020 05:39:51 +0000 (11:09 +0530)]
Use shorter lines in man page

5 years agoUse / to toggle string and regex
Arun Prakash Jana [Wed, 15 Jan 2020 04:35:19 +0000 (10:05 +0530)]
Use / to toggle string and regex

5 years agoPrepare for release v2.9
Arun Prakash Jana [Wed, 15 Jan 2020 04:12:23 +0000 (09:42 +0530)]
Prepare for release v2.9

5 years agoCatch NULL from malloc() (#438)
KlzXS [Tue, 14 Jan 2020 22:35:26 +0000 (23:35 +0100)]
Catch NULL from malloc() (#438)

* Catch NULL from malloc()

* Tidy up errors

* Make indentaion look pretty in git

5 years agoUse macro to print error
Arun Prakash Jana [Tue, 14 Jan 2020 19:51:13 +0000 (01:21 +0530)]
Use macro to print error

5 years agoWhile drawing lines, set correct color
Arun Prakash Jana [Tue, 14 Jan 2020 19:27:02 +0000 (00:57 +0530)]
While drawing lines, set correct color

5 years ago(B)Tab for BackTab
Arun Prakash Jana [Tue, 14 Jan 2020 18:07:33 +0000 (23:37 +0530)]
(B)Tab for BackTab

5 years agoShow order info in filter info bar
Arun Prakash Jana [Tue, 14 Jan 2020 17:21:10 +0000 (22:51 +0530)]
Show order info in filter info bar

5 years agoKeybind changes
Arun Prakash Jana [Tue, 14 Jan 2020 15:31:59 +0000 (21:01 +0530)]
Keybind changes

5 years agoFix doc
Arun Prakash Jana [Mon, 13 Jan 2020 22:40:11 +0000 (04:10 +0530)]
Fix doc

5 years agoNew lowercase keys
Arun Prakash Jana [Mon, 13 Jan 2020 22:00:52 +0000 (03:30 +0530)]
New lowercase keys

5 years agoUpdate Haiku Makefile with changes of original (#435)
Anna Arad [Mon, 13 Jan 2020 21:38:20 +0000 (23:38 +0200)]
Update Haiku Makefile with changes of original (#435)

5 years agoKey 0 to lock
Arun Prakash Jana [Mon, 13 Jan 2020 21:30:01 +0000 (03:00 +0530)]
Key 0 to lock

5 years agoRemove p and e
Arun Prakash Jana [Mon, 13 Jan 2020 20:56:32 +0000 (02:26 +0530)]
Remove p and e

5 years agoFix typo
Arun Prakash Jana [Mon, 13 Jan 2020 20:06:57 +0000 (01:36 +0530)]
Fix typo

5 years agoRemove redundant question
Arun Prakash Jana [Mon, 13 Jan 2020 19:40:53 +0000 (01:10 +0530)]
Remove redundant question

5 years agoList from selection file if nothing selected
Arun Prakash Jana [Mon, 13 Jan 2020 18:50:05 +0000 (00:20 +0530)]
List from selection file if nothing selected

5 years agoRemove list selection
Arun Prakash Jana [Mon, 13 Jan 2020 18:14:19 +0000 (23:44 +0530)]
Remove list selection

5 years agoRevert to key m to Mark range
Arun Prakash Jana [Mon, 13 Jan 2020 16:54:55 +0000 (22:24 +0530)]
Revert to key m to Mark range

5 years agoKey ' for range selection
Arun Prakash Jana [Mon, 13 Jan 2020 15:55:34 +0000 (21:25 +0530)]
Key ' for range selection

5 years agoUnify plugin keys
Arun Prakash Jana [Mon, 13 Jan 2020 15:39:40 +0000 (21:09 +0530)]
Unify plugin keys

5 years agoReorder key listing, undocument F2 and F5
Arun Prakash Jana [Mon, 13 Jan 2020 14:56:16 +0000 (20:26 +0530)]
Reorder key listing, undocument F2 and F5

5 years agoCombine list, edit selection. Key ^Y
Arun Prakash Jana [Mon, 13 Jan 2020 14:43:46 +0000 (20:13 +0530)]
Combine list, edit selection. Key ^Y

5 years agoKey z to archive, fix du order issue
Arun Prakash Jana [Mon, 13 Jan 2020 13:27:46 +0000 (18:57 +0530)]
Key z to archive, fix du order issue