Arun Prakash Jana
8307bc95bd
Fix #64 : change printf() to printw()
7 years ago
Arun Prakash Jana
ca28580746
NAME_MAX does not include NULL char
7 years ago
Arun Prakash Jana
3da5f5d130
Remove -O2 from debug build
7 years ago
Arun Prakash Jana
7a16440e1f
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!!!
7 years ago
Arun Prakash Jana
683fa65578
Add Slackware as packager
7 years ago
Arun Prakash Jana
ef3eab073e
Fix indentation
7 years ago
Arun Prakash Jana
c3545dd82f
Use static vars in frequently used APIs
7 years ago
Arun Prakash Jana
5ae9993a12
Retire redundant tmp vars
7 years ago
Arun Prakash Jana
1b035d6ffd
Process keypress by probable frequency
7 years ago
Arun Prakash Jana
1473416228
Update README
7 years ago
Arun Prakash Jana
6ccb8ee94b
Minor optimization, refactor
7 years ago
Arun Prakash Jana
092cdf3f82
Fix -Os compilation warnings
7 years ago
Arun Prakash Jana
d6b80b380f
switch to formulae.brew.sh for Homebrew link
7 years ago
Arun Prakash Jana
c70f429bc7
Use the same o/p filename in debug mode
7 years ago
Arun Prakash Jana
5ff29cede8
Fix #50 : revert to -O2 optimization
The while loop in xstrlcpy() breaks when -O3 is used.
7 years ago
Arun Prakash Jana
cd2bdc5991
Minor changes
7 years ago
Vlad Glagolev
9d134a3796
Add Source Mage package
7 years ago
Arun Prakash Jana
ac01de1cab
Update package maintainers
7 years ago
Arun Prakash Jana
f2c94a5a1c
Change button color
7 years ago
Arun Prakash Jana
56a4241d62
Add Void Linux as a package source
7 years ago
Arun Prakash Jana
db6647156b
Update readme
7 years ago
Arun Prakash Jana
35f79b0bfd
Add how-to on hot plugged devices
7 years ago
Arun Prakash Jana
55abc13cd2
Minor maintenance
7 years ago
Arun Prakash Jana
6dfccce55d
Add copier script
7 years ago
Arun Prakash Jana
f1a27e21af
Ignore TAB in input prompt
7 years ago
Vlad Glagolev
9638ed148d
Fix a couple of warnings on BSDs ( #54 )
7 years ago
Arun Prakash Jana
93aac04474
archive listing is done using atool
7 years ago
Vlad Glagolev
d835f72c6c
Fix segfault when SHLVL env var is not available ( #52 )
7 years ago
Vlad Glagolev
8959a5b57d
Correct name checking for NEW and RENAME ( #53 )
7 years ago
Vlad Glagolev
0d88940ba5
Add ExifTool URL ( #51 )
7 years ago
Vlad Glagolev
caf368f593
OpenBSD compatibility support ( #48 )
* Improve compatibility with OpenBSD
* Fix indefinite blocking
7 years ago
maxice8
935fca41f1
include sys/types.h for non-glibc linux builds ( #46 )
7 years ago
Arun Prakash Jana
211329f5df
Use sudo to install packagecore
7 years ago
Arun Prakash Jana
dcf8fbf78b
Prepare for release v1.5
7 years ago
Arun Prakash Jana
0e22a4957f
Update help
7 years ago
Arun Prakash Jana
3e74827cab
Fix alignment in examples
7 years ago
Arun Prakash Jana
d62ce4bb5e
Remove redundant conversion
7 years ago
Arun Prakash Jana
c66c941a97
Disable noti subscription for the same dir
7 years ago
Arun Prakash Jana
79cbc40a7f
Change archive list shortcut to 'F'
7 years ago
Arun Prakash Jana
20e8116a6c
Fix #44 : document PAGER usage in certain screens
7 years ago
Arun Prakash Jana
b0a806ae2e
Enable O3 optimization
7 years ago
Arun Prakash Jana
6bfbff9519
Revert "Archive handling on OS X using unar+lsar"
This reverts commit 1e859eb137
.
We will use atool on OS X as well, it can be brewed easily.
7 years ago
Arun Prakash Jana
7c54f073fc
Archive handling on OS X using unar+lsar
7 years ago
Arun Prakash Jana
71d27de517
Support archive listing and extraction
7 years ago
Arun Prakash Jana
a594c876be
Show current entry number in du mode
7 years ago
Arun Prakash Jana
082974dc8e
Show current entry number.
...because you need to know where you are.
7 years ago
Arun Prakash Jana
bc76c0f7ee
Fix #42
7 years ago
Arun Prakash Jana
7a586da34d
Add badge to PPA for Ubuntu variants
7 years ago
Arun Prakash Jana
f2e58288e7
nnn is on Ubuntu 17.10
7 years ago
Arun Prakash Jana
54e2bf57f8
Add step to set NNN_NOWAIT in Quickstart
7 years ago