Arun Prakash Jana
284a3c4866
Multi-threaded FTS-based disk usage calculation
...
Implements pthreads based du using FTS. Currently 4 threads are used.
NFTW is dropped as there is no way to pass any custom values to fn().
FTS does not require any per entry function callback.
The performance numbers are best with FTS:
./nnn-fts -T d / 5.29s user 0.94s system 116% cpu 5.335 total
1/21 du:102.402G free:8.476G files:397644 101132550144B
./nnn-ftw -T d / 5.52s user 0.94s system 116% cpu 5.534 total
1/21 du:102.400G free:8.474G files:397653 101133148160B
./nnn-4.0 -T d / 0.20s user 2.27s system 24% cpu 10.241 total
1/21 du:102.400G free:8.475G files:397654 101133299712B
2021-05-26 22:28:38 +05:30
Arun Prakash Jana
025b570e05
Fix du calculation
2021-05-26 03:16:01 +05:30
Arun Prakash Jana
db8079f552
Make option O_NOLOC renamed to O_NOLC
2021-05-24 22:38:08 +05:30
Arun Prakash Jana
fdeba8a87e
Dynamic view update in disk usage mode
2021-05-24 02:56:12 +05:30
Arun Prakash Jana
1017413474
Fix spelling, remove Known Issues section in favour of Troubleshooting Wiki
2021-05-23 20:08:11 +05:30
Arun Prakash Jana
53e98a9fd1
Minor changes to nuke
2021-05-22 08:34:59 +05:30
Arun Prakash Jana
88f71ff35d
Suppress session open failure msg in picker mode
2021-05-21 08:05:44 +05:30
Arun Prakash Jana
54d760b9f5
Fix #1023 : support named persistent settions
2021-05-20 09:56:55 +05:30
Arun Prakash Jana
36e1544b32
Update ToDo list
2021-05-19 18:31:55 +05:30
Luuk van Baal
b89c32b9fa
Preview-tui fix winch_handler
2021-05-19 04:48:03 +05:30
Arun Prakash Jana
2bd72d1b29
Remove pickraw, fix selection not picked on Q
2021-05-18 08:25:23 +05:30
Arun Prakash Jana
edab98ab6d
Fix opener key for archive
2021-05-18 07:58:11 +05:30
Piña Colada
bb5642291c
Merge pull request #1018 from luukvbaal/preview-tui
...
Preview-tui fixes
2021-05-18 06:41:33 +05:30
Luuk van Baal
d64242aec3
Preview-tui fixes
2021-05-18 00:19:41 +02:00
Arun Prakash Jana
45ac90d5e6
Exit nnn if plugin picks files
2021-05-18 00:49:25 +05:30
Piña Colada
9a949b7c33
Merge pull request #1017 from luukvbaal/cmusq
...
Exit cmusq when missing
2021-05-17 08:57:07 +05:30
Luuk van Baal
88eb45944c
Exit cmusq when missing
2021-05-16 23:39:10 +02:00
Piña Colada
8a36196e98
Merge pull request #1016 from luukvbaal/preview-tui
...
Hide terminated message in preview-tui
2021-05-17 02:28:40 +05:30
Luuk van Baal
8eced6c5d4
Hide terminated message in preview-tui
2021-05-16 22:56:47 +02:00
Arun Prakash Jana
cbc4587630
Fix nnn.vim #82 : support picker plugins
...
Plugins like fzopen have the capability to pick files.
This comes handy if nnn is executing as a file picker.
This is a 2-way communication:
- nnn sends the picker output file to plugin ("-" for stdout)
- the plugin tells nnn if it has overwritten the output file
2021-05-17 01:11:35 +05:30
Piña Colada
715abc7a3f
Merge pull request #1015 from luukvbaal/preview-tui
...
Fix preview-tui zombie pager
2021-05-16 16:47:40 +05:30
Luuk van Baal
5cc98987c5
Fix preview-tui zombie pager
2021-05-16 13:02:12 +02:00
Piña Colada
a95ed82f60
Merge pull request #1013 from luukvbaal/preview-tui
...
Preview-tui cleanup
2021-05-16 08:46:30 +05:30
Luuk van Baal
5fba2ba749
Preview-tui cleanup
2021-05-16 02:11:05 +02:00
Arun Prakash Jana
31c34740bc
Fix no file picked with NNN_TMPFILE set and quit with 'q'
...
If NNN_TMPFILE is exported, the selection buffer gets cleared as it is
combined with `^G` (clear picked files and exit). So even when 'q' is
pressed to quit the program the selection is lost. This was introduced
in commit d1d491c102
after release v2.7.
2021-05-16 03:23:03 +05:30
Arun Prakash Jana
79cbcc18e1
Update nuke to use mocq
2021-05-16 02:46:17 +05:30
Piña Colada
db240eeeda
Merge pull request #1011 from luukvbaal/cmusq
...
Wait until cmus is ready and fix fzplug preview command
2021-05-16 02:02:28 +05:30
Luuk van Baal
f7e84bed70
Wait until cmus is ready and fix fzplug preview command
2021-05-15 22:24:40 +02:00
Arun Prakash Jana
7bbacd0f0d
Minor edits
2021-05-16 01:49:52 +05:30
Arun Prakash Jana
4dcefcc4d4
Rename plugin mocplay to mocq
2021-05-16 00:25:47 +05:30
Kabouik
69d63ff50e
Add plugin cmusq ( #1010 )
...
* Fix conflict with #1006
* Queue/play in cmus player
* Remove leftover comments
* start_cmus function, optional xdotool dependency, better process waiting
* start_cmus function, better process waiting, optional xdotool dep
* Merge conflicts
* Better reporting of past actions
* Discriminate newly started queue and existing queue
* Harmonize descriptions, rename cmusqueue to cmusq, clean cmusq code
* Remove cmusqueue
* Exit if cmus missing and style changes
Co-authored-by: luukvbaal <31730729+luukvbaal@users.noreply.github.com>
2021-05-16 00:15:48 +05:30
Arun Prakash Jana
5e8ef070dc
Sanitize in-plugin documentation
2021-05-15 23:02:01 +05:30
Arun Prakash Jana
24080569b8
Chnage tabs to spaces
2021-05-15 06:57:20 +05:30
luukvbaal
bb37c9dd46
If/else to case in preview-tui ( #1009 )
...
* If/else to case in preview-tui
* Fix conflict between #1004 #1006
2021-05-14 22:46:30 +05:30
Kabouik
b14d2311e6
More minimal bat previews, minor improvements to fzplug ( #1004 )
...
* More minimal bat previews, minor improvements to fzplug
* Use BAT_STYLE if set, better fzplug formatting
* Fix linebreak in single quotes
* Fix line numbers in comments
* Readability and shellcheck warning
* Fix line numbers in comments
* Breaking typo
* Pre-existing BAT_STYLE would not be honored in tmux
2021-05-14 19:59:43 +05:30
Arun Prakash Jana
7a76ca8548
Remove unnecessary redirection
2021-05-14 18:45:09 +05:30
Arun Prakash Jana
f343f315b5
Replace which with builtin type in plugins
2021-05-14 17:33:28 +05:30
Arun Prakash Jana
513b4f24a6
Optimize loop comparison
2021-05-14 12:38:07 +05:30
Arun Prakash Jana
1fabac27ba
Fix hovered marking on empty directory
2021-05-14 11:55:52 +05:30
Arun Prakash Jana
3316e2acdb
Show du/au details on enabling disk usage mode
2021-05-14 11:38:44 +05:30
Arun Prakash Jana
6222cac4bf
Reduce checks in per-entry print loop
2021-05-14 11:25:38 +05:30
Arun Prakash Jana
177b60e6c2
shellcheck fixes + use the last known good commit
2021-05-14 08:48:05 +05:30
Piña Colada
2ca11a34e7
Merge pull request #1006 from luukvbaal/preview-tui
...
Kill kitty icat in preview-tui
2021-05-14 07:52:54 +05:30
Piña Colada
d83acda68b
Merge pull request #1005 from luukvbaal/icons
...
Fix .iconlookup typo
2021-05-14 07:45:36 +05:30
Luuk van Baal
9560a91f97
Kill kitty icat in preview-tui
2021-05-14 03:30:27 +02:00
Luuk van Baal
2edf59fef1
Fix .iconlookup typo
2021-05-14 02:08:45 +02:00
Arun Prakash Jana
d46918946f
Avoid faccessat(..., AT_SYM_NOFOLLOW) with musl libc
...
See https://www.openwall.com/lists/musl/2014/09/25/1
2021-05-14 02:11:59 +05:30
Arun Prakash Jana
d0b4508798
Change debug macro DBGMODE to DEBUG
2021-05-14 00:20:59 +05:30
Arun Prakash Jana
0427f70c4e
netbsd-curses: fix broken statusbar issue
...
See https://github.com/sabotage-linux/netbsd-curses/issues/46
2021-05-14 00:16:48 +05:30
Arun Prakash Jana
bca5763cf7
Selection marks in reverse bold
2021-05-13 19:29:16 +05:30