Commit Graph

692 Commits

Author SHA1 Message Date
Wei Zhang
b9c32a70cc update style 2025-07-16 02:13:39 +08:00
Wei Zhang
9ea252ec63 fix tests 2025-07-16 02:13:03 +08:00
Wei Zhang
c0d2dc6671 feat(flag): add en size separator flag 2025-07-16 02:13:03 +08:00
Fotis Gimian
86290a15db Add support for displaying file sizes in bytes with a separator 2025-07-16 02:13:03 +08:00
Ondřej Staněk
ced1ea14e7 🎨 add icon for containerfile 2025-07-16 01:43:08 +08:00
Spenser Black
2c9ed1a784 Add icon for pug 2025-05-17 00:47:45 +08:00
Spenser Black
db5d5b5032 Add support for .cmd file icons 2025-02-23 11:08:00 +08:00
Adam Perkowski
1d872b7ba9 feat: add Jule icon () 2025-02-23 11:06:04 +08:00
Mersid
c1e7a59686 Add space for executable construction icon 2024-11-18 00:48:13 +08:00
Guilhem Saurel
a0bbb20ae4 allow directroy-only + depth, fix #747 2024-10-20 11:27:24 +08:00
Wei Zhang
82124fd0b9 🐛 fix total size loop when using with -a 2024-09-28 12:13:51 +08:00
segfault-enjoyer
ace462f157 Add .zon (zig object notation) files to icon.rs
https://github.com/ziglang/zig/issues/14290

This is the official file ending of zon files, at the time of writing this only used to specify dependencies, versions and files of zig packages
2024-09-28 12:10:36 +08:00
Isaiah W
3d9f04acbe add subtitle/closed caption icons (#1050)
add subtitle/closed caption icons

uses `U+F015E`, `󰅞` for `.890`, `.cip`, `.sbv`, `.scc`, `smi`, and good
old `.vtt` <!-- over the hedge reference, best animated movie (: -->

Signed-off-by: Wei Zhang <kweizh@gmail.com>
Co-authored-by: Wei Zhang <kweizh@gmail.com>
2024-08-21 00:23:41 +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
c433da0dfd should not overwrite tree layout when tty not available
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2024-08-19 23:49:27 +08:00
wangmengc
b64905709a #1052 fix lsd pipe output 2024-08-19 23:49:27 +08:00
Sebastian Mohr
bc20b8f80b Fix hint stating wrong permissions option #1065 2024-06-22 11:55:31 +08:00
Long0x0
5d02a59e29 Fix clap doc-comment
clap always removes the last single period from a doc-comment.
2024-06-08 15:55:01 +08:00
Isaiah
418dd06836 add blender icons 2024-04-29 16:06:08 +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
Wei Zhang
4310bf814c 🚧 temporarily allow deprecated duration
will fix in next release

Signed-off-by: Wei Zhang <kweizh@gmail.com>
2024-03-22 23:59:12 +08:00
Wei Zhang
62a4c54733 add xdg dir back
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2024-03-22 23:59:12 +08:00
Ofer Sadan
94538d01e0 Support multiple file paths for config and theme 2024-03-22 23:59:12 +08:00
Ofer Sadan
a1bd4d6347 Add support for tilde (~) expansion on windows 2024-03-22 23:59:12 +08:00
Han Yeong-woo
1e8120ff28 Add icons for .apng and .avif 2024-03-12 13:53:07 +08:00
Marcin Puc
e9a778aadc add fennel support 2024-02-22 12:24:56 +08:00
Zach Coyle
f057e299d4 change neovim to proper icon 2024-02-22 12:23:50 +08:00
Wei Zhang
41893ae918 🛤️ : add loongarch ci and releases (#990)
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2024-02-16 14:17:13 +08:00
Wei Zhang
b4d4462840 🎨 🔨 simplify the windows cfg
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2024-02-16 11:47:12 +08:00
Dom Slee
bc6c930831 Update doc 2024-02-16 11:47:12 +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
zica
222f573cd3 📝 document --date=locale (#985)
This flag is added by #840
2024-02-12 17:54:33 +08:00
atamakahere-git
ba3666a6fc Nim lang support (#979)
<!--- PR Description --->
Closes #978
---
#### TODO

- [x] Use `cargo fmt`
- [ ] Add necessary tests
- [ ] Update default config/theme in README (if applicable)
- [ ] Update man page at lsd/doc/lsd.md (if applicable)
2024-01-26 14:39:11 +08:00
Azad
5d857b5bcc Fix literal flag not being recognized from config file (#935)
The `literal` option was not correctly recognized from config file due
to `Literal::from_cli` returning `Some(Literal(false))` instead of
`None`, so `Literal::from_config` would never have been executed.
2023-11-15 14:53:16 +08:00
Jonathan
6f8e095248 Update icon.rs (#946)
Adds couple file extensions.

`.cypher` - Cypher, a query language
`.malloy` - Malloy, a query language
`.kusto` - Kusto Query Language
`.rq` - SPARQL, a query language
2023-11-07 11:10:28 +08:00
Jonathan
7a75795c14 Add PRQL (#945)
PRQL is a modern language for transforming data — a simple, powerful,
pipelined SQL replacement.

https://prql-lang.org/
https://github.com/PRQL/prql
2023-11-07 11:10:10 +08:00
Tanner Babcock
89659e4144 Adding some more icons for filenames and extensions (#929)
- Found a better (larger and clearer) Rust icon, so I changed that
(`\u{e68b}`)
- Set emacs config files (`config.el`, `packages.el` etc.) to use the
actual Emacs icon instead of GNU head for Emacs files (`\u{e632}`)
- Perl language extensions (`.pl`, `.pm`, `.pod`, `.plx`) now use the
camel instead of the... circle (`\u{e67e}`)
- Added OCAML extensions (`.ml`, `.mli`, `.mll`)
- Added many Go and Gradle filenames
- Added separate key icons for public keys (extensions) and private keys
(filenames)
- Added a kitty cat for Yarn configuration files
- Switched all the Bash, Zsh, and Csh filenames to use a shebang icon,
instead of the command prompt

[For reference](https://www.nerdfonts.com/cheat-sheet)
2023-11-02 10:57:03 +08:00
Wei Zhang
64f9dab351 ⬆️ bump lscolors to v0.15.0 and msrv to 1.69.0 (#944)
<!--- PR Description --->

predicates v3 msrv is 1.69 in https://github.com/lsd-rs/lsd/pull/938
2023-11-01 13:08:05 +08:00
Ari Archer
59dc141c74 add and improve icons (#942)
- add icons for files for the ash shell
- add static resources directory icons
- add android directory icons
- add bash history icon
- add packaging icons
- add cache icons
- improve the icon for `idlerc`
- add java icon
- add magic files icon
- add development icons ( like `tests` directory )
- add pdb password database icon
2023-10-30 23:17:51 +08:00
dcechano
4bdf044b35 fix typo in link color table 2023-10-15 17:14:18 +08:00
Ari Archer
b6141aade7 add obj directory icon
Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2023-09-24 20:03:39 +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
Wei Zhang
50140d5113 add disable option for 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