Yorhel
c08340ee08
Year + version bump for 1.18.1
2023-02-12 08:44:13 +01:00
Yorhel
6dd159d489
Backport --(enable|disable)-(shell|delete|refresh) from 2.x
...
Only remaining options missing from this C implementation are
--graph-style (sounds doable, but pretty low priority) and
--shared-column (unlikely to happen).
2022-11-30 11:44:08 +01:00
Yorhel
49e4b061a5
Backport configuration file support from 2.x
2022-11-06 13:37:33 +01:00
Yorhel
b45f8e4c06
Backport a bunch of CLI options from 2.x + sync manpage changes
2022-11-05 16:43:57 +01:00
Yorhel
9670ca66ed
Backport argument parser from ncdu 2.x + add a few inverted arguments
...
This makes way for backporting the various new configuration options
and config file support from 2.x.
2022-11-05 12:21:30 +01:00
Yorhel
dc78e8db19
Properly mark functions without arguments as (void)
...
Fixes compilation with -Werror=old-style-definition
2022-11-05 10:54:37 +01:00
Yorhel
a5e8a43943
Set default attributes to the whole window during curses init
...
Based on 058b26bf9a
2022-06-15 06:26:18 +02:00
Yorhel
683eb26ad1
Year + version bump for 1.17
2022-04-28 11:19:27 +02:00
François Revol
e29a42a02a
Some more compatibility improvements for C89 environments
...
This compiles now fine with gcc 2.95 on Haiku.
2022-02-08 10:02:10 +01:00
Yorhel
376aad0d35
Add dark-bg color scheme + enable colors by default if !NO_COLOR
...
The dark-bg scheme draws an explicit black background, so should also be
readable in terminals with a light background. That's been the main
show-stopper for enabling colors by default, as the 'dark' color scheme
is totally unreadable on light backgrounds and there's no way to detect
what background the terminal is actually using.
2021-08-16 16:07:51 +02:00
Yorhel
f982af81b0
Year + version bump for 1.16
2021-07-02 13:30:55 +02:00
Yorhel
a389443c9a
Add --exclude-firmlinks and follow firmlinks by default
...
What a mess.
https://code.blicky.net/yorhel/ncdu/issues/153#issuecomment-764
2020-06-07 10:03:11 +02:00
Christian Göttsche
19cfe9b15c
Correct misspellings
2020-05-30 19:26:00 +02:00
Saagar Jha
c9ce16a633
Support excluding firmlinks on macOS
2020-05-13 11:29:55 -07:00
Christian Göttsche
c209b012b1
Add option --exclude-kernfs to skip scanning Linux pseudo filesystems
...
(cherry picked from commit a076ac714a )
2020-04-08 18:32:11 +02:00
Christian Göttsche
50b48a6435
Mention supported color schemes in help text
2020-04-08 17:17:06 +02:00
Christian Göttsche
e3742f0c80
Remove redundant cast to the same type
...
(cherry picked from commit ef7b4e5c28 )
2020-04-08 11:00:41 +02:00
Christian Göttsche
39709aa665
Use strict prototypes
...
(cherry picked from commit e4e8ebd9e0 )
2020-04-08 10:52:25 +02:00
Yorhel
888bd663c6
Also quit on EIO from getch()
...
Fixes #141
2020-04-01 16:54:57 +02:00
Yorhel
8d58297328
Year + version bump for 1.14.2
2020-02-10 16:02:26 +01:00
Yorhel
ecb71f2550
Fix definitions of global vars confirm_quit and dir_process
...
They were defined (rather than just declared) in .h files, when they
really should be defined in at most a single .c file.
Fixes #140 .
2020-01-25 09:25:11 +01:00
Yorhel
bb7b4196f2
Handle malloc failure by pausing any activity
...
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)
2019-07-23 11:03:41 +02:00
Yorhel
cd38a62aa8
Clear errno before getch()
...
Fixes #128 .
2019-04-19 15:01:58 +02:00
Yorhel
b6ddd491b3
Year + version bump for 1.14
2019-02-04 17:30:22 +01:00
Simon Doppler
74efdfaf97
Add a '--follow-symlinks' option
...
Symlink loops are handled by the stat(2) syscall. Symlinks pointing to a
directory are ignored (to avoid loops in the recursive scan).
2019-01-24 08:24:09 +01:00
Yorhel
93583e645f
Add --help flag as alias for -h
...
https://dev.yorhel.nl/ncdu/bug/125
2018-12-16 10:47:51 +01:00
Yorhel
d95c65b032
Add -V and --version as alias to -v
2018-09-03 22:19:55 +02:00
Yorhel
cbe24d6c8f
Exit ncdu when losing input
...
Ought to fix https://dev.yorhel.nl/ncdu/bug/115
2018-06-13 17:16:02 +02:00
Yorhel
fa19095e26
Fix '--color off'
...
https://dev.yorhel.nl/ncdu/bug/111
2018-03-29 17:20:43 +02:00
Yorhel
14afd92ba2
Year + version bump for 1.13
2018-01-29 11:58:14 +01:00
Yorhel
47e969cdf3
Add -e flag to enable extended information mode
...
And document the --color flag that I forgot.
2018-01-23 13:45:16 +01:00
Yorhel
6c2ee0d6ab
Add --color option, simple theme support, disable colors by default
...
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.
2018-01-21 15:41:54 +01:00
Yorhel
a369a43d94
Add support for colors and sprinkle some colors around
...
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-07-08 16:29:31 +02:00
Yorhel
936a9446a8
Add -rr option to disable shell spawning
...
Fixes https://dev.yorhel.nl/ncdu/bug/94
2017-01-06 18:35:30 +01:00
Yorhel
e4f211db68
Year + version bump for 1.12
2016-08-24 20:59:58 +02:00
Tillmann Karras
dcf08bd8bb
Consistently print errors to stderr
2016-01-12 20:00:24 +01:00
Max Klinger
c035c3859c
implement confirmation switch
2015-09-20 07:58:07 +02:00
piyo
e96cc36d56
Confirm quit action with a cancellable dialog.
2015-09-19 12:36:38 +09:00
Thomas Jarosch
a25e5f80a5
Add ability to spawn shell
...
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-12-14 09:16:27 +01:00
Yorhel
79213f0d63
Support building without locale.h
...
Slightly modified patch from Gianluigi Tiesi.
http://dev.yorhel.nl/ncdu/bug/47
2014-04-13 08:35:46 +02:00
Yorhel
efece12cfe
Copyright year update
2014-01-22 15:28:20 +01:00
Yorhel
0e9e6d511a
Add --si flag for base 10 prefixes
...
This is a slightly modified patch contributed at
http://dev.yorhel.nl/ncdu/bug/35
2013-07-23 10:33:24 +02:00
Yorhel
09c444753a
Move khash & yopt to deps/
...
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-25 08:11:39 +02:00
Petr Pudlak
2784d82a9e
CACHEDIR.TAG - improve code style and the name of the parameter.
...
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-12 14:53:33 +02:00
Petr Pudlak
3def47c331
Add CACHEDIR.TAG support.
...
A new command line parameter allows to filter out directories containing
the proper `CACHEDIR.TAG` file.
See http://www.brynosaurus.com/cachedir/
2013-04-10 16:50:57 +02:00
Chris West (Faux)
c4f5f370ac
use the locale's thousand seperator, if available
2013-01-13 12:42:28 +00:00
Yorhel
7feaeb1483
Abstracted option parsing from option handling
...
This also adds the possibility to combine short options that expect an
argument, e.g. "-xo <file>" or even "-xo<file>".
2012-09-08 14:38:15 +02:00
Yorhel
b6e4092ea7
cli: Use -0,-1,-2 instead of "-u n"
...
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-06 14:11:44 +02:00
Yorhel
c298e32942
Check that stdin is a tty when initializing ncurses
2012-09-06 09:33:58 +02:00
Yorhel
10dca5503a
Added -f option to import an exported directory structure
...
This is the first working version. There's a few TODO's left.
2012-09-05 13:52:12 +02:00