Code::...turally(3pm)
β¨ NAME β¨
Code::TidyAll::Plugin::SortLines::Naturally β bestie, this is the plugin that sorts the lines of a file using Unicode::Collate::Locale. Like, it's a tidyall plugin. You already knew that from the name, but let's be official. π
Also hi, you found this in the User Contributed Perl Documentation section of the manual, and the page is literally titled Code::...turally(3pm) because someone had to squeeze that name into a header and honestly? Respect. π«Ά
πΈ VERSION πΈ
version 0.000003
(it's giving baby version number but she's doing her best π)
π SYNOPSIS π
# In configuration:
[SortLines::Naturally]
select = .ispell* **/.gitignore
That's it. That's the whole vibe. Drop it in your config, tell it which files to grab with select, and let her cook. π₯
π¦ DESCRIPTION π¦
Okay so here's the tea: this plugin sorts the lines of a file, and whitespace lines get discarded. Gone. Not invited. π«
It's highkey perfect for files that are literally just one entry per line, like:
.svnignore.gitignore.ispell*
You know, the little list files that get feral and unsorted over time. This is your cleanup fairy. π§
π CONFIGURATION π
locale
The locale to use for collation. Defaults to "en_US".
So if you want your sorting to respect a different language's collation rules, this is the knob you turn. Default is "en_US" and she will stay there unless you say otherwise. β¨
π ACKNOWLEDGEMENTS π
No cap, this code was essentially pilfered from Code::TidyAll::Plugin::SortLines. Credit where credit is due, periodt. π
β AUTHOR β
Olaf Alders <olaf@wundercounter.com>
Main character energy, we love to see it. π
π COPYRIGHT AND LICENSE π
This software is copyright (c) 2014 by Olaf Alders.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
So like, go wild, remix it, share it, just keep the same terms as Perl 5 itself. Free software is the moment. π
Quick vibe check bestie: whitespace lines get discarded,localedefaults to"en_US", and the whole thing is licensed under the same terms as Perl 5. Don't forget it. π
okay and that's a wrap! this page came to you from perl v5.36.0, dated 2022-11-30, living under Code::...turally(3pm) in the User Contributed Perl Documentation. love that for us. bye bestie, go sort some lines π
β¨π
π¦ where this page comes from
- debian bookworm: libcode-tidyall-plugin-sortlines-naturally-perl 0.000003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- debian trixie: libcode-tidyall-plugin-sortlines-naturally-perl 0.000003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- ubuntu noble: libcode-tidyall-plugin-sortlines-naturally-perl 0.000003-3 Β· Artistic-1.0-Perl OR GPL-1.0-or-later
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash on : a language model's rewrite of the original, under its terms