]>
Sergey Matveev's repositories - nnn.git/log
Arun Prakash Jana [Fri, 29 Dec 2017 05:49:37 +0000 (11:19 +0530)]
Fix #73: How to discard changes and exit new/rename prompt
Arun Prakash Jana [Fri, 29 Dec 2017 05:38:07 +0000 (11:08 +0530)]
Check alignment and enable -O3
Arun Prakash Jana [Wed, 27 Dec 2017 20:17:44 +0000 (01:47 +0530)]
Fix checkpatch reports
Dmitri Goutnik [Wed, 27 Dec 2017 19:48:05 +0000 (14:48 -0500)]
Add FreeBSD as a package source (#72)
Daniel Lockyer [Wed, 27 Dec 2017 10:36:57 +0000 (10:36 +0000)]
Free allocated resources using regfree (#71)
Arun Prakash Jana [Tue, 26 Dec 2017 19:58:01 +0000 (01:28 +0530)]
Use ffs() tweak.
Arun Prakash Jana [Tue, 26 Dec 2017 19:41:38 +0000 (01:11 +0530)]
Remove arm targets
Arun Prakash Jana [Tue, 26 Dec 2017 19:02:26 +0000 (00:32 +0530)]
Explicitly cast opaque types
Arun Prakash Jana [Tue, 26 Dec 2017 18:46:23 +0000 (00:16 +0530)]
TAB is not identified on OS X
Dmitri Goutnik [Tue, 26 Dec 2017 18:23:20 +0000 (13:23 -0500)]
Lookup xdg-open in PATH on non-Apple platforms (#70)
Arun Prakash Jana [Tue, 26 Dec 2017 18:19:47 +0000 (23:49 +0530)]
Retire Makefile.native
Arun Prakash Jana [Tue, 26 Dec 2017 18:03:32 +0000 (23:33 +0530)]
Use ffs() instead of ffsl()
Arun Prakash Jana [Tue, 26 Dec 2017 17:41:48 +0000 (23:11 +0530)]
Cross compile nnn on Travis CI
Dmitri Goutnik [Tue, 26 Dec 2017 15:52:45 +0000 (10:52 -0500)]
Fix compiler warnings on FreeBSD 11.x (#69)
Arun Prakash Jana [Tue, 26 Dec 2017 13:55:52 +0000 (19:25 +0530)]
Add openSUSE to packagers
Arun Prakash Jana [Tue, 26 Dec 2017 04:34:10 +0000 (10:04 +0530)]
Update README
Update documentation
Arun Prakash Jana [Mon, 25 Dec 2017 18:19:49 +0000 (23:49 +0530)]
Update README
Arun Prakash Jana [Mon, 25 Dec 2017 17:57:37 +0000 (23:27 +0530)]
Replace getorder() by ffsl()
Arun Prakash Jana [Mon, 25 Dec 2017 12:05:27 +0000 (17:35 +0530)]
OpenSUSE gcc fails at '-fno-tree-loop-vectorize'
Arun Prakash Jana [Mon, 25 Dec 2017 11:43:25 +0000 (17:13 +0530)]
Prepare for release v1.6
Arun Prakash Jana [Mon, 25 Dec 2017 11:11:49 +0000 (16:41 +0530)]
Add OpenSUSE Leap 42.3, reorder matrix
Arun Prakash Jana [Mon, 25 Dec 2017 10:25:53 +0000 (15:55 +0530)]
Support 'Open with...'
Arun Prakash Jana [Sun, 24 Dec 2017 20:14:48 +0000 (01:44 +0530)]
Optimize xmemrchr()
Arun Prakash Jana [Sun, 24 Dec 2017 18:58:12 +0000 (00:28 +0530)]
Reduce sprintf() family usage
Arun Prakash Jana [Sun, 24 Dec 2017 17:53:52 +0000 (23:23 +0530)]
Optimize saving, matching old entry
Arun Prakash Jana [Sun, 24 Dec 2017 15:52:54 +0000 (21:22 +0530)]
Shorten error messages
Arun Prakash Jana [Sun, 24 Dec 2017 15:50:36 +0000 (21:20 +0530)]
Limit filter length to NAME_MAX from LINE_MAX
Arun Prakash Jana [Sun, 24 Dec 2017 15:33:23 +0000 (21:03 +0530)]
Use const if applicable
Arun Prakash Jana [Sun, 24 Dec 2017 13:16:56 +0000 (18:46 +0530)]
Update documentation
Arun Prakash Jana [Sun, 24 Dec 2017 09:53:33 +0000 (15:23 +0530)]
Users understand 'DIR' easier then 'cwd'
Arun Prakash Jana [Sun, 24 Dec 2017 09:51:38 +0000 (15:21 +0530)]
Add option -b to open bookmark directly
Arun Prakash Jana [Sat, 23 Dec 2017 21:45:22 +0000 (03:15 +0530)]
Order numeric file names (helps with /proc)
Arun Prakash Jana [Thu, 21 Dec 2017 19:52:08 +0000 (01:22 +0530)]
Update README
Arun Prakash Jana [Thu, 21 Dec 2017 19:49:32 +0000 (01:19 +0530)]
Replace xstricmp() with strcoll()
Arun Prakash Jana [Thu, 21 Dec 2017 19:28:02 +0000 (00:58 +0530)]
Remove redundant variable
Arun Prakash Jana [Thu, 21 Dec 2017 19:26:15 +0000 (00:56 +0530)]
Consider only symbolic or only nunmeric names
Arun Prakash Jana [Thu, 21 Dec 2017 13:42:12 +0000 (19:12 +0530)]
No need to test end of numeric
Arun Prakash Jana [Thu, 21 Dec 2017 12:19:31 +0000 (17:49 +0530)]
Ignore punctuation marks in file name compare. Fix xstrcmp().
1. File name comparison method:
- initially ignore white space and punctuation characters
- run test for numeric values
- if the remaining substrings match in case-insensitive compare, compare case
- if they still match, see which one has more prefix symbols
- if they still match, run a case-sensitive compare on complete strings
2. Fixed xstrcmp() to return diff instead of 0 and -1.
Arun Prakash Jana [Wed, 20 Dec 2017 22:31:21 +0000 (04:01 +0530)]
Update README, performance numbers
Arun Prakash Jana [Wed, 20 Dec 2017 16:50:28 +0000 (22:20 +0530)]
Add file name len to entry structure
Arun Prakash Jana [Wed, 20 Dec 2017 02:48:37 +0000 (08:18 +0530)]
Offset can be derived
Arun Prakash Jana [Tue, 19 Dec 2017 19:12:11 +0000 (00:42 +0530)]
Retire redundant variable
Arun Prakash Jana [Tue, 19 Dec 2017 18:31:32 +0000 (00:01 +0530)]
A fancier func to get order of 2
Arun Prakash Jana [Tue, 19 Dec 2017 18:03:27 +0000 (23:33 +0530)]
Replace a large buf with global g_buf
Arun Prakash Jana [Tue, 19 Dec 2017 17:13:49 +0000 (22:43 +0530)]
Fix #50: use -O3, disable -ftree-loop-vectorize
Arun Prakash Jana [Tue, 19 Dec 2017 15:19:54 +0000 (20:49 +0530)]
Link to performance factors
Arun Prakash Jana [Mon, 18 Dec 2017 19:46:03 +0000 (01:16 +0530)]
Use exact number of bytes for each filename.
Results in even less memory usage. The names are appended one after another.
The offsets are reset when the location of the memory changes die to realloc().
Other changes:
1. Use a debug mode print to measure time.
2. Remove redundant prefix when printing pointers in debug mode.
Arun Prakash Jana [Sun, 17 Dec 2017 19:00:48 +0000 (00:30 +0530)]
Fix #64: change printf() to printw()
Arun Prakash Jana [Sun, 17 Dec 2017 18:30:08 +0000 (00:00 +0530)]
NAME_MAX does not include NULL char
Arun Prakash Jana [Sun, 17 Dec 2017 18:06:26 +0000 (23:36 +0530)]
Remove -O2 from debug build
Arun Prakash Jana [Sun, 17 Dec 2017 17:38:55 +0000 (23:08 +0530)]
An even faster nnn - no more copying file names!
nnn has been using `struct entry` to hold both file name as well as file info.
The design forces file names to be copied in the following cases:
- swaps during file sort (nnn uses quicksort) applied after all the matching
files are read (in no particular order; good old readdir()) into memory.
- swaps during manual filtering. nnn moves non-matching entries below so they
are not encountered twice resulting in fast filtering.
There were scopes for _massive_ improvements in this area. So I did what had to
be done - decouple the file names from `struct entry` and use a separate struct
to hold the names with the indices set when the files are added by opendir().
There was a hidden problem to this approach - nnn uses realloc() to allocate
memory for file information and realloc() may move the original pointer in mem
when it can't fit the new memory to the earlier pointer. To handle that the new
algorithm tracks the change in memory location and re-adjusts the existing dir
entry names when that happens; this too, without any copying!
Though the results seem pretty clean from a theoretical point of view and early
tests, we may uncover some bugs. However, the speed is just mind-blowing!
And the binary size remains the same too!!!
Arun Prakash Jana [Sat, 16 Dec 2017 17:30:23 +0000 (23:00 +0530)]
Add Slackware as packager
Arun Prakash Jana [Thu, 14 Dec 2017 13:42:14 +0000 (19:12 +0530)]
Fix indentation
Arun Prakash Jana [Tue, 12 Dec 2017 21:11:30 +0000 (02:41 +0530)]
Use static vars in frequently used APIs
Arun Prakash Jana [Tue, 12 Dec 2017 21:02:45 +0000 (02:32 +0530)]
Retire redundant tmp vars
Arun Prakash Jana [Tue, 12 Dec 2017 20:16:50 +0000 (01:46 +0530)]
Process keypress by probable frequency
Arun Prakash Jana [Sat, 9 Dec 2017 06:34:32 +0000 (12:04 +0530)]
Update README
Arun Prakash Jana [Mon, 4 Dec 2017 14:22:35 +0000 (19:52 +0530)]
Minor optimization, refactor
Arun Prakash Jana [Sun, 3 Dec 2017 12:06:00 +0000 (17:36 +0530)]
Fix -Os compilation warnings
Arun Prakash Jana [Sat, 2 Dec 2017 16:59:43 +0000 (22:29 +0530)]
switch to formulae.brew.sh for Homebrew link
Arun Prakash Jana [Thu, 30 Nov 2017 16:12:17 +0000 (21:42 +0530)]
Use the same o/p filename in debug mode
Arun Prakash Jana [Thu, 30 Nov 2017 16:10:52 +0000 (21:40 +0530)]
Fix #50: revert to -O2 optimization
The while loop in xstrlcpy() breaks when -O3 is used.
Arun Prakash Jana [Thu, 30 Nov 2017 12:54:06 +0000 (18:24 +0530)]
Minor changes
Vlad Glagolev [Sat, 25 Nov 2017 13:03:04 +0000 (08:03 -0500)]
Add Source Mage package
Arun Prakash Jana [Fri, 24 Nov 2017 23:18:32 +0000 (04:48 +0530)]
Update package maintainers
Arun Prakash Jana [Fri, 17 Nov 2017 15:43:40 +0000 (21:13 +0530)]
Change button color
Arun Prakash Jana [Mon, 6 Nov 2017 04:50:23 +0000 (10:20 +0530)]
Add Void Linux as a package source
Arun Prakash Jana [Sat, 4 Nov 2017 04:50:39 +0000 (10:20 +0530)]
Update readme
Arun Prakash Jana [Wed, 18 Oct 2017 01:04:32 +0000 (06:34 +0530)]
Add how-to on hot plugged devices
Arun Prakash Jana [Sun, 15 Oct 2017 23:54:56 +0000 (05:24 +0530)]
Minor maintenance
Arun Prakash Jana [Tue, 10 Oct 2017 14:59:48 +0000 (20:29 +0530)]
Add copier script
Arun Prakash Jana [Mon, 9 Oct 2017 17:25:44 +0000 (22:55 +0530)]
Ignore TAB in input prompt
Vlad Glagolev [Mon, 9 Oct 2017 02:17:02 +0000 (22:17 -0400)]
Fix a couple of warnings on BSDs (#54)
Arun Prakash Jana [Sun, 8 Oct 2017 21:26:25 +0000 (02:56 +0530)]
archive listing is done using atool
Vlad Glagolev [Sun, 8 Oct 2017 04:02:29 +0000 (00:02 -0400)]
Fix segfault when SHLVL env var is not available (#52)
Vlad Glagolev [Sun, 8 Oct 2017 03:47:32 +0000 (23:47 -0400)]
Correct name checking for NEW and RENAME (#53)
Vlad Glagolev [Sun, 8 Oct 2017 01:43:18 +0000 (21:43 -0400)]
Add ExifTool URL (#51)
Vlad Glagolev [Sun, 8 Oct 2017 01:42:12 +0000 (21:42 -0400)]
OpenBSD compatibility support (#48)
* Improve compatibility with OpenBSD
* Fix indefinite blocking
maxice8 [Thu, 5 Oct 2017 07:34:18 +0000 (04:34 -0300)]
include sys/types.h for non-glibc linux builds (#46)
Arun Prakash Jana [Thu, 5 Oct 2017 01:51:12 +0000 (07:21 +0530)]
Use sudo to install packagecore
Arun Prakash Jana [Wed, 4 Oct 2017 18:26:59 +0000 (23:56 +0530)]
Prepare for release v1.5
Arun Prakash Jana [Mon, 2 Oct 2017 17:33:45 +0000 (23:03 +0530)]
Update help
Arun Prakash Jana [Mon, 2 Oct 2017 02:43:36 +0000 (08:13 +0530)]
Fix alignment in examples
Arun Prakash Jana [Sun, 1 Oct 2017 13:29:43 +0000 (18:59 +0530)]
Remove redundant conversion
Arun Prakash Jana [Sun, 1 Oct 2017 10:43:35 +0000 (16:13 +0530)]
Disable noti subscription for the same dir
Arun Prakash Jana [Sat, 30 Sep 2017 22:58:48 +0000 (04:28 +0530)]
Change archive list shortcut to 'F'
Arun Prakash Jana [Sat, 30 Sep 2017 00:17:38 +0000 (05:47 +0530)]
Fix #44: document PAGER usage in certain screens
Arun Prakash Jana [Wed, 27 Sep 2017 17:18:46 +0000 (22:48 +0530)]
Enable O3 optimization
Arun Prakash Jana [Wed, 27 Sep 2017 16:37:04 +0000 (22:07 +0530)]
Revert "Archive handling on OS X using unar+lsar"
This reverts commit
1e859eb1370bd67cecd06b7bc8c6f885b80554bd .
We will use atool on OS X as well, it can be brewed easily.
Arun Prakash Jana [Wed, 27 Sep 2017 16:26:02 +0000 (21:56 +0530)]
Archive handling on OS X using unar+lsar
Arun Prakash Jana [Wed, 27 Sep 2017 14:49:42 +0000 (20:19 +0530)]
Support archive listing and extraction
Arun Prakash Jana [Wed, 27 Sep 2017 12:07:36 +0000 (17:37 +0530)]
Show current entry number in du mode
Arun Prakash Jana [Tue, 26 Sep 2017 20:38:58 +0000 (02:08 +0530)]
Show current entry number.
...because you need to know where you are.
Arun Prakash Jana [Sun, 24 Sep 2017 17:58:27 +0000 (23:28 +0530)]
Fix #42
Arun Prakash Jana [Sat, 23 Sep 2017 17:32:35 +0000 (23:02 +0530)]
Add badge to PPA for Ubuntu variants
Arun Prakash Jana [Sat, 23 Sep 2017 14:08:56 +0000 (19:38 +0530)]
nnn is on Ubuntu 17.10
Arun Prakash Jana [Wed, 20 Sep 2017 03:08:55 +0000 (08:38 +0530)]
Add step to set NNN_NOWAIT in Quickstart
Arun Prakash Jana [Tue, 19 Sep 2017 14:25:02 +0000 (19:55 +0530)]
Update NNN_NOWAIT changes
Paul [Tue, 19 Sep 2017 06:30:54 +0000 (02:30 -0400)]
Prevent nnn from waiting on open file process (#40)
* Prevent nnn from waiting on open file process
* Add env var flag to not wait for child process when opening file
* Set nowait flag once to skip bit-or every time we open a file
* Add documentation for NNN_NOWAIT
Arun Prakash Jana [Wed, 13 Sep 2017 13:14:27 +0000 (18:44 +0530)]
Skip entries in case fstatat() fails, do not exit