Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Doesn't really follow the Unix principles #3

Open
adamkdean opened this issue Jan 18, 2017 · 5 comments
Open

Doesn't really follow the Unix principles #3

adamkdean opened this issue Jan 18, 2017 · 5 comments

Comments

@adamkdean
Copy link

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!

@benlinton
Copy link
Owner

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

@adamkdean
Copy link
Author

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

@Mayeu
Copy link

Mayeu commented Sep 30, 2018

Hello 👋,

I'm allowing myself to drop in the conversation 🙏

@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 🙊

@adamkdean
Copy link
Author

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

@rulatir
Copy link

rulatir commented Apr 25, 2024

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants