Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
18 commits
Select commit Hold shift + click to select a range
891ab02
feat(fold): add --characters option to count by character positions
mattsu2020 Nov 3, 2025
95d73d0
refactor(fold): introduce FoldContext to encapsulate state and simpli…
mattsu2020 Nov 3, 2025
26906fe
feat: optimize ASCII line processing in fold
mattsu2020 Nov 3, 2025
5fc3dc2
feat: add rposition to jargon wordlist
mattsu2020 Nov 3, 2025
980c8b1
perf: optimize fold benchmarks and output handling
mattsu2020 Nov 4, 2025
639a451
refactor(fold): improve readability of last_space assignment in emit_…
mattsu2020 Nov 4, 2025
f468a41
fix(fold): correct space index condition in emit_output
mattsu2020 Nov 4, 2025
9ed32fe
refactor(fold): optimize ASCII line processing for better character h…
mattsu2020 Nov 4, 2025
265aeb5
feat(fold): add --characters option to count by character positions
mattsu2020 Nov 3, 2025
28e1a65
refactor(fold): introduce FoldContext to encapsulate state and simpli…
mattsu2020 Nov 3, 2025
65b1fd4
feat: optimize ASCII line processing in fold
mattsu2020 Nov 3, 2025
54c2308
feat: add rposition to jargon wordlist
mattsu2020 Nov 3, 2025
578f6d4
perf: optimize fold benchmarks and output handling
mattsu2020 Nov 4, 2025
3b593d7
refactor(fold): improve readability of last_space assignment in emit_…
mattsu2020 Nov 4, 2025
e06aec9
fix(fold): correct space index condition in emit_output
mattsu2020 Nov 4, 2025
7e17a51
refactor(fold): optimize ASCII line processing for better character h…
mattsu2020 Nov 4, 2025
fbefe63
refactor(fold): unify UTF-8 and non-UTF-8 handling paths
mattsu2020 Nov 12, 2025
ff1a312
Resolve fold conflict
mattsu2020 Nov 12, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .vscode/cspell.dictionaries/jargon.wordlist.txt
Original file line number Diff line number Diff line change
Expand Up @@ -120,6 +120,7 @@ pseudoprimes
quantiles
readonly
reparse
rposition
seedable
semver
semiprime
Expand Down
1 change: 1 addition & 0 deletions Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions src/uu/fold/Cargo.toml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ path = "src/fold.rs"
clap = { workspace = true }
uucore = { workspace = true }
fluent = { workspace = true }
unicode-width = { workspace = true }

[dev-dependencies]
divan = { workspace = true }
Expand Down
1 change: 1 addition & 0 deletions src/uu/fold/locales/en-US.ftl
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ fold-about = Writes each file (or standard input if no files are given)
to standard output whilst breaking long lines
fold-usage = fold [OPTION]... [FILE]...
fold-bytes-help = count using bytes rather than columns (meaning control characters such as newline are not treated specially)
fold-characters-help = count using character positions rather than display columns
fold-spaces-help = break lines at word boundaries rather than a hard cut-off
fold-width-help = set WIDTH as the maximum line width rather than 80
fold-error-illegal-width = illegal width value
Expand Down
1 change: 1 addition & 0 deletions src/uu/fold/locales/fr-FR.ftl
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
fold-about = Écrit chaque fichier (ou l'entrée standard si aucun fichier n'est donné) sur la sortie standard en coupant les lignes trop longues
fold-usage = fold [OPTION]... [FICHIER]...
fold-bytes-help = compter en octets plutôt qu'en colonnes (les caractères de contrôle comme retour chariot ne sont pas traités spécialement)
fold-characters-help = compter en caractères plutôt qu'en colonnes d'affichage
fold-spaces-help = couper les lignes aux limites de mots plutôt qu'à une largeur fixe
fold-width-help = définir WIDTH comme largeur de ligne maximale au lieu de 80
fold-error-illegal-width = valeur de largeur illégale
Expand Down
Loading
Loading