slugify
slugify copied to clipboard
Doesn't really follow the Unix principles
Sorry to nitpick, this is a good little util, but it doesn't really follow the unix principles.
I should be able to pipe a format to this util like so:
$ echo "Some String" | slugify -d
some-string
It'd also be great if the output was less noisy, so either:
$ slugify -v My\ \ file.txt
my__file.txt
(or no output, as nothing is startling?):
$ slugify -v My\ \ file.txt
Also, just personal opinion, but I think it'd probably be better if the filesystem functionality was optional, rather than default behaviour.
Like I said, sorry to nitpick, just doesn't seem to run the way one would expect!
Thanks for the input! I'll try to implement your feedback next time I refactor.
Appreciate that. Still, thanks for the tool, I'm sure it was useful back in January! 😃
Hello :wave:,
I'm allowing myself to drop in the conversation :pray:
@adamkdean I have created a minimal slugify script where you just pipe stuff in and it return the slug out. It is bare minimal by design and not feature-full like this one, but maybe that will interest you.
Hope you don't mind me promoting this here :speak_no_evil:
👏 Good job, looks like it works the way I had hoped this project would.
Good. UNIX principles suck. The typical use case for this utility is "I just downloaded 8G of photos with names like DSC142857 but smaller ąćęłńóśźż ©2024(1)(2) -.jpg
and I need all these files renamed to something sane but still reflecting the original intention, FOR YESTERDAY", not "I have three years of free time to learn esoteric bash".