pkamenarsky / atea

A minimalistic menu bar time tracker for MacOS
612 stars 24 forks source link

make tasks.sh search for local .tasks #5

Open franciscolourenco opened 12 years ago

franciscolourenco commented 12 years ago

storing all your tasks files in one folder in dropbox is one approach.

given one wants to sync the tasks of a project, one will also probably want to sync the project folder itself, another approach would be to store each task file in the respective project's folder, and then use whatever (dropbox, git, hg, svn) to sync the folder.

tasks.sh should first check for the existence of any .tasks files in the current folder, and only then default to the dropbox folder. in addition, it should accept a path for a specific .tasks file

pkamenarsky commented 12 years ago

https://github.com/pkamenarsky/atea/commit/82e7bb39d81b5b3cfcbd1eb67a6a07d5076ae331

tasks.sh now looks for the first .tasks file in the local dir and switches to the Dropbox location only if there's none.

The specific .tasks file argument is gonna need more work since the script will now need to parse the -o and -f flags in arbitrary order etc - and since I'm a bash script noob I'm gonna leave this for a pull request :)