Commit graph

625 commits

Author SHA1 Message Date
scarf
7b9290c92c
Localization support (#820)
find locale set with [sys-locale](https://crates.io/crates/sys-locale),
then format with locales.
2023-03-13 10:44:54 +08:00
Abin Simon
d1cf72c968 Drop size_value from blocks docs 2023-01-18 10:28:01 +05:30
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
Icxolu
c48f0f48f5 add tests to verify executable state on Windows 2022-11-26 09:41:24 +05:30
Icxolu
aed96649be remove unused is_executable on Windows 2022-11-26 09:41:24 +05:30
Icxolu
4d07de05ef mark executables on windows based on file extensions
`exe`, `msi`, `bat` and `ps1` are marked as executable.
2022-11-26 09:41:24 +05:30
Abin Simon
c5a2fa3b23 Update and sort icons 2022-11-23 10:35:22 +05:30
Ari Archer
cc195ffc2a Implement most icons from https://github.com/Peltoche/lsd/issues/764
- PKGBUILD -- Arch Linux package manifests

Didn't implement these because I couldn't find a good icon
or is just downright impossible to implement

- config.\* -- Configuration files
- Makefile\* -- Make config
- .\*_history -- History files for readline-like
    - .gdb_history -- GDB debugger history
    - .lesshst -- `less` history
- Kconfig.\* -- Specific kernel config file
- Kbuild.\* -- Specific kernel build file
- Makefile\* -- Make config
- TODO\* -- TODOs
    - FAQ\* -- FAQ
    - LEGACY\* -- Legacy statement
- var/ -- Variable files
- mnt/ -- Mounts
- proc/ -- Processes
- usr/ -- Universal system repository
- dev/ -- Device files
- boot/ -- Bootloader files
- opt/ -- Optional applications
- sys/ -- System files
- src/ -- source code
- tests/ -- Tests for code
    - test/ -- Test dir
- Media/ -- Media dir
- rc.conf -- OpenRC config
    - init.d/ -- OpenRC services
- content/ -- Content dir
- page/ -- Pages
- resources/ -- Resources for programs
    - static/ -- Static resources
- completions/ -- Shell completions
- target/ -- Target files
- dist/ -- Destination files
    - dest/ -- Destination files
- .local/ -- Local files
    - local/ -- Local files

Signed-off-by: Ari Archer <ari.web.xyz@gmail.com>
2022-11-23 10:35:22 +05:30
demilade
c2cf835916 Theme colors for inode and links are now being applied to the output 2022-11-14 10:09:48 +05:30
Icxolu
457d4951b8 hide system protected files even with --all / --almost-all
since interaction with these files is rare. Introduce --system-protected
flag to include these files.
2022-11-13 22:10:58 +05:30
Icxolu
62addc53e6 check windows hidden file attribute 2022-11-13 22:10:58 +05:30
Icxolu
c1c8958fd0 move winapi to windows 2022-11-13 22:10:58 +05:30
LeeWeeder
4b870d9bcc Added icons for kt and kts 2022-11-07 09:24:12 +05:30
Zhizhen He
385501ebb0 chore: fix typo
Signed-off-by: Zhizhen He <hezhizhen.yi@gmail.com>
2022-10-13 19:44:51 +05:30
Wei Zhang
6bb2dc2b61 🎨 cargo fmt
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2022-10-10 11:16:56 +05:30
Wei Zhang
81e07e8105 🐛 fix mistaken edited color theme location
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2022-10-10 11:16:56 +05:30
Wei Zhang
acae1201a8 🔨 simplify icon theme and updates due to review
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2022-10-10 11:16:56 +05:30
Wei Zhang
2c312f56d7 🔍 icon theme: add tests for icon theme
Signed-off-by: Wei Zhang <kweizh@gmail.com>
2022-10-10 11:16:56 +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
zwPapEr
9de3090c12 🔥 icon: drop custom icon file option
Signed-off-by: zwPapEr <zw.paper@gmail.com>
2022-10-10 11:16:56 +05:30
Wei Zhang
a60ab3d3e4 🔨 icon: refactor to use icon by file type 2022-10-10 11:16:56 +05:30
Wei Zhang
6df27aebad 🔨 args: allow custom theme for cmd args 2022-10-10 11:16:56 +05:30
Wei Zhang
e2723ef650 icon: icon theme functionally works 2022-10-10 11:16:56 +05:30
Wei Zhang
b209c6f7f1 🔨 theme: move default icon to icon theme 2022-10-10 11:16:56 +05:30
Wei Zhang
439b641fbf ♻️ refactor theme read file to de trait 2022-10-10 11:16:56 +05:30
zwPapEr
85b9fc2a1e ♻️ theme: refactor color to be under theme
so that we can add icon theme

Signed-off-by: zwPapEr <zw.paper@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
586e1c9e76 clippy 2 2022-09-22 09:40:38 +05:30
merelymyself
54a07e63ee clippy 2022-09-22 09:40:38 +05:30
merelymyself
bc8745528d fmt 2022-09-22 09:40:38 +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
Marcin Puc
ebe7417a88 Fix symlink_arrow test intercepting cli args 2022-09-21 10:25:41 +05:30
Doug Elkin
e7fb6f34ed return POSIX-compatible exit status 2022-09-12 09:19:42 +05:30
Doug Elkin
0d8c2c4d9c use ValueHint::AnyPath on FILE argument
This fixes an issue with path completion in ZSH.
2022-09-10 12:01:11 +05:30
Narawit Rakket
6638e63372 refactor: remove unnecessary check for 'ignore-config' 2022-08-25 09:27:17 +05:30
Narawit Rakket
7869839bd8 refactor(ignore-glob): various refactoring
- Use `?` to early return
- Improve readability by reducing indentation
- Remove unnecessary mutable variable
- Change function signature to mimic other flags
2022-08-23 23:05:02 +05:30
Narawit Rakket
e2d046d60b refactor: use map_err instead of match 2022-08-23 23:05:02 +05:30
James
1db99de984 Apply cargo fmt 2022-08-23 22:16:54 +05:30
James
c22498e9e8 Clap macros no longer required 2022-08-23 22:16:54 +05:30
James
768ec41f0c Fix clippy lint 2022-08-23 22:16:54 +05:30
James
0f42e725f9 Update clap to v3 2022-08-23 22:16:54 +05:30
Han Yeong-woo
7d523103ec feat(icon): add icon for Zstandard 2022-08-23 09:15:48 +05:30
Narawit Rakket
d538d74017 refactor(test): remove unnecessary vec! macro 2022-08-14 16:20:11 +08:00
Narawit Rakket
0a7e6e7f47 refactor: minimize visibility of functions 2022-08-12 22:54:27 +05:30
Narawit Rakket
08626b84fc refactor(icon): minor refactoring
* use `matches!` to improve readability
* remove unnecessary `format!` in tests
2022-08-12 22:54:17 +05:30
Narawit Rakket
b529b6a901 refactor(date): minor refactoring
* use `map_or` to make code more concise
* use `match` to make code more readable
* replace `format!` with `to_string()`
* construct `String` from `char` instead of `&str`
2022-08-12 22:54:06 +05:30
Narawit Rakket
8d08fb63d1 refactor: use default attribute for enum
Use the new feature from Rust 1.62 to make code more concise
https://blog.rust-lang.org/2022/06/30/Rust-1.62.0.html#default-enum-variants
2022-08-12 18:06:57 +05:30