summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
2018-01-29Year + version bump for 1.13v1.13Yorhel30-31/+40
2018-01-29delete.c: Fix signedness issue in confirmation selectionYorhel1-1/+2
'char' may be unsigned on some architectures, which will cause the "overflow check" on decrement to fail. This would at most result in a confusing UI issue where no confirmation option appears to be selected.
2018-01-23Update static binary generation scriptYorhel1-22/+15
2018-01-23dirlist.c: make sure to include stdlib.h for calloc()Yorhel1-0/+1
2018-01-23Display extended information in the info windowYorhel4-6/+52
It's looking a bit cramped, but I'm lazy.
2018-01-23Don't depend on current color when creating ncurses windowYorhel1-0/+1
Fixes a minor glitch where A_REVERSE would be set on the information window if the last item in the dir is selected.
2018-01-23Import/export extended informationYorhel4-5/+33
And stick to the more portable second resolution timestamps for mtime.
2018-01-23Add -e flag to enable extended information modeYorhel4-3/+23
And document the --color flag that I forgot.
2018-01-23Add support for optional "extended" information for each file/dir entryYorhel9-139/+149
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. :(
2018-01-21Remove recursion check when importing a fileYorhel1-16/+1
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.
2018-01-21Merge branch 'colors'Yorhel8-140/+313
2018-01-21Add --color option, simple theme support, disable colors by defaultYorhel8-42/+78
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.
2017-08-17Use C99 flexible array member for struct dirYorhel3-8/+11
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.
2017-07-08Add support for colors and sprinkle some colors aroundYorhel7-140/+277
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?
2017-03-27dir_import.c: Restart fread() on EINTRYorhel1-1/+1
Fixes https://dev.yorhel.nl/ncdu/bug/95
2017-01-06Add -rr option to disable shell spawningYorhel4-8/+20
Fixes https://dev.yorhel.nl/ncdu/bug/94
2016-08-24Year + version bump for 1.12v1.12Yorhel31-32/+37
2016-08-24Minor documentation changesYorhel1-9/+13
Sneaky change from using mc as an example to using vifm. It's closer to ncdu in spirit.
2016-01-12Consistently print errors to stderrTillmann Karras1-4/+4
2015-09-23Confirm quit action during scan only when --confirm-quitpiyo1-3/+6
2015-09-23Confirm quit action during scan (reuse existing scan dialog).piyo2-3/+19
2015-09-20implement confirmation switchMax Klinger5-1/+14
2015-09-20change wording when deleting empty directoryMax Klinger1-1/+1
2015-09-20quit.c: Remove two unused variablesYorhel1-5/+0
2015-09-19Confirm quit action with a cancellable dialog.piyo6-1/+99
2015-08-03Added backspace key in browser window to back keys (one directory up).Robin Schneider1-0/+1
2015-06-02doc: Document /bin/sh as default shellØyvind A. Holm1-1/+1
The default shell was changed from /bin/bash to /bin/sh in commit 61a7846 ("config: Use /bin/sh as default shell and don't check for its existence", 2015-04-05), update the documentation about this.
2015-06-02Check for NCDU_SHELL environment variable when spawning shellØyvind A. Holm2-6/+15
Check if the environment variable NCDU_SHELL is defined before the SHELL variable is checked. This makes it possible to specify a program to execute when 'b' is pressed. Setting SHELL to for example "mc" (Midnight Commander) didn't work because mc already uses SHELL to execute commands.
2015-05-07ChangeLog: Fix date of 1.11 release -.-Yorhel1-1/+1
2015-04-07shell.c: Include sys/wait.hYorhel1-0/+1
Required for the W* macros on OpenBSD. Reported by Brian Callahan.
2015-04-05static: Update to latest musl-cross versionYorhel1-2/+2
2015-04-05Version bump + Changelog update for 1.11v1.11Yorhel3-3/+9
2015-04-05Disable shell feature on imported fileYorhel1-0/+4
Can cause too much confusion otherwise; The imported data may not at all reflect the filesystem that ncdu has access to.
2015-04-05config: Use /bin/sh as default shell and don't check for its existenceYorhel1-6/+2
/bin/bash is not available on every system, nor always the default. /bin/sh is standardised, but not always the preferred interactive shell, hence it's configurable. There's no need to check for the existence of this shell during config, since it's an option that only affects run-time - and you may compile ncdu on a totally different system than you would run it on.
2014-12-14Minor fixes to new shell featureYorhel3-3/+4
The check for the system() exit status is slightly problematic, because bash returns the status code of the last command it executed. I've set it to only check for status code 127 now (command not found) in order to at least provide a message when the $SHELL command can't be found. This error can still be triggered when executing a nonexistant command within the shell and then exiting.
2014-12-14Add ability to spawn shellThomas Jarosch9-2/+142
Key 'b' in the browse window spawns a shell in the current directoy. We first check the $SHELL environment variable of the user for the preferred shell interpreter. If it's not set, we fall back to the compile time configured default shell (usually /bin/bash). Signed-off-by: Thomas Jarosch <thomas.jarosch@intra2net.com>
2014-08-03"Press q to continue" -> "Press q to close"Yorhel1-1/+1
As per http://dev.yorhel.nl/ncdu/bug/55
2014-04-13Support building without locale.hYorhel3-8/+11
Slightly modified patch from Gianluigi Tiesi. http://dev.yorhel.nl/ncdu/bug/47
2014-01-22Copyright year updateYorhel24-24/+24
2014-01-22Add support for browsing empty directoriesYorhel7-34/+36
Turns out that being able to open an empty directory actually has its uses: - If you delete the last file in a directory, you now won't be directed to the parent directory anymore. This allows keeping 'd' pressed without worrying that you'll delete stuff outside of the current dir. (This is the primary motivation for doing this) - You can now scan and later refresh an empty directory, as suggested by #2 in http://dev.yorhel.nl/ncdu/bug/15
2014-01-22Fix offset of parent-dir itemYorhel1-6/+5
2013-08-23util.c: Make sure to include stdarg.hThomas Klausner1-0/+1
Fixes build on NetBSD.
2013-07-23Add space between file size and unit suffixYorhel2-6/+6
As per http://dev.yorhel.nl/ncdu/bug/31
2013-07-23Add --si flag for base 10 prefixesYorhel4-8/+34
This is a slightly modified patch contributed at http://dev.yorhel.nl/ncdu/bug/35
2013-06-05browser.c: Fix "Toggle dirs before files when sorting" functionalityYorhel1-1/+1
This has apparently been broken since version 1.7 (v1.6-7-g5db9c2a to be precise), yet NOBODY TOLD ME!? :-( The OSS community has left me in despair!
2013-05-09Version bump + Changelog update for 1.10v1.10Yorhel3-3/+12
2013-05-09Fix a few compiler warningsYorhel2-3/+3
Most of which made sense.
2013-05-09Added statically linked binary generator scriptYorhel2-0/+137
2013-05-09deps: Update khash to latest upstream versionYorhel1-16/+22
2013-04-25deps: Update khash and yopt to their latest upstream versionsYorhel3-151/+223