summaryrefslogtreecommitdiff
AgeCommit message (Collapse)AuthorFilesLines
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
2013-04-25Move khash & yopt to deps/Yorhel5-5/+7
Both microlibraries come from another source, and are not maintained as part of ncdu. This separation of src/ and deps/ makes the relation more clear.
2013-04-12dir_scan.c: Reset directory sizes when excluded by a CACHEDIR.TAGYorhel1-1/+3
Tiny bug fix: The size of an excluded directory entry itself should not be counted, either. This is consistent with what you'd expect: A cache directory with thousands of files can easily take up several megabytes for the dir entry - but from the perspective of a backup system that recognizes cache dirs - the dir is empty, and therefore shouldn't take any extra space at all.
2013-04-12Use /**/ comments + minor style changeYorhel2-7/+5
2013-04-12has_cachedir_tag: Keep statuc allocated buffer for paths.Petr Pudlak1-5/+16
2013-04-12Document `--exclude-caches` in ncdu.pod.Petr Pudlak1-0/+7
2013-04-12Let has_cachedir_tag use `malloc` instead of a buffer on the stack.Petr Pudlak1-4/+11
2013-04-12CACHEDIR.TAG - improve code style and the name of the parameter.Petr Pudlak3-17/+17
Use a macro instead of the global constant `cachedir_tag_signature`. Use `memcmp` instead of `strncmp`. Add `has_cachedir_tag` to exclude.h. (See http://dev.yorhel.nl/ncdu/bug/30)
2013-04-10Add CACHEDIR.TAG support.Petr Pudlak4-0/+35
A new command line parameter allows to filter out directories containing the proper `CACHEDIR.TAG` file. See http://www.brynosaurus.com/cachedir/
2013-03-09configure: Use PKG_PROG_PKG_CONFIG + mention pkg-config dep in READMEYorhel2-4/+5
2013-03-07Use pkg-config to detect ncursesJustin Lecher1-8/+12
Ncurses provides a pkg-config module which could be used here. If not available we fall back to the old detection heuristic. Signed-off-by: Justin Lecher <jlec@gentoo.org>
2013-01-18ncdu.1: Add new c/C keysYorhel1-0/+8
2013-01-13use the locale's thousand seperator, if availableChris West (Faux)3-1/+17
2013-01-13'C' sorts by itemsChris West (Faux)4-7/+22
2013-01-13'c' to show child item countsChris West (Faux)2-8/+29
2013-01-13gitignoreChris West (Faux)1-0/+2
2012-11-22Clip directory sizes to make sure they are positiveYorhel2-5/+8
I realized that I used addparentstats() with negative values when removing stuff, so it had to be done this way (without rewriting everything). It's a simple solution, anyway.
2012-11-22Clip directory sizes to fit in a signed 64bit integerYorhel5-4/+15
This mostly avoids the issue of getting negative sizes. It's still possible to get a negative size after refresh or deletion, I'll get to that in a bit.
2012-11-22util.c: Fix possible buffer overflow in fillsize() and formatsize()Yorhel1-3/+5
They should now be able to cope with file sizes in the full (positive) range of a signed integer, i.e. 0 bytes to 8 EiB minus one byte. The size calculation of directories, however, may still overflow and cause negative integers to be passed around. That should be fixed.
2012-11-22configure.in -> configure.acYorhel1-0/+0
As recent autoconf wants
2012-09-27Version bump + Changelog update for 1.9v1.9Yorhel3-2/+14
2012-09-27Don't make ncdu.1 depend on MakefileYorhel1-1/+1
Makefile is generated by configure, and thus guaranteed to be newer than ncdu.1, causing make to regenerate ncdu.1 regardless of whether pod2man is installed or not. That kinda defeats the purpose of including ncdu.1 in the distribution.
2012-09-08Add some examples to the man pageYorhel1-3/+43
2012-09-08Update man page with new optionsYorhel1-21/+80
2012-09-08Abstracted option parsing from option handlingYorhel3-55/+254
This also adds the possibility to combine short options that expect an argument, e.g. "-xo <file>" or even "-xo<file>".
2012-09-07dir_export.c: Add timestamp to meta-dataYorhel1-2/+6
2012-09-06cli: Use -0,-1,-2 instead of "-u n"Yorhel2-15/+11
I've no idea for what other purpose I'd use numbered options. This is much shorter, and can easily be combined with other options (e.g. -rx1).
2012-09-06Removed the TODO fileYorhel1-31/+0
I have a bug tracker for that.
2012-09-06Disallow refresh/delete after import + provide visual feedbackYorhel1-2/+27
It's kinda annoying how you need to confirm the messages. I'd prefer having some status bar where messages are automatically removed after a short timeout or something. But that's more work, and for the few cases where feedback is necessary this'll work fine, too.
2012-09-06dir_import.c: Only call input_handle() once every 32 read itemsYorhel1-1/+5
Some measurements importing a gzip-compressed file (zcat .. | ncdu -f -) containing a bit under 6 million items and a few choices of how often to call input_handle(): Called on every item: real 0m13.745s user 0m12.576s sys 0m4.566s Called on every 8 items: real 0m7.932s user 0m9.636s sys 0m1.623s Called on every 16 items: real 0m7.559s user 0m9.553s sys 0m1.323s Called on every 32 items: real 0m7.279s user 0m9.353s sys 0m1.277s Called on every 64 items: real 0m7.166s user 0m9.389s sys 0m1.117s Called on every 256 items: real 0m7.073s user 0m9.439s sys 0m1.027s 32 seemed like a good compromise.
2012-09-06browser.c: Display [imported] indication in titleYorhel1-1/+3
2012-09-06dir_import.c: Don't throw an error when user aborted importYorhel1-2/+2