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

Search parent dirs to home, or root #1

Merged
merged 1 commit into from
Dec 15, 2013

Conversation

cfurrow
Copy link
Contributor

@cfurrow cfurrow commented Dec 15, 2013

WIP

tod now searches current directory for a '.todfile' and continues checking in parent folders until it either finds a '.todfile' or it ends up in HOME (~) or root (/).

This way you can share a .todfile for all projects, if you wanted, in your home dir.

TODO

  • add ability to create a local .todfile in current dir (for sub projects/dirs)
  • add output of where .todfile was created if one did not exist

skycocker added a commit that referenced this pull request Dec 15, 2013
Search for .todfile in parent dirs up to home or root
@skycocker skycocker merged commit ccb5306 into skycocker:master Dec 15, 2013
@cfurrow
Copy link
Contributor Author

cfurrow commented Dec 15, 2013

Well, you're quick :) I have another PR soon that will add the tod local (or something) to force-creation of a .todfile in your current dir. That way it won't search up the dir tree.

@skycocker
Copy link
Owner

Feel free to send a pull request with your name in gem's authors section if you want. Thanks!
And yes, we need the ability of picking the target todfile directory.

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

Successfully merging this pull request may close these issues.

None yet

2 participants