slugify icon indicating copy to clipboard operation
slugify copied to clipboard

Doesn't really follow the Unix principles

Open adamkdean opened this issue 8 years ago • 5 comments

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!

adamkdean avatar Jan 18 '17 18:01 adamkdean

Thanks for the input! I'll try to implement your feedback next time I refactor.

benlinton avatar Aug 23 '17 01:08 benlinton

Appreciate that. Still, thanks for the tool, I'm sure it was useful back in January! 😃

adamkdean avatar Aug 23 '17 07:08 adamkdean

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:

Mayeu avatar Sep 30 '18 03:09 Mayeu

👏 Good job, looks like it works the way I had hoped this project would.

adamkdean avatar Oct 01 '18 07:10 adamkdean

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".

rulatir avatar Apr 25 '24 13:04 rulatir