Commit graph

43 commits

Author SHA1 Message Date
Sebastian Zivota
70af39ed0a Added data to File and Dir variants of Elem, FileType enums
This obviates the need for separate variants for such things as
executableness and setuid.
2019-01-20 11:45:24 +01:00
Sebastian Zivota
390f5e4280 Renamed theme flag to icon-theme and default option to fancy 2019-01-19 11:57:27 +01:00
Sebastian Zivota
bc3e47c6d7 Added --theme option to select icon theme
Possible values are `default` and `unicode`.
2019-01-19 11:57:27 +01:00
Peltoche
092c961ea7 Do not panic in case of broken pipe 2019-01-16 15:06:01 +01:00
Peltoche
5f50be78e9 Fix the --icon=never in case of no tty 2019-01-12 12:13:29 +01:00
Max Taldykin
c74b5d619e Add a depth parameter for the -R and --tree options 2018-12-27 14:44:17 +01:00
boxdot
9a83bda871 Review improvements + unittest of sorting. 2018-12-16 14:26:11 +01:00
boxdot
3514d79642 Add options to sort by time and to reverse sorting order. 2018-12-16 14:26:11 +01:00
Peltoche
be41956919 Fix the lint errors 2018-12-14 16:20:22 +01:00
Peltoche
f0a4fa125c Add the --icon flag 2018-12-13 16:08:01 +01:00
Peltoche
78f13841e8 Run cargo fmt 2018-12-12 11:46:50 +01:00
Your Name
feb581c2d7 Move icon rendering logic to name 2018-12-12 10:27:19 +01:00
Peltoche
b56df8ec56 Implement the -F flag 2018-12-10 19:03:48 +01:00
Peltoche
a006824f37 Refactore the icon package 2018-12-08 22:38:08 +01:00
Peltoche
0cee42aa69 Add the --color flag support 2018-12-08 14:54:18 +01:00
Peltoche
7e158ae6b9 Create the flags package and move the Options struct into it 2018-12-08 14:54:18 +01:00
Peltoche
21111ff316 Use print_one_per_line if no tty is available 2018-12-05 21:30:14 +01:00
Peltoche
55fc49f8cd Add the theme support to the Colors struct 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
Peltoche
b60bab1bdd
Handle the --tree option 2018-12-04 14:54:56 +01:00
Peltoche
8989ca44fe
Add the --recursive option 2018-12-04 13:29:54 +01:00
Peltoche
823b04a258
Handle correctly the special files metadata fetching 2018-12-04 11:15:05 +01:00
Peltoche
e375a19f5b
Add the Display struct 2018-12-02 17:22:51 +01:00
Peltoche
2d6627ce7f
Create the Batch struct 2018-12-02 15:05:27 +01:00
Peltoche
0bd3ce5b31
Create the Name struct 2018-12-01 18:59:53 +01:00
Peltoche
f542fef68d
Create the Date struct 2018-12-01 17:56:07 +01:00
Peltoche
a7aff583f3
Create the Owner struct 2018-12-01 17:15:55 +01:00
Peltoche
8a0f253f16
Handle all the file types (block/char/pipe/etc) 2018-12-01 16:51:39 +01:00
Peltoche
033181ca9b
Add the file_type into the Permission struct 2018-12-01 14:16:23 +01:00
Peltoche
25c615002e
Add the Size.render method 2018-12-01 12:34:16 +01:00
Peltoche
f1fec9352d
Fix the file size values 2018-11-30 14:53:54 +01:00
Peltoche
95306a0b05
Manage symlink into the file ordering 2018-11-25 16:37:30 +01:00
Peltoche
6199c8d888
Remove the spaces at the beginning of the long format 2018-11-25 16:16:22 +01:00
Peltoche
de3a3afeb7
Improve ls indentation with term_grid 2018-11-25 15:56:39 +01:00
Peltoche
125cfbaa19
Add ls without the -l flag 2018-11-24 17:42:39 +01:00
Peltoche
916fde2523
Rename LongMeta to Meta 2018-11-24 15:53:46 +01:00
Peltoche
cdd9dc1a70
Restore the -a option 2018-11-24 15:50:26 +01:00
Peltoche
b0adc11215
Separate the meta into a new package 2018-11-24 15:43:04 +01:00
Peltoche
1f64ced9d9
Run clippy lint 2018-11-24 13:30:29 +01:00
Peltoche
30709497de
Add the icons next to the file names 2018-11-24 13:05:44 +01:00
Peltoche
052e1321a5
Save the name into the Meta struct 2018-11-24 12:35:19 +01:00
Peltoche
5b9d87a74f
Add some details on panics 2018-11-24 12:02:39 +01:00
Peltoche
4b9568510c
Change a lot of stuff
This is a shitty comment, I know...
2018-11-16 14:19:07 +01:00