Commit Graph

18786 Commits

Author SHA1 Message Date
Sylvestre Ledru e2cc2ec536 uudoc: make tldr attribution and disclaimer translatable 2026-03-22 17:27:49 +01:00
Guillem L. Jara 05b8585820 fix(ls): apply reviewed changes
Renames and documents PathDataDisplayName::Moo to _::Custom; also makes code more idiomatic and restores an accidentally-removed warning.
Co-authored-by: Daniel Hofstetter <daniel.hofstetter@42dh.com>
Co-authored-by: xtqqczze <45661989+xtqqczze@users.noreply.github.com>
2026-03-22 17:00:01 +01:00
Guillem L. Jara 81f1d5b84e fix(ls): remove unnecessary allocations in display_item_name 2026-03-22 17:00:01 +01:00
Guillem L. Jara 7c532c91f8 fix(ls): remove double collect and extra allocations in display_grid 2026-03-22 17:00:01 +01:00
Guillem L. Jara 4a3b56f662 fix(ls): remove unnecessary allocations in display_additional_leading_info 2026-03-22 17:00:01 +01:00
Guillem L. Jara 0da8309c53 fix(ls): do not unnecessary format & allocate on return_total 2026-03-22 17:00:01 +01:00
Guillem L. Jara 65013bef7b fix(ls): do not dynamically dispatch display_item_name closures 2026-03-22 17:00:01 +01:00
Guillem L. Jara 9fe6453016 fix(ls): use Vec::push where appropiate in display_item_long
Should improve codegen, especially in debug mode.
2026-03-22 17:00:01 +01:00
Guillem L. Jara 2df6ab6021 fix(ls): reuse intermediate buffer on --long 2026-03-22 17:00:01 +01:00
Guillem L. Jara ea3ea8c636 fix(ls): preallocate for a couple of vectors/strings 2026-03-22 17:00:01 +01:00
Guillem L. Jara 56fb227b6b fix(ls): various inode optimizations
Remove format machinery, an unnecessary allocation and a duplicated function.
2026-03-22 17:00:01 +01:00
Guillem L. Jara 87ddc1352a fix(ls): do not alloc char to push to OsString in display_item_name 2026-03-22 17:00:01 +01:00
Guillem L. Jara a9b9e07084 fix(ls): remove various useless LineEnding::to_string() 2026-03-22 17:00:01 +01:00
Guillem L. Jara e947b2d84a fix(ls): use Cow on parse_time_style to reduce allocations 2026-03-22 17:00:01 +01:00
Guillem L. Jara 1a8b17e006 fix(ls): fix double-allocation of block options 2026-03-22 17:00:01 +01:00
Guillem L. Jara a42d78ff6d fix(ls): fix double-lookup of (COLOR)TERM env vars
Also switches to var_os for alloc-free code.
2026-03-22 17:00:01 +01:00
Guillem L. Jara 2df89cef62 fix(ls): do not allocate for symlink len check 2026-03-22 17:00:01 +01:00
Guillem L. Jara 41d8c9b693 fix(ls): optimize create_hyperlink and make it loseless. 2026-03-22 17:00:01 +01:00
Guillem L. Jara a066b180de fix(ls): reduce duplicated time syscalls 2026-03-22 17:00:01 +01:00
Guillem L. Jara 50eb62b036 fix(ls): remove various redundant clones 2026-03-22 17:00:01 +01:00
Guillem L. Jara 7bfa92f7f1 fix(ls): reduce allocations on sorting
Switch to unstable sorting as it is in-place, and remove an unnecessary string conversion.
2026-03-22 17:00:01 +01:00
Guillem L. Jara eeb1cb673c fix(ls): reduce allocations on PathData struct 2026-03-22 17:00:01 +01:00
renovate[bot] 62594c0db1 chore(deps): update rust crate zip to v8.3.1 2026-03-22 10:27:30 +01:00
oech3 c79e686c5c l10n.yml: drop cargo build covered by cargo {test,run} 2026-03-21 15:49:32 +01:00
Daniel Hofstetter c961ff859b ls: add header to new files 2026-03-21 14:49:48 +01:00