Ben S
24628f97be
Use number_prefix crate for number prefixes
2014-12-18 07:00:31 +00:00
Ben S
224849b0e9
Make copyable values copyable
2014-12-14 18:23:06 +00:00
Ben S
65f124fe39
Use the natord library instead of our own sorter
...
I'm serious, the more functionality I can use external crates for, the better.
2014-12-12 11:26:18 +00:00
Ben S
6ade060eb6
Use curlies consistently
2014-11-25 20:50:23 +00:00
Ben S
e1d3512a69
Add --help flag
2014-11-25 15:54:50 +00:00
Ben S
bcaf54d7dd
Add a flag to print directories as files
...
Also, re-use the stat result from directory-checking.
2014-11-25 01:27:26 +00:00
Ben S
cbd2f1fa37
List files and directories separately
...
This finally fixes the issue where trying to list a file causes a crash. Also, tidy up some of the uses of references.
2014-11-24 17:03:36 +00:00
Ben S
5b7124bb71
I like aligning things
2014-11-24 02:13:54 +00:00
Ben S
ab66c681c2
Add some pointers
2014-11-23 22:36:03 +00:00
Ben S
933f98d2c3
Upgrade to latest Rust nightly
2014-11-23 21:29:11 +00:00
Ben S
e2f9a80ca5
Add none and inode sort options
2014-07-22 21:27:36 +01:00
Ben S
35a0ba3ba0
Use one-line view when output is not to a terminal
2014-07-22 20:50:53 +01:00
Ben S
44a9819417
Add --oneline option
...
Also, rename old 'lines' view to 'details' which makes more sense
2014-07-22 20:47:30 +01:00
Ben S
4cbc1f063a
Upgrade to latest Rust nightly
...
- Lifetime changes in unix.rs
- lexical_ordering -> cmp
- from_utf8_lossy got moved into String
- vec.get(n) -> vec[n]
2014-07-21 22:05:04 +01:00
Ben S
240cbf7b41
Add --across parameter
2014-07-07 19:18:09 +01:00
Ben S
728f9f1804
Add grid view by default
...
This makes it more like ls. The --long (-l) argument has been added to get at the old behaviour, and the --links argument is now on -H. I can't crib this behaviour from ls because it shows it by default.
TODO: The terminal size is currently assumed to be 80, and it uses the string length, rather than the width.
2014-07-06 17:33:40 +01:00
Ben S
8daeba2617
Move string-to-filenames-vector code to its own function
2014-07-05 22:36:43 +01:00
Ben S
df65886d6d
Properly handle invalid UTF-8 filenames
2014-06-29 21:02:14 +01:00
Ben S
a8465fed45
Move to Cargo
2014-06-28 17:24:20 +01:00