zwPapEr
6049e2ed65
theme: 🔨 fallback to default theme if item missed
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2022-01-16 12:47:35 +05:30
zwPapEr
2f353af414
theme: ✨ add default and update the others optional
2022-01-16 12:47:35 +05:30
Juan
0a3a6f10e7
made the group-dirs flag require a value
2021-11-30 11:02:13 +08:00
Gasu16
fba600daee
done requested changes
2021-11-26 11:21:05 +08:00
Gasu16
3a28c71cfe
retrigger tests for issue #582
2021-11-26 11:21:05 +08:00
Gasu16
c49a67085a
Resolving issue #582
2021-11-26 11:21:05 +08:00
Gasu16
0d8743cd87
Resolving conflict in issue #582
2021-11-26 11:21:05 +08:00
Richard Tuin
4981da4281
Allow human-readable to be set multiple times
...
This improves compatibility with `ls`.
For example: in my `~/.zshrc` I have the following:
```bash
alias ls='lsd -lFah'
```
When I'm off-guard and type `ls -lah` I now get the following:
```
error: The argument '--human-readable' was provided more than once, but cannot be used multiple times
USAGE:
lsd --all --color <color>... --date <date>... --group-dirs <group-dirs>... --human-readable --icon <icon>... --icon-theme <icon-theme>... --ignore-glob <pattern>... --classify --long --size <size>...
For more information try --help
```
This should solve that.
2021-11-18 11:50:15 +08:00
Arkadiusz Bielewicz
b3a1dee4c6
#532 Improve date format validation to include all supported cases | fmt applied
2021-10-14 05:43:31 +00:00
Arkadiusz Bielewicz
8037d5f4ce
#532 Improve date format validation to include all supported cases | Added missing valid cases
2021-10-14 05:43:31 +00:00
Arkadiusz Bielewicz
1363945fd8
#532 Improve date format validation to include all supported cases | Formatting, test added
2021-10-14 05:43:31 +00:00
Arkadiusz Bielewicz
83a25867d0
#532 Improve date format validation to include all supported cases | Validation extended to support mentioned case.
2021-10-14 05:43:31 +00:00
Tom Parker-Shemilt
1e37051bc9
Exclude windows and non-x86_64 for bad_time as it overflows on those
2021-10-09 20:11:17 +08:00
Tom Parker-Shemilt
0e49185233
Try reducing bad year count a bit, as it breaks on some platforms
2021-10-09 20:11:17 +08:00
Tom Parker-Shemilt
820b41a7ef
Redo "Bad" enum as Invalid without internal data
2021-10-09 20:11:17 +08:00
Tom Parker-Shemilt
42dfa7d391
Remove lots of returns from new code
2021-10-09 20:11:17 +08:00
Tom Parker-Shemilt
a0216e033c
Add test for bad date
2021-10-09 20:11:17 +08:00
Tom Parker-Shemilt
ee401611ee
Cope with chrono panics due to weird dates
2021-10-09 20:11:17 +08:00
Starz0r
29d9c3b10e
Use a full string literal for MSRV 1.43.1 compatibility
2021-10-07 16:33:48 +08:00
Starz0r
3409dce094
Allocate owner and group strings on match, simplified string formatting
2021-10-07 16:33:48 +08:00
Starz0r
7ddf094746
Accidentally shadowed a variable out of scope instead of mutating it
2021-10-07 16:33:48 +08:00
Starz0r
8cea3695cb
Display "-" instead of "-\-" by handling the error immediately
2021-10-07 16:33:48 +08:00
Starz0r
b45c7550b6
Blank out the SID instead of reporting as a long string (unidentified)
2021-10-07 16:33:48 +08:00
Starz0r
a0d266ab03
Better wording on the SID Lookup comment
2021-10-07 16:33:48 +08:00
Starz0r
b86722bea6
Report unidentified if we cannot determine the security identifier
2021-10-07 16:33:48 +08:00
Abin Simon
4b9de0bbd0
Add a simple test for symlink rendering with color
2021-10-02 02:27:59 -04:00
Dan Sully
1ae8e4a926
Add support for 'mi' missing symlink target LS_COLORS value.
2021-10-02 02:27:59 -04:00
zwPapEr
a37740e371
theme: 🔨 try yml if yaml theme file not found
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
edfc57178e
theme: 🔨 use dark color for default theme
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
9f656fdd9d
🔨 use lscolors for filename only, skip from theme configure
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
861822cb04
theme: 🔨 not deserialize no color and no lscolors from config
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
d58a7a3656
📝 add filename coloring explanation between LS_COLOR and theme
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
fc7d2337ab
config: 🔨 user do not have to config yaml extension for theme
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
61121e599d
theme: 🔨 use themes
dir for themes configurations
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
81c1a79c85
build: ⬆️ update dependency to deserialize color
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
83986e72fb
🔥 get rid of ansi term in all code
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
b3bdcfd337
🔍 🔨 update tests to fit crossterm color
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
5e40a1c2cb
✨ done use crossterm to impl theme, functionally works
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
e29966978e
theme: 🎨 📝 update readme, change log, error log
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
zwPapEr
e88ca0feb1
theme: 🔨 using default to return dark theme and more tests
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2021-09-26 00:11:42 -04:00
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