Commit graph

450 commits

Author SHA1 Message Date
zwPapEr
80a0a704c6 theme/test: 🔍 add tests for theme
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
b13a171a41 theme/test: 🔍 🔨 update tests to fit theme update
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
b553d07faa color: add parse theme file
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
ec77d91952 log: :doc: unique error output and update comment to fit config 2021-09-26 00:11:42 -04:00
zwPapEr
30373d7956 config: 🔨 using target enum and vec string for config options
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
auronandace
62b1eecb62 run cargo fmt 2021-08-26 15:33:58 +05:30
auronandace
e738de7b8c clippy lint: avoid manual implementation of Option 2021-08-26 15:33:58 +05:30
Luca Matei Pintilie
b40ba188ba Remove unnecesary return 2021-08-22 17:38:19 +05:30
Luca Matei Pintilie
de190a4bfb Format and add test 2021-08-22 17:38:19 +05:30
Luca Matei Pintilie
11124b9ff0 Add NO_COLOR env support 2021-08-22 17:38:19 +05:30
auronandace
9bd7690af8 Fix Clippy lints
Update display.rs

Update color.rs

Update date.rs

Update date.rs

Update mod.rs

Update display.rs
2021-08-20 23:30:43 +08:00
Evan Sherwood
0246531e7f Add .mjs extension (ESM)
Re-use the JS icon for [ESM Modules with `.mjs` extension](https://nodejs.org/api/esm.html#esm_modules_ecmascript_modules).
2021-08-16 14:21:56 +08:00
Abin Simon
682a80d866 Remove unnecessary use of read_link 2021-08-15 22:48:56 +05:30
Fabricio Dematte
e5a531778a correctly parsing custom config file arg. match 2021-06-11 09:57:41 +05:30
Fabricio Dematte
0871fd0020 add config-file arg match 2021-06-11 09:57:41 +05:30
Mark Gardner
ddb4883f27 Add Perl module and test script icons 2021-05-21 19:00:55 +05:30
Prunkles
9f83b8d2a3 Add F# icons 2021-04-25 21:04:56 +05:30
zwPapEr
154fc1ef69 display/tree: 🔨 add space for better tree display
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
8873f1c199 test: 🔍 🔨 fix tree test without sort
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
2f9fd1e8de display: 🎨 delete tree color and apply review
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
3cdf8fdf0d display/tree: show tree edge at first column when no name block
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
ebcaaebad2 display/tree: 🔨 detect all subdir size width when tree
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
2e47bac535 display/tree: 🔨 fix misaligned when tree, add color to tree edge
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
072a9bd756 display/tree: 🔍 add test and changelog for show edge before name
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
zwPapEr
7f3d4ff9e2 display/tree: 🎨 show tree edge before name block
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-03-27 20:13:05 +05:30
Abin Simon
4720fe7a36 fix some test imports 2021-03-12 18:52:05 +05:30
Abin Simon
292262fb40 Update classic help message 2021-03-12 18:52:05 +05:30
Abin Simon
1d763f6f98 Use size bytes when in classic mode 2021-03-12 18:52:05 +05:30
Abin Simon
c061218965 Remove tree test with --all
This seems to be different in macOS&Windows vs Linux. Fixing this so
that we can make a release. For some reason, this works randomly.
2021-03-07 12:31:16 +05:30
Abin Simon
22f5a6b992 Fix test involving config file for sorting 2021-02-17 09:21:58 +05:30
Abin Simon
7fad205682 Fix arg value parsing for flags that allow multiple input 2021-02-16 09:15:48 +05:30
Abin Simon
24e6335e0a Fix sorting with almost-all flag and a folder
With a folder structure (a folder `z` with a file `a`), if we do `lsd
-a` it used to be:

. a ..

instead of

. .. a

This was caused to the the parent meta having full path and us using
z/.. to sort .. entry. This should now be fixed with manually changing
the name to a .. .
2021-02-15 09:35:14 +05:30
zwPapEr
0ca699ee2f display/tree: 🔍 add test for tree with all not show self
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-02-15 09:33:59 +05:30
zwPapEr
36002a35ac display/tree: 🔨 not showing . and .. when tree with all
fix https://github.com/Peltoche/lsd/issues/477

Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-02-15 09:33:59 +05:30
TheAlakazam
3c342f68b0 Code review fixes 2021-01-31 09:39:14 +05:30
Piyush Jaipuriyar
072696d72e Changed INodeCount to Links 2021-01-31 09:39:14 +05:30
Piyush Jaipuriyar
34beb08d1f Addressed review comments 2021-01-31 09:39:14 +05:30
TheAlakazam
52d6953cc6 Fix for #407: Show number of hardlinks for lsd -l 2021-01-31 09:39:14 +05:30
Sophie Tauchert
1396c59516 Fix clippy warning 2021-01-14 22:24:26 +05:30
Sophie Tauchert
dffc55b87b Fix typo 2021-01-14 22:24:26 +05:30
Sophie Tauchert
02441fdf38 Remove locale time style 2021-01-14 22:24:26 +05:30
Sophie Tauchert
957957024c Use recent date format for files older than 6 months 2021-01-14 22:24:26 +05:30
Sophie Tauchert
fbe20fcc32 Add test cases for iso and locale formatting 2021-01-14 22:24:26 +05:30
Sophie Tauchert
4ebbfaead2 Fix iso and locale time styles for older elements 2021-01-14 22:24:26 +05:30
Sophie Tauchert
3b814d03a7 Fix and test iso and locale time styles 2021-01-14 22:24:26 +05:30
Sophie Tauchert
d4fbedd1e4 Add test cases for order of precedence 2021-01-14 22:24:26 +05:30
Sophie Tauchert
2a93ce3a6e Invert order of flag parsing to return early 2021-01-14 22:24:26 +05:30
Sophie Tauchert
1107a259b3 Change order of flag parsing to arg -> env -> config 2021-01-14 22:24:26 +05:30
Sophie Tauchert
bc117cfee0 Fix error message for compatibility with previous version 2021-01-14 22:24:26 +05:30
Sophie Tauchert
ac91205932 Use serial test for environment variable tests 2021-01-14 22:24:26 +05:30