- Nov 14, 2019
-
-
Yorhel authored
I assumed that ./configure would fail if it can't find a suitable compiler for the given --host, but it just falls back to the host gcc. Fixes #138
-
- Aug 17, 2019
-
-
Yorhel authored
Fixes #135
-
- Aug 05, 2019
-
- Aug 04, 2019
-
- Jul 23, 2019
-
-
Yorhel authored
This is a best-effort approach to save ncdu state when memory is low. There's likely allocation in libraries that isn't being checked (ncurses, printf). Fixes #132 (it actually doesn't, that needs a 64bit static binary too, but I'll get to that)
-
- Apr 19, 2019
-
-
Yorhel authored
Fixes #128.
-
- Feb 19, 2019
-
-
Martin Storsjö authored
This allocation is currently leaked, but as long as we don't allocate new ones for each refresh, that shouldn't be much of an issue. (cherry picked from commit 9dc2d32a8fb557112f8f96cd14d50b934543ce39)
-
- Feb 18, 2019
-
-
Martin Storsjö authored
-
- Feb 04, 2019
-
-
Yorhel authored
-
- Jan 24, 2019
-
-
Yorhel authored
stat_to_dir() assumes that buf_dir is clean; calling it twice breaks that asumption.
-
Simon Doppler authored
Symlink loops are handled by the stat(2) syscall. Symlinks pointing to a directory are ignored (to avoid loops in the recursive scan).
-
- Jan 21, 2019
-
-
Yorhel authored
-
Alex Wilson authored
This adds an 'm' command to show the latest modified time of all files in a directory. The 'M' command allows for ascending and descending mtime sorting. These are only enabled with the -e flag and overload the dir_ext mtime field.
-
- Jan 20, 2019
-
-
Yorhel authored
I had taken care to not sort empty directories during dirlist_open(), but forgot that manual user actions can still cause dirlist_set_sort() to be called, which does not handle empty directories. Reported by Alex Wilson.
-
- Dec 16, 2018
-
-
Yorhel authored
https://dev.yorhel.nl/ncdu/bug/125
-
- Dec 01, 2018
-
-
Yorhel authored
Based on https://dev.yorhel.nl/ncdu/bug/124
-
- Sep 03, 2018
-
-
Yorhel authored
-
- Jul 24, 2018
-
-
Yorhel authored
Implements https://dev.yorhel.nl/ncdu/bug/43
-
- Jun 13, 2018
-
-
Yorhel authored
Ought to fix https://dev.yorhel.nl/ncdu/bug/115
-
- Mar 29, 2018
-
-
Yorhel authored
https://dev.yorhel.nl/ncdu/bug/112
-
Yorhel authored
https://dev.yorhel.nl/ncdu/bug/111
-
- Feb 21, 2018
-
-
Yorhel authored
-
Thomas McWork authored
-
Thomas McWork authored
-
- Jan 29, 2018
- Jan 23, 2018
-
-
Yorhel authored
-
Yorhel authored
-
Yorhel authored
It's looking a bit cramped, but I'm lazy.
-
Yorhel authored
Fixes a minor glitch where A_REVERSE would be set on the information window if the last item in the dir is selected.
-
Yorhel authored
And stick to the more portable second resolution timestamps for mtime.
-
Yorhel authored
And document the --color flag that I forgot.
-
Yorhel authored
Unfortunately, there wasn't a single bit free in struct dir.flags, so I had to increase its size to 16 bit. This commit is just the initial preparation, there's still a few things to do: - Add "extended information" cli flag to enable/disable this functionality. - Export and import extended information when requested - Do something with the data. I also did a few memory measurements on a file list with 12769842 items: before this commit: 1.239 GiB without extended info: 1.318 GiB with extended info: 1.698 GiB It's surprising what adding a single byte to a struct can do to the memory usage. :(
-
- Jan 21, 2018
-
-
Yorhel authored
Fixes https://dev.yorhel.nl/ncdu/bug/103 I don't think a stack overflow as a result of recursion is exploitable on a modern system. It should just result in an unfortunate write to a page that is not writable, followed by a crash.
-
Yorhel authored
-
Yorhel authored
I've decided not to use ls-like file name coloring for now, instead just coloring the difference between a (regular) file and a dir. Still looking for a good color scheme for light backgrounds.
-
- Aug 17, 2017
-
-
Yorhel authored
This should fix https://dev.yorhel.nl/ncdu/bug/99 - with the downside that this requires a C99 compiler. I also replaced all occurrences of static allocation of struct dir with use dynamic allocation, because I wasn't really sure if static allocation of flexible structs is allowed. In the case of dirlist.c the dynamic allocation is likely required anyway, because it does store a few bytes in the name field.
-
- Jul 08, 2017
-
-
Yorhel authored
TODO: - Add (ls-like) colors to the actual file names -> Implement full $LS_COLORS handling or something simple and custom? - Test on a white/black terminal, and provide an alternate color scheme if necessary. - Make colors opt-in?
-
- Mar 27, 2017
-
-
Yorhel authored
Fixes https://dev.yorhel.nl/ncdu/bug/95
-
- Jan 06, 2017
-
-
Yorhel authored
Fixes https://dev.yorhel.nl/ncdu/bug/94
-