Giter VIP home page Giter VIP logo

tt's People

Contributors

slahl avatar slsuse avatar

tt's Issues

Proper naming 2

Change the naming scheme in code:

Comes after Issue #14.

  1. ttp (from tt -p)
  2. ttt (from tt -t)
  3. ttls (from tt -p ls and tt -t ls)
  4. ttb (tt -t begin)
  5. tte (tt -t end)

write db to file

writing the db to file appends the db and has binary garbage in the appended data.

better ls

Show the duration of a run instead of the timestamps.

Better output format

Must be easy to read, comfortable to grep and nice to parse for other shell tools.

summarized views

  1. 'tt -t sum $pname $tname' should add all the runs and print the overall time spent on this task.
  2. 'tt -p sum $pname' should print the overall time spent on the project.

stopping runs before starting new ones

When a a given task for a given project is restarted before it was stopped it has 2 open runs.

It shouldn't happen in the first place. Starting a task must check if it's already running.
If it happens the user should be able to distinguish between runs and decide which one to close.

Reading empty projects

Registered projects without tasks and runs are not correctly parsed from file.
Check parse_line, parse_id, parse_name, parse_time in ttf.c

empty task entries in projects

A project has a normal tasks and an anonymous empty task.

###Assumption:

  1. a project is added with ttp -p add $name.
  2. the empty project is written to the file.
  3. the file is read, creating a project with an empty task?
  4. new tasks are created for the project.

proper naming 1

  1. 'ttp' -> 'tt'. This makes alias names possible:
    • 'alias ttp="tt -p"'
    • 'alias ttt="tt - t"'

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.