Gavin Panella
28623cf6bd
Avoid filtering the metas in the display output code.
2019-05-21 12:08:10 +02:00
Atul Bhosale
f619dc07d6
Format code using 'cargo fmt'
2019-05-17 19:59:19 +02:00
Abin Simon
e6de6d54f0
add a new way to style size
2019-03-29 17:11:48 +01:00
Abin Simon
854ed96594
change from two spaces to one
2019-03-29 11:30:37 +05:30
Abin Simon
3477b6e723
refactor how width is computed for colored strings
2019-03-12 12:01:19 +01:00
Abin Simon
c9b3550f61
fix spacing issue on colors
2019-03-11 18:01:36 +01:00
Peltoche
27d57b2b86
Handle all the color code format for the visible width calculation
2019-03-11 18:01:36 +01:00
Sebastian Zivota
e05b389986
Added Layout enum
2019-03-11 13:25:30 +01:00
Abin Simon
67bf8d742e
Update tests to work with LSCOLORS update
...
Added another enum value to Theme `NoLscolors`.
As of right now it only helps with tests, but maybe useful for something
in future.
Colouring based on LSCOLORS should be tested in the package so we should
be good.
2019-02-17 12:17:29 +01:00
Abin Simon
e8015ebd3e
switch to one line when not outputting to tty
2019-02-16 13:11:28 +01:00
Peltoche
e4882c5c99
Fix the module import paths
2019-02-16 11:34:33 +01:00
Peltoche
0fa68098e2
Improve the tree display
2019-01-23 23:09:34 +01:00
Peltoche
c4a99ed8f4
big refacto
2019-01-22 17:51:40 +01:00
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
Peltoche
092c961ea7
Do not panic in case of broken pipe
2019-01-16 15:06:01 +01:00
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