Yorhel
b7d59bee5b
Properly display MiB units instead of MB
...
Fixes bug #2831412 (debian #539553 )
2009-08-03 14:26:10 +02:00
Yorhel
fd984e754c
Added hard link indicator in browser and help window
2009-05-05 19:25:52 +02:00
Yorhel
d571c080b5
Fixed a browsing bug related to hiding items
...
Reproducable with the following steps:
- Make sure the first item in the list is a directory starting with a dot
- Make sure the next item is a normal directory
- Select first item
- Press 'h' to hide it, next item will properly be selected
- Open selected directory (right arrow), and see how the first (hidden)
directory was opened.
It's amazing how I've even found this bug, considering that really is the
only way to reproduce it...
2009-05-02 13:01:12 +02:00
Yorhel
0fe0d11e3b
Don't divide by zero when size of parent dir = 0
...
It's a floating point division, so won't really cause any real problems
on most systems. Still, a percentage of 'nan' isn't really useful.
2009-05-01 09:07:28 +02:00
Yorhel
95b314de73
Fixed line width when displaying 100%
...
Which would happen if there's only one file is in a directory
2009-05-01 09:00:59 +02:00
Yorhel
ceecccc3ae
Move cursor to the correct line in browse_draw()
2009-04-26 11:22:24 +02:00
Yorhel
43fec63281
Removed last occurence of PATH_MAX
...
And it wasn't even used for a path, but for a row on the screen...
2009-04-26 11:18:45 +02:00
Yorhel
290c7a7d70
Renamed ncdu.h to global.h and #included all other header files into that
...
So we're actually back to having one header file for everything,
except it's now maintainable.
2009-04-26 11:08:40 +02:00
Yorhel
f6e34e520e
Don't re-sort when pressing the browse keys without affecting the dir
2009-04-26 09:55:23 +02:00
Yorhel
ba243df042
Centralized screen update delay into input_handle()
2009-04-26 09:49:51 +02:00
Yorhel
027c0c2eba
Don't segfault when browsing an empty dir...
2009-04-25 15:46:00 +02:00
Yorhel
1f341f8b4c
Fixed segfault on specifying an empty dir
2009-04-25 12:11:53 +02:00
Yorhel
5c6f057840
Fixed a few occurences of wrong arguments for getpath()
...
That's what you get when you change the way a function works...
2009-04-23 22:03:24 +02:00
Yorhel
4bb7d6b7c2
Removed reliance on PATH_MAX on most places
...
ncdu already does seem to handle longer paths now, though there are
still a few places where the code still relies on PATH_MAX. Will fix
those later.
2009-04-23 21:15:11 +02:00
Yorhel
a71bc36860
Select next item after deleting
...
This makes deleting multiple files a -lot- easier...
2009-04-19 13:16:31 +02:00
Yorhel
ba4d06e09e
(partly) rewrote delete.c for the new framework and re-added the deletion feature
2009-04-19 11:38:35 +02:00
Yorhel
daba2128fc
Don't quit ncdu when pressing 'q' while the info window is shown
...
Just hide the info window in that case.
2009-04-19 10:06:33 +02:00
Yorhel
6568a962bc
Converted help.c to the new framework and re-added help window
2009-04-19 10:03:42 +02:00
Yorhel
8daeeea1d9
Re-added file information window in browser.c
2009-04-18 16:02:46 +02:00
Yorhel
ddd8a639b7
Only sort directory when necessary
2009-04-18 15:45:58 +02:00
Yorhel
42ca499730
Allow drawing the browser frame when there's no directory structure
2009-04-18 15:34:47 +02:00
Yorhel
e079026ac8
Kept internal variables internal in browser.c and added browse_init()
...
Looks much better this way!
2009-04-18 15:23:33 +02:00
Yorhel
b24c3dee40
Got rid of SF_SI
...
It was a totally useless feature, anyway.
2009-04-18 14:05:45 +02:00
Yorhel
34ba5348c8
Made stcalc static within calc.c and abstracted access to it with calc_init()
...
This actually makes the struct itself obsolete, as all information is now only
useful within calc.c itself and other files don't have to do anything with it.
2009-04-16 18:26:39 +02:00
Yorhel
5790b817f9
Re-added recalculating (sub)directories
2009-04-13 19:32:40 +02:00
Yorhel
7a0730f5d2
(Partly) rewrote browser.c to the new system
...
Not fully finished yet with this one, though.
2009-04-13 17:25:46 +02:00
Yorhel
f392bf3ee1
Rewrote calc.c in the new style & framework
...
ncdu is currently pretty much in a non-working state, but things will
get fixed eventually after porting the other source files to the new
framework.
2009-04-10 18:16:33 +02:00
yorhel
e7fb90fc67
Year bump
...
git-svn-id: svn://blicky.net/ncdu/trunk@48 ce56bc8d-f834-0410-b703-f827bd498a76
2009-01-11 09:34:19 +00:00
yorhel
ca7ae5c142
Items are ordered by displayed size rather than disk usage
...
git-svn-id: svn://blicky.net/ncdu/trunk@46 ce56bc8d-f834-0410-b703-f827bd498a76
2008-12-11 17:13:03 +00:00
yorhel
c050d775d5
Size graph uses the apparent size if that is displayed
...
git-svn-id: svn://blicky.net/ncdu/trunk@45 ce56bc8d-f834-0410-b703-f827bd498a76
2008-12-11 17:07:55 +00:00
yorhel
6f2d258354
Pressing q while the info box is shown now hides the box, instead of quiting ncdu
...
git-svn-id: svn://blicky.net/ncdu/trunk@44 ce56bc8d-f834-0410-b703-f827bd498a76
2008-10-19 08:02:02 +00:00
yorhel
fec2f9a1c0
Made browse keys work when file information window is displayed
...
git-svn-id: svn://blicky.net/ncdu/trunk@42 ce56bc8d-f834-0410-b703-f827bd498a76
2008-09-20 09:35:21 +00:00
yorhel
01f9a1f552
Fixed incorrect apparent size on directory refresh
...
git-svn-id: svn://blicky.net/ncdu/trunk@41 ce56bc8d-f834-0410-b703-f827bd498a76
2008-09-17 16:40:39 +00:00
yorhel
4fdebc82d5
Added spaces around the path in browser.c (debian bug #472194 )
...
git-svn-id: svn://blicky.net/ncdu/trunk@38 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 18:29:35 +00:00
yorhel
c306d3fe3b
Updated copyright year to cover 2008 as well
...
git-svn-id: svn://blicky.net/ncdu/trunk@36 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 13:59:58 +00:00
yorhel
a4480b9523
Got rid of the FF_PAR hack
...
git-svn-id: svn://blicky.net/ncdu/trunk@35 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 13:43:39 +00:00
yorhel
9e2eb51ef4
Moved cursor to selected items in browser and deletion dialog for improved accessibility
...
git-svn-id: svn://blicky.net/ncdu/trunk@34 ce56bc8d-f834-0410-b703-f827bd498a76
2008-08-02 13:31:21 +00:00
yorhel
6b05cc9f72
Bugfix: total disk usage and apparent size in the status bar were always equal
...
git-svn-id: svn://blicky.net/ncdu/trunk@30 ce56bc8d-f834-0410-b703-f827bd498a76
2007-11-02 19:22:20 +00:00
yorhel
db920f8dab
* Added error handling for the import feature
...
* Created own window-functions and removed ncurses window usage
* Rewrote fullsize
git-svn-id: svn://blicky.net/ncdu/trunk@27 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-16 08:36:58 +00:00
yorhel
96d0ffffa2
The "reference to parent directory" hack is now only used in drawBrowser in browser.c, and is not included in the main dir structure anymore. (less code, easier, faster, less memory usage)
...
git-svn-id: svn://blicky.net/ncdu/trunk@26 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-12 09:52:24 +00:00
yorhel
70f7adecda
Fixed version in ncdu.1, and filenames ending with a tilde are now also hidden with the 'h'-key
...
git-svn-id: svn://blicky.net/ncdu/trunk@24 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-07 09:38:54 +00:00
yorhel
2a9b34ce2d
* Added 'a'-key to toggle between showing apparent size and disk usage
...
* Added 'i'-key to show a small window containing info on the selected item
* Cleaned up file flags and browse flags
git-svn-id: svn://blicky.net/ncdu/trunk@19 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-01 15:01:42 +00:00
yorhel
fa0aa6b53b
* Calculate both apparent size and disk usage
...
* Removed apparent sizes option
* Combined "files" and "dirs" to "items" in the dir structure
* Updated TODO
git-svn-id: svn://blicky.net/ncdu/trunk@18 ce56bc8d-f834-0410-b703-f827bd498a76
2007-08-01 13:17:26 +00:00
yorhel
b2b43689f0
Preperations for the export feature: re-ordered the file flags and removed FF_OTHER (which is the same as \!(FF_DIR | FF_FILE))
...
git-svn-id: svn://blicky.net/ncdu/trunk@16 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-29 14:06:05 +00:00
yorhel
62f1293b89
Fixed a few compiler warnings and added a TODO list
...
git-svn-id: svn://blicky.net/ncdu/trunk@15 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-29 10:50:48 +00:00
yorhel
614134b59b
Items will not be unnecessarily resorted when they are already in the correct order
...
git-svn-id: svn://blicky.net/ncdu/trunk@14 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-27 07:52:50 +00:00
yorhel
c96bf1636a
Changed struct dir from a doubly to a singly linked list (less memory usage, faster, and easier)
...
git-svn-id: svn://blicky.net/ncdu/trunk@13 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-26 16:37:33 +00:00
yorhel
362554d2ac
Added 'r' key to refresh the current directory
...
git-svn-id: svn://blicky.net/ncdu/trunk@11 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-26 12:56:24 +00:00
yorhel
ce6785124c
Rewrote calc.c to be more flexible and clarifying, and changed the global 'dir' to a pointer
...
git-svn-id: svn://blicky.net/ncdu/trunk@10 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-25 18:38:49 +00:00
yorhel
b53cb427a4
The 'h' key now also hides excluded items
...
git-svn-id: svn://blicky.net/ncdu/trunk@9 ce56bc8d-f834-0410-b703-f827bd498a76
2007-07-24 10:52:13 +00:00