Abin Simon
5431651631
Bump crossterm to 0.24.0
2022-07-05 13:07:00 +05:30
Narawit Rakket
b35b09817e
refactor(test): initialize variable with functional update syntax
...
Fix clippy lint
https://rust-lang.github.io/rust-clippy/master/index.html#field_reassign_with_default
2022-07-04 22:54:01 +05:30
Narawit Rakket
2c540f17a0
refactor(test): replace match
in assert!
with matches!
...
Fix clippy lint
https://rust-lang.github.io/rust-clippy/master/index.html#match_like_matches_macro
2022-07-04 22:54:01 +05:30
Narawit Rakket
e6d30ab081
refactor(test): replace assert_eq
comparing bool
with assert
...
Fix clippy lint
https://rust-lang.github.io/rust-clippy/master/index.html#bool_assert_comparison
2022-07-04 22:54:01 +05:30
Narawit Rakket
c17938224b
refactor(test): run cargo clippy --fix
...
Fix the following `clippy` lints
* https://rust-lang.github.io/rust-clippy/master/index.html#useless_conversion
* https://rust-lang.github.io/rust-clippy/master/index.html#needless_borrow
* https://rust-lang.github.io/rust-clippy/master/index.html#single_char_pattern
* https://rust-lang.github.io/rust-clippy/master/index.html#iter_nth_zero
* https://rust-lang.github.io/rust-clippy/master/index.html#unnecessary_to_owned
2022-07-04 22:54:01 +05:30
Narawit Rakket
fd12e4a144
refactor: replace deprecating usize::max_value()
with usize::MAX
2022-07-03 09:38:09 +05:30
Narawit Rakket
5bd705b4d2
refactor(test): remove unnecessary as_str()
in tests
...
The reason is that `String` can be compared to `&str`
2022-07-03 09:36:01 +05:30
Narawit Rakket
91ffaeadb2
refactor(size): various refactoring
...
* remove unused enum `Unit::None`
* simplify logic with `match` statement
* use constant variable instead of magic number
2022-07-03 09:35:22 +05:30
Narawit Rakket
88974948bc
refactor: remove unnecessary lifetime annotation
2022-07-01 16:01:26 +05:30
Narawit Rakket
641e2ab256
refactor(display): various minor refactoring
...
* use `if let` syntax
* replace basic `matches!` macro with `==`
* use `format!` macro to create a `String`
2022-07-01 13:22:09 +05:30
Narawit Rakket
997dd9fa1a
refactor(color): improve readability and flexibility
...
* Change parameter type of `colorize` function from `String` to generic type `Into<String>`
2022-06-30 19:40:05 +05:30
Narawit Rakket
a09896b3cd
refactor(meta): improve readability and maintainability
...
* use `io::Result` to shorten the return type
* remove unnecessary reference (`&`)
* replace multiple `if` with `&&` operator
2022-06-29 19:25:56 +05:30
Narawit Rakket
2ffb59cc9e
chore(permission): correct panic message
...
Co-authored-by: Abin Simon <abinsimon10@gmail.com>
2022-06-15 14:59:46 +05:30
Narawit Rakket
ffa5daa3c5
refactor(permission): replace unwrap with expect
2022-06-15 14:59:46 +05:30
Narawit Rakket
eea9dcaa26
perf: improve permission rendering
2022-06-15 14:59:46 +05:30
Narawit Rakket
660cae2143
refactor: remove unnecessary use of vec! macro
2022-06-15 09:15:06 +05:30
Narawit Rakket
0562dee61b
refactor(blocks): get_header return &str instead of String
2022-06-13 21:36:25 +05:30
Narawit Rakket
ffa5b2bfaf
refactor(display): remove unnecessary String clone
2022-06-13 08:32:04 +05:30
Narawit Rakket
a9bbab821e
refactor(icon): simplify matching logic
2022-06-13 08:30:56 +05:30
Narawit Rakket
db3a60968e
refactor(icon): construct icon hashmap from an array
2022-06-13 08:30:56 +05:30
Abin Simon
02dbee9bb1
Fix CI issues and revert default icon
...
Don't give executable files executable icon in Windows as windows
marks everything as executable.
2022-06-12 11:52:38 +05:30
Tanner Babcock
f31375e931
Added more icons
2022-06-12 11:52:38 +05:30
Tanner Babcock
7cfeff6e10
See if this fixes Windows tests
2022-06-12 11:52:38 +05:30
Tanner Babcock
b7de869572
Reverted some changes
2022-06-12 11:52:38 +05:30
Tanner Babcock
811b86581e
Fix the CI tests
2022-06-12 11:52:38 +05:30
Tanner Babcock
e63d7b89d1
One more icon
2022-06-12 11:52:38 +05:30
Tanner Babcock
b76cfc1d02
Subjective icon changes, and more additions - will revert if wanted
2022-06-12 11:52:38 +05:30
Tanner Babcock
1ad3068e57
Added new filenames and extensions
2022-06-12 11:52:38 +05:30
Tanner Babcock
bdb09f52c5
Use shell icon for when file is exec and has no extension
2022-06-12 11:52:38 +05:30
MichaelAug
f3d294357a
Add unit tests
2022-05-26 11:44:29 +08:00
MichaelAug
7e57df12ed
Underline header instead of adding "-" characters on new line
...
adjust header names, always print header if there is any items to
display
2022-05-26 11:44:29 +08:00
MichaelAug
4260b0de64
Center block headers, add underline
2022-05-26 11:44:29 +08:00
MichaelAug
41deb1e65c
Print block header if header flag and OneLine layout is set
2022-05-26 11:44:29 +08:00
MichaelAug
d5520d2791
Add --header flag
2022-05-26 11:44:29 +08:00
Kodi Craft
282224e353
Removed redundant error message when using hyperlinks if file is a broken symlink
2022-05-26 11:34:27 +08:00
Juan
dd2ef0aad6
do not calculate total directory size unless it will be displayed
2022-05-09 11:19:37 +08:00
Narawit Rakket
392d56e515
feat(Icons): show icon for files with Dockerfile extension
2022-05-02 11:56:47 +05:30
Nix
d723838243
Add icons for HEIC, PEM and TOML
2022-05-02 10:56:24 +05:30
Abin Simon
208448e139
Fix hyperlink display
2022-04-14 00:38:32 +08:00
khai96_
52c04df660
Add --hyperlink flag
2022-04-14 00:38:32 +08:00
Martin Matous
d1051d21e9
fix context positioning
...
Signed-off-by: Martin Matous <m@matous.dev>
2022-03-31 09:41:57 +05:30
Martin Matous
90199a206e
rename context
...
Signed-off-by: Martin Matous <m@matous.dev>
2022-03-31 09:41:57 +05:30
Martin Matous
f5debb878e
fix feedback
...
Signed-off-by: Martin Matous <m@matous.dev>
2022-03-31 09:41:57 +05:30
Martin Matous
35207e246a
display security label/context
...
fixes #367
Signed-off-by: Martin Matous <m@matous.dev>
2022-03-31 09:41:57 +05:30
Martin Matous
3b6b343944
add access control indicators
...
fixes #347
fixes #515
Signed-off-by: Martin Matous <m@matous.dev>
2022-03-31 09:41:57 +05:30
Abin Simon
79398d796d
Fix a CI warning for window runs
2022-03-21 09:34:35 +05:30
Abin Simon
8dd54fee5e
Add --permission octal
to show permissions in octal
2022-03-21 09:34:35 +05:30
Abin Simon
019e8e424f
Don't automatically dereference symlinks in tree/recursive
2022-03-15 19:56:06 +08:00
Limin
7fb9aaf692
Add icon for AppleScript
2022-03-14 11:16:54 +05:30
Limin
6bb5db7f6c
Add icon for Adobe Illustrator files
2022-03-14 11:16:54 +05:30
Kara
08558cce1a
Changes in response to PR request
2022-02-25 11:11:01 +08:00
Kara
dceebc1536
Icons: added magnet and torrent
2022-02-25 11:11:01 +08:00
Michael
93af717e70
Remove incorrect comments in no_sort test
2022-02-21 21:43:15 +05:30
Michael
55ee0f0d7c
Rename unsorted flag to no-sort
2022-02-21 21:43:15 +05:30
Michael
60c7c4ac19
Add unit tests for unsorted flag
2022-02-21 21:43:15 +05:30
Michael
97815faee2
Add "do not sort" option
2022-02-21 21:43:15 +05:30
Abin Simon
082c822684
Fix clippy lints from rust upgrade
2022-02-18 10:28:12 +05:30
Abin Simon
5972f6c99a
Bump lscolors to 0.9.0
2022-02-18 10:28:12 +05:30
Ari Archer
6c4cf26b2a
Change icon from 0xE5FC to 0xE615
...
Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
2022-02-17 11:29:35 +08:00
Ari Archer
f00455d8c9
GPG: Sign commit
...
Signed-off-by: Ari Archer <truncateddinosour@gmail.com>
2022-02-17 11:29:35 +08:00
networkException
e9ff6ca3e6
Add --group-directories-first as an alias for --group-dirs=first
...
`ls` from coreutils has the `--group-directories-first` flag as the only
directory grouping option. This patch improves compatibility so that
users switching to `lsd` can continue using `--group-directories-first`.
2022-01-26 19:54:29 +05:30
Abin Simon
4a438a0efb
Add a note about default theme value in test
2022-01-16 12:47:35 +05:30
zwPapEr
d86b1e1e01
clippy: 🎨 🔥 drop not used lint
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2022-01-16 12:47:35 +05:30
zwPapEr
ade8662d6e
theme: 🔍 🔨 update tests to fit optional theme items
...
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2022-01-16 12:47:35 +05:30
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