Git Product home page Git Product logo

wj's Introduction

wj

wj is a simple tool for keeping track of progress on different tasks. All entries are stored in a plain text file that's kept in a central place. Entries are grouped by date so they can easily be read or edited.

The format of the file is simple:

  1. Dates are in YYYY-MM-DD format on a single line starting at the first character.

  2. Entries start with "- " are followed by a single sentence which ends in a full stop. They can be followed by any number of tags starting with an @.

  3. To keep track of the amount of effort put into an entry, add a second phrase separated by a semi-colon.

So a file might look like:

2018-04-20

- Got wj working. @python @opensource

2018-04-23

- Fixed the README file; 20 minutes. @opensource
- Running; 6 km. @running @exercise

The python package provides a simple command line interface that can be used to add entries and produce basic reports.

Installing and using

To install, clone the repository and use pip:

git clone [email protected]:tdm-dev/wj.git
cd wj
pip install .

wj uses an environment variable to find the journal. To set this with bash call:

export WJ_FILENAME=<path-to-journal>

To get a list of available commands call wj --help or wj -h:

usage: wj [-h] {add,tags,summary,tag,cal,recent,effort,today,yesterday} ...

positional arguments:
  {add,tags,summary,tag,cal,recent,effort,today,yesterday}
                        commands
    add                 Add a new entry for today.
    tags                Print the list of used tags.
    summary             Print a short summary of the journal.
    tag                 Print entries for a given tag.
    cal                 Print a calendar showing dates which have entries for
                        a tag.
    recent              Print entries for last fortnight.
    effort              Print the effort associated with a tag.
    today               Print entries for today.
    yesterday           Print entries for yesterday.

optional arguments:
  -h, --help            show this help message and exit

Adding entries

Use add:

wj add 'Worked on paper. @research'

Producing simple reports

All entries with a particular tag:

wj tag research

Everything for the last two weeks:

wj recent

Everything that you've done today:

wj today

Everything that you did yesterday:

wj yesterday

Print a list of tags:

wj tags

Print the total effort associated with a tag:

wj effort running

Display a calendar that shows dates which have an entry for a tag:

wj cal running

wj's People

Contributors

mattdton avatar

Watchers

 avatar

wj's Issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.