Abin Simon
deea0df83d
do not pass tense explicitly
2019-03-06 15:12:29 +01:00
Daniel Thomsen
0498ebd46c
Add -h arg for ls compatibility
2019-03-06 09:53:29 +01:00
Ryan O'Beirne
9ec57c47b2
Use package description in clap
2019-02-26 13:14:45 +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
aba3e96a28
color files with lscolors
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
Sebastian Zivota
e1138bbec3
Refactored classic mode
2019-02-03 12:04:37 +01:00
Sebastian Zivota
1b7eec351c
Added --classic flag
2019-02-03 12:04:37 +01:00
Peltoche
0fa68098e2
Improve the tree display
2019-01-23 23:09:34 +01:00
Peltoche
a17eb10656
Fix the permissions
2019-01-23 10:57:09 +01:00
Peltoche
6bdf9ca3c2
Fix a panic with multiple icon options
2019-01-22 19:36:12 +01:00
Peltoche
c4a99ed8f4
big refacto
2019-01-22 17:51:40 +01:00
Peltoche
581ff0920b
Handle the errors into the core
2019-01-22 17:48:07 +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
0d215dca50
Added SetuidDir
and SetuidFile
variants to Elem
and FileType
...
This allows us to display files and directories that have the uid
flag set with a red background.
2019-01-20 11:45:24 +01:00
Sebastian Zivota
5ad0fb1b21
Added unicode symbols in comments
2019-01-19 11:57:27 +01:00
Sebastian Zivota
5151446fcb
Added default icons to Icons
struct
...
Also added tests for unicode icon set
2019-01-19 11:57:27 +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
Sebastian Zivota
662f3ddf38
Added Unicode
icon set
...
It's just an icon set with empty icon maps, so everything should
fall through to the default folder/file icons.
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
92d018255a
Add the directory-order flag
2019-01-12 16:42:05 +01:00
Peltoche
5f50be78e9
Fix the --icon=never in case of no tty
2019-01-12 12:13:29 +01:00
cat12079801
d8d91051ec
delete "yarn.lock" from Icons::get_default_icons_by_extension()
2018-12-27 17:39:28 +01:00
cat12079801
389d46c3a6
use "if" instead of "match"
2018-12-27 17:39:28 +01:00
cat12079801
2c4e69c906
Icon in test code changed to Unicode code
2018-12-27 17:39:28 +01:00
cat12079801
972991d484
Add some tests for Icons::get
2018-12-27 17:39:28 +01:00
cat12079801
748b9c0368
Check directory first
2018-12-27 17:39:28 +01:00
cat12079801
c7c795856f
Fix wrong indent
2018-12-27 17:39:28 +01:00
Pierre Peltier
92af678167
Update --depth help messages
...
Co-Authored-By: jorpic <jorpic@gmail.com>
2018-12-27 14:44:17 +01:00
Max Taldykin
c74b5d619e
Add a depth parameter for the -R and --tree options
2018-12-27 14:44:17 +01:00
Peltoche
ac82815c19
Do not panic if the group name is not available
2018-12-27 13:08:58 +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
f162a677dd
Fix the name ordering
2018-12-17 11:43:28 +01:00
boxdot
af9a24b490
Fix usage of touch in test.
2018-12-16 14:26:11 +01:00
boxdot
0eef7aea59
Make sure that mod time of file in the test is before dir created.
2018-12-16 14:26:11 +01:00
boxdot
9a83bda871
Review improvements + unittest of sorting.
2018-12-16 14:26:11 +01:00
boxdot
8e331ff566
Fix test.
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
cd586b330c
Remove a println
2018-12-15 09:29:02 +01:00
Peltoche
0c877b1cdb
Fix a multi icon issue
2018-12-14 17:07:52 +01:00
Peltoche
d781e49c67
Add several icons
2018-12-14 17:07:52 +01:00
Peltoche
629c934c58
Make the clippy lints available for older compilers
2018-12-14 16:20:22 +01:00
Peltoche
be41956919
Fix the lint errors
2018-12-14 16:20:22 +01:00
Peltoche
8bc3686f66
Implement the Default trait to Flags
2018-12-14 14:32:18 +01:00