Code::...turally(3pm)

πŸ“¦
version 0.000003 Β· 4 versions
, in debian bookworm, debian trixie, ubuntu noble

✨ 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. πŸ’–


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, locale defaults 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