Michał Górny
818257ee59
Fix tests with NO_COLOR=1 set ( #1161 )
...
Co-authored-by: Wei Zhang <kweizh@gmail.com >
2025-10-25 01:03:04 +08:00
Wei Zhang
7574586149
🎨 🔨 fix fmt and clippy issues ( #1156 )
2025-08-25 02:08:14 +08:00
Taehwan Kim
8921545237
add more comments
2024-08-20 23:55:40 +08:00
ehwan
b0d55bb846
fix unicode-width version to 0.1.13
2024-08-20 23:55:40 +08:00
Wei Zhang
a7fce648ac
🐛 fix ls with link cases
...
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2024-08-19 23:49:27 +08:00
Wei Zhang
9c66549207
🐛 should print symlink content at depth 1
...
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2024-08-19 23:49:27 +08:00
Wei Zhang
240d513338
🔨 🎉 use cache for user and group in unix, gain 60% improve
...
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2024-04-29 16:03:59 +08:00
Wei Zhang
94249be768
⬇️ rollback the term grid to 0.1
...
we should consider find another alternative
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2024-03-26 00:28:42 +08:00
Dom Slee
92d4e96622
Implementation
2024-02-16 11:47:12 +08:00
Fabio Valentini
0d2e36ac99
update various dependencies
...
- update dirs from v4 to v5 (no code changes)
- update term_grid from v0.1 to v0.2 (small code changes)
- update terminal_size from v0.1 to v0.3 (no code changes)
- update lscolors from v0.15 to v0.16 (no code changes)
- update serde_yaml from v0.8 to v0.9 (no code changes)
The term_grid update required small changes to the use of
`term_grid::Cell` because with v0.2, it is possible to specify the
alignment within the cell. Adding `Alignment::Left` should preserve
the current behaviour.
This commit also includes the changes generated by "cargo update",
which seems not to have been run in a long time, causing very old
versions to be pulled in.
2024-02-16 11:30:41 +08:00
Wei Zhang
177c910d06
🔍 🔨 fix test for adding disable permission
...
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2023-09-20 23:45:34 +08:00
Panagiotis Ganelis
bfbb217257
Add support for --literal flag and literal entry in config ( #900 )
...
Add support for `--literal` in order to opt out showing filenames with
quotes
Closes : #894
2023-09-19 09:57:10 +08:00
Bertrand Bonnefoy-Claudet
93b3fb0b66
Add configuration and CLI options: truncate owner
...
This adds the following CLI flags:
- `--truncate-owner-after`
- `--truncate-owner-marker`
And the following configuration fields:
```yaml
truncate-owner:
after:
marker: ""
```
The default behavior of LSD is unchanged.
The problem this change attempts to solve is the usability of the `-l`
flag on systems where some user or group names are long but cannot be
changed (e.g. the user is not admin and the account is managed in a
central directory). In such cases, even with a decently sized terminal
(90+ characters wide), lines often overflow, making the directory
listing hard to read.
Without this change, the only mitigation would consist in turning off
the display of file ownership (via the `blocks` configuration field)
which is unsatisfactory because ownership information is very useful.
2023-09-17 16:27:38 +08:00
Pascal H
2fe3fcdd35
Git integration ( #822 )
2023-05-01 00:26:15 +08:00
Marcin Puc
c267a040c6
Switch arg parsing to clap v4 with derive
2023-03-17 00:12:32 +08:00
Mikihiro SUDA
da61909835
Avoid using clap deprecated features ( #787 )
...
The PR will fix #786 .
In order to minimize future security risks and maintain ease of use, it
is recommended to avoid using deprecated features of clap.
I have refactored the code so that no warning appears when the following
command is executed:
```sh
cargo check --features clap/deprecated
```
2023-01-12 13:35:51 +08:00
r3dArch
f22ad5b2ef
Fix Bug: Handle -L with broken symlink #457 ( #754 )
2022-11-27 09:56:21 +05:30
zwPapEr
7e9a07a97d
🔍 🔨 fix tests to fit icon theme
...
Signed-off-by: zwPapEr <zw.paper@gmail.com >
Signed-off-by: Wei Zhang <kweizh@gmail.com >
2022-10-10 11:16:56 +05:30
Narawit Rakket
8d6de0bec3
fix: do not quote filename when piping to another program
2022-10-06 09:06:41 +05:30
merelymyself
411c9880d2
add/fix tests
2022-09-22 09:40:38 +05:30
merelymyself
96d6f801fd
fmt
2022-09-22 09:40:38 +05:30
merelymyself
d2e97e01bc
add quotes and escapes for necessary filenames
2022-09-22 09:40:38 +05:30
Doug Elkin
e7fb6f34ed
return POSIX-compatible exit status
2022-09-12 09:19:42 +05:30
Narawit Rakket
2600644d6a
refactor(test): remove unnecessary reference
2022-07-10 16:05:39 +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
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
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
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
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
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
8dd54fee5e
Add --permission octal to show permissions in octal
2022-03-21 09:34:35 +05:30
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
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
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
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
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