Giter Site home page Giter Site logo

leon-plickat / trackie Goto Github PK

View Code? Open in Web Editor NEW

This project forked from beatbrot/trackie

0.0 0.0 0.0 121 KB

⏳ trackie is a private, daemon-less time tracker for your CLI.

Home Page: https://crates.io/crates/trackie

License: Apache License 2.0

Rust 97.78% Shell 0.51% Makefile 1.71%

trackie's Introduction

⏳ trackie

trackie is a private, daemon-less time tracker running in your CLI.


Trackie offers an easy CLI to track the time you spent on your various projects. It bundles up your busy days in easy digestible reports that you can filter to your liking.

All data is saved to ~/.config/trackie.json where it can be processed by other tools.

Trackie is optimized to lower its complexity to the absolute minimum.


Usage

Trackie currently consists of three simple commands:

  • trackie start <project-ID>: Starts time tracking for a project with the given ID.
  • trackie stop: Stops the time tracking
  • trackie status [-f <format>]: Prints information about the currently tracked project.
  • trackie report [-d <num-days>] [-i/--include-empty-days]: Creates a report for the last n days (default: 5).

Shell integration

Trackie's customizable status command is a great fit for many shells.

Starship

The following starship configuration, for example, leads to a nice element that shows on which project you are working on and for how long you are already doing that.

[custom.trackie]
command = 'trackie status -f "%p[%D]"'
# Remove this line if you don't want to hide the trackie block if no project is currently tracked
when = "trackie status"
symbol = ""
style = "bg:cyan fg:black"
format = "[$symbol($output)]($style)[](fg:cyan)"

This configuration leads to the following result:

Windows Terminal with starship and trackie extension

Installation

Download prebuilt release

  1. Download the binary for your respective OS from the latest release.
  2. Copy it to a folder in your PATH.

Compile from source using cargo

  1. Run cargo install trackie.

Compile from source using make

git clone https://github.com/beatbrot/trackie
cd trackie
make
sudo make install

trackie's People

Contributors

beatbrot avatar leon-plickat avatar

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.