- 04 6月, 2014 1 次提交
-
-
由 Ben S 提交于
Currently there's only one numeric column, and that's the file size, so it gets special treatment. I was originally going to have a folder file size field be filled up with '-'s as far as it could go, leaving it entirely up to the column how its field gets formatted. But then I saw just one '-' working just fine, so I left it like that. In the first try, columns could do anything they want when padding a string (including changing the padding character or just changing it entirely), but now there's no point.
-
- 03 6月, 2014 1 次提交
-
-
由 Ben S 提交于
- s/to_owned/to_string/g - TotalEq/TotalOrd changes - snake_case of identifiers
-
- 01 6月, 2014 3 次提交
- 28 5月, 2014 1 次提交
-
-
由 Ben S 提交于
-
- 27 5月, 2014 2 次提交
- 26 5月, 2014 7 次提交
-
-
由 Ben S 提交于
This finally means that the list of columns is no longer fixed, which means it has to be generated somewhere. And guess where it got moved to? That's right, the options object! (see previous commits)
-
由 Ben S 提交于
I'd like to have as few public methods on it as possible.
-
由 Ben S 提交于
-
由 Ben S 提交于
-
由 Ben S 提交于
-
由 Ben S 提交于
-
由 Ben S 提交于
The code could do with some comments, but it works.
-
- 25 5月, 2014 3 次提交
-
-
由 Ben S 提交于
I'm copying ls here because we don't really need the 'B' for bytes to be listed every time. I think it looks better the new way. Unlike ls, don't list directory sizes, because I've never found the pseudo-sizes they get given at all useful. Also, fix a bug where aligning columns didn't work when the number of format characters (like '\x1B' and '[') were different between each line.
-
由 Ben S 提交于
-
由 Ben S 提交于
-
- 24 5月, 2014 4 次提交
- 22 5月, 2014 5 次提交
-
-
由 Ben S 提交于
-
由 Ben S 提交于
-
由 Ben S 提交于
-
由 Ben S 提交于
This involves putting the entire output into a table before anything is actually printed, in order to determine what the width of each column should be. This should make it appear to output slower, as the first line can only be printed after every file has been examined, but it's still fast to me.
-
由 Ben S 提交于
-
- 05 5月, 2014 5 次提交
-
-
由 Ben S 提交于
This meant writing some libc interaction, which wasn't actually too bad.
-
由 Ben S 提交于
Replace ~strs with either &'static strs or .to_owned() strs where appropriate Fields now seem to be private by default - good!
-
由 Ben S 提交于
-
由 Ben S 提交于
Also, reverse the way columns are rendered: before, a column took a stat and a name to render; now, a file takes a column type to render. This means that most of the File data/methods can be private.
-
由 Ben S 提交于
Also add command-line-option-handling code.
-
- 04 5月, 2014 1 次提交
-
-
由 Ben S 提交于
Thanks to #rust for helping me diagnose lifetime problems!
-
- 03 5月, 2014 3 次提交