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
c7417e0bca
Remove unnecessary namespacing
2014-11-24 02:18:22 +00:00
Ben S
8e455f9390
Optimise unsafe usage
2014-11-24 02:16:28 +00:00
Ben S
5b7124bb71
I like aligning things
2014-11-24 02:13:54 +00:00
Ben S
d72be30c30
Reduce unnecessary String allocations
...
- Remove uses of to_string() on a &str where it wasn't necessary
- Use SendStr to reduce allocations further
2014-11-24 02:01:08 +00:00
Ben S
c75bbf7f79
Add path to symlinks
2014-11-24 01:48:51 +00:00
Ben S
03ecb8c9e1
Fix bug with empty directories
2014-11-24 01:24:45 +00:00
Ben S
b7e7bc7057
Fix bug that panics when getting group info
...
I'm not sure if this a Rust change or something I've introduced...
2014-11-24 01:13:58 +00:00
Ben S
3066f2f840
Leverage new Travis support for Rust
2014-11-23 23:50:26 +00:00
Ben S
71f03157aa
Add some more file extensions
2014-11-23 23:01:06 +00:00
Ben S
ab66c681c2
Add some pointers
2014-11-23 22:36:03 +00:00
Ben S
92dc91dbc7
Add Cargo.lock to .gitignore
2014-11-23 21:58:38 +00:00
Ben S
d7b8b230ef
Remove containers from file name in grid view
...
What a strange bug to happen
2014-11-23 21:57:33 +00:00
Ben S
933f98d2c3
Upgrade to latest Rust nightly
2014-11-23 21:29:11 +00:00
Ben S
26f8ad08bf
Replace from_c_str with from_buf
2014-09-22 21:47:22 +02:00
Ben S
c80d1ec862
Replace to_option() with as_ref()
2014-09-22 21:12:07 +02:00
Ben S
b0c51d93f8
Remove a few deprecated constructs
...
The language keeps changing when I'm not looking!
2014-09-22 18:03:47 +02:00
Ben S
a2e9144866
Match file extensions case-insensitively
...
I truly didn't realise this wasn't already done until someone sent me a .BMP file.
2014-07-22 22:32:16 +01:00
Ben S
fb8821164c
Misc style changes
2014-07-22 22:27:37 +01:00
Ben S
527528e81f
Move file-sorting code outside the view functions
2014-07-22 22:19:51 +01: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
d15529301f
Update screenshot to show off awesome new grid view functionality
2014-07-22 15:54:17 +01:00
Ben S
856612acf3
Update screenshot to show off awesome new grid view functionality
2014-07-22 15:50:28 +01:00
Ben S
db5fe58296
Merge pull request #3 from ogham/grid-view
...
Grid view
2014-07-22 15:44:06 +01:00
Ben S
cf3e32c9c1
Get terminal width for grid view ( resolve #1 )
2014-07-22 15:41:20 +01:00
Ben S
b1560edb85
Use string width, rather than length, to calculate column size
2014-07-21 22:05:39 +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
aac69017e7
Merge pull request #2 from ebfe/fix-build-master
...
Fix build with rust master
2014-07-16 09:38:08 +01:00
Michael Gehring
082af307b4
ToStr::to_str -> ToString::to_string
2014-07-16 06:20:43 +02:00
Ben S
90099f28cf
Upgrade to latest Rust nightly
...
- change to_string() on numbers to to_str()
2014-07-10 22:20:52 +01:00
Ben S
fc90f4bfc9
Don't pad the final column
2014-07-07 20:11:30 +01:00
Ben S
240cbf7b41
Add --across parameter
2014-07-07 19:18:09 +01:00
Ben S
03c51f0bfd
Correctly calculate number of rows
2014-07-07 18:42:09 +01:00
Ben S
92ccf821ff
Colour file names in grid view
2014-07-06 18:00:27 +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
de9c2d29dd
Merge branch 'master' of github.com:ogham/exa
2014-07-05 22:37:03 +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
0de80ad7ec
Rename variable
2014-07-05 19:54:34 +01:00
Ben S
cfb0fa9b72
Import Paint trait from rust-ansi-term
2014-07-04 09:54:14 +01:00
Ben S
3643994e4b
Mention Rust 0.11 and Cargo in the README
2014-07-02 22:24:25 +01:00
Ben S
a7dea6b13b
Update LICENCE
2014-07-02 22:07:09 +01:00
Ben S
43e3f742ca
Comply with latest rust-ansi-term
2014-07-02 21:47:43 +01:00
Ben S
e1693cd769
Third time lucky?
2014-07-01 20:39:41 +01:00
Ben S
c6a8fadac0
Second try at Travis+Cargo fixes
2014-07-01 20:34:35 +01:00
Ben S
7aec8631ab
Get Cargo working on Travis
2014-07-01 19:11:35 +01:00
Ben S
d2647df0ca
Move some stuff out to rust-ansi-term crate
2014-07-01 19:00:36 +01:00
Ben S
eecfd88363
Simplify alignment code
2014-06-30 09:59:54 +01:00