Comments (10)
Migrated metadata:
Created: 2016-09-07T04:46:42Z
Modified: 2016-10-02T04:37:42Z
from timewarrior.
Paul Beckingham on 2016-09-07T11:45:35Z says:
You suggest this:
$ timew rc:/path/here ...
It already supports:
$ TASKWARRIORDB=/path/here timew ...
Do we need two ways to do this?
from timewarrior.
David Patrick on 2016-10-02T03:20:05Z says:
Short answer: yes
I would like to be able to run multiple concurrent $TIMEWARRIORDBs, using syntax similar to taskwarrior.
Imagine, as example use-cases, tracking work-time and mood (how you're feeling at different times the day) in parallel instances,
with aliases like this;
alias work='timew rc:~/.timewarrior/work/timewarrior.cfg $*'
alias mood='timew rc:~/.timewarrior/mood/timewarrior.cfg $*'
where ../work/ and ../mood/ directories, each contain alternate timewarrior.cfg, data, extensions and log files,
I've tried six ways from Sunday to pull that off with the currently supported environment varables, but it ain't working, so unless you can suggest an viable alternative, then yes, we need another way to do this.
from timewarrior.
David Patrick on 2016-10-02T03:22:51Z says:
and I guess that also means a way to set TIMEWARRIORDB as a timewarrior.cfg variable.
from timewarrior.
David Patrick on 2016-10-02T04:18:04Z says:
And perhaps I'm comparing apples to oranges here. In taskwarrior, the rc:~/path/taskrc refers to a single configuration file, where $TIMEWARRIORDB is (I'm guessing here) a reference to a DB, or set of files. I'm ok wit dat, So My aliases could point to folders, not config files, as in;
alias work='timew rc:~/.timewarrior/work/ $*'
alias mood='timew rc:~/.timewarrior/mood/ $*'
from timewarrior.
Paul Beckingham on 2016-10-02T04:20:32Z says:
Timewarrior does not share syntax with Taskwarrior. But there is nothing stopping you from using environment variables in an alias:
$ alias timbuktu='TZ=Africa/Timbuktu date'
$ alias santiago='TZ=America/Santiago date'
$ alias tokyo='TZ='Asia/Tokyo date'
$ timbuktu
Sun Oct 2 04:20:41 GMT 2016
$ santiago
Sun Oct 2 01:20:46 CLST 2016
$ tokyo
Sun Oct 2 13:20:47 JST 2016
from timewarrior.
David Patrick on 2016-10-02T04:29:28Z says:
That's encouraging.. . getting warmer.. now with alias;
alias mood='TIMEWARRIORDB=~/.timewarrior/mood/timewarrior.cfg timew $*'
I get
Database is not readable at '/home/djp/.timewarrior/mood/timewarrior.cfg'
although the IS a mood dir and a copy of the cfg file.
from timewarrior.
David Patrick on 2016-10-02T04:32:51Z says:
GOT IT!
alias mood='TIMEWARRIORDB=~/.timewarrior/mood/ timew $*'
does the deed!
thanks!
from timewarrior.
Paul Beckingham on 2016-10-02T04:33:56Z says:
Don't point TIMEWARRIORDB
at a file, point it at the directory $HOME/.timewarrior
.
from timewarrior.
David Patrick on 2016-10-02T04:34:32Z says:
not broken, but could be included as an example in docs
from timewarrior.
Related Issues (20)
- internal parsing of tags starting with number broken HOT 1
- Bash completion of tags broken since 1.7.0 HOT 9
- Retrieval of intervals with tags containing hyphens is broken HOT 3
- Entries with accentuated characters not showing up in charts
- Assertion `is_open () || end >= start HOT 4
- changed hook to only transfer project name from task warrior to timewarrior. HOT 1
- [Question] How to specify database directory? HOT 2
- 'daily' not allowed as tag HOT 2
- Tags with special characters (e.g. `+`, `-`) do not apply tag coloring for `tags.<Tag>.color`
- Deleting tags.data and undo.data (question)
- using week numbers accounts Sunday through Saturday, not Monday through Sunday
- Add retag command to internal help HOT 2
- No active tracking after start HOT 4
- Segfaults: Can't modify entry left running overnight/can't continue using ID HOT 3
- Docs for summary and hints do not include the :annotations hint
- Support :annotations hint for timew command
- Timewarrior 1.7.1 Linux built from source no help or man pages HOT 1
- Tag order in CLI arguments is not preserved HOT 3
- Reference ids without at symbol (@)
- Modify both start and end time in same command?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from timewarrior.