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

add support to ignore certain files in the .sheets directory #9

Open
mov37 opened this issue Apr 21, 2012 · 6 comments
Open

add support to ignore certain files in the .sheets directory #9

mov37 opened this issue Apr 21, 2012 · 6 comments

Comments

@mov37
Copy link

mov37 commented Apr 21, 2012

So that files like "README.md" inside the .sheets directory won't be listed as a sheet.

@oscardelben
Copy link
Owner

I could ignore all files that have a custom extension. What do you think?

@mov37
Copy link
Author

mov37 commented Apr 24, 2012

I think ignore readme files with all common format would be sufficient, since there's little sense to put any other kind of files inside the .sheet directory.

@oscardelben
Copy link
Owner

It seems a bit tricky to exclude files with ls, do you know how you would go about it? If there's not an easy way I may try with find or echo instead.

@mov37
Copy link
Author

mov37 commented Apr 28, 2012

I found a solution here.

But this only works with bash as far as I know, I have no idea how this can be done with other shells.

@n0nick
Copy link

n0nick commented Nov 22, 2012

Hey,

Why not use Ruby's Dir?

Dir.glob("*[^.md]")

http://ruby-doc.org/core-1.9.3/Dir.html

@oscardelben
Copy link
Owner

That sounds reasonable. I may ignore all files that start with readme.

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

3 participants