Commit graph

19 commits

Author SHA1 Message Date
Peltoche
e30ac3827a Fix the get_visible_width with no color set 2018-12-20 17:23:36 +01:00
Kenta Kubo
a8162471bc Remove unused import 2018-12-20 14:01:03 +01:00
Kenta Kubo
c1a3ef81ac cargo fmt src/display.rs 2018-12-20 14:01:03 +01:00
Kenta Kubo
1ecbdeef46 Add tests for Display::get_visible_width 2018-12-20 14:01:03 +01:00
Kenta Kubo
fca6498d99 Use unicode-width crate to count width of filename 2018-12-20 14:01:03 +01:00
Peltoche
be41956919 Fix the lint errors 2018-12-14 16:20:22 +01:00
Abin Simon
f31afa8ab7 Add option to show relative date 2018-12-13 12:27:54 +01:00
Abin Simon
2548af1218 Use print instead of println to display output
Avoid the extra line being printed at the end
2018-12-13 10:52:56 +01:00
Peltoche
78f13841e8 Run cargo fmt 2018-12-12 11:46:50 +01:00
Peltoche
7e158ae6b9 Create the flags package and move the Options struct into it 2018-12-08 14:54:18 +01:00
Peltoche
f843e6db72 Change the display order 2018-12-07 20:20:31 +01:00
Peltoche
21111ff316 Use print_one_per_line if no tty is available 2018-12-05 21:30:14 +01:00
Peltoche
526f020695 Do not colorize when the stdout is not a tty 2018-12-05 20:25:48 +01:00
Yann Leretaille
dba7022a85 fixes #11 2018-12-05 10:23:44 +01:00
Peltoche
b60bab1bdd
Handle the --tree option 2018-12-04 14:54:56 +01:00
Peltoche
a4a494a5bc
Add the -1 option 2018-12-02 18:19:57 +01:00
Peltoche
9e16d6620b
Display all the batch a once 2018-12-02 18:16:02 +01:00
Peltoche
e425bd9d3a
Use ANSIString for rendering 2018-12-02 18:13:46 +01:00
Peltoche
e375a19f5b
Add the Display struct 2018-12-02 17:22:51 +01:00