Skip to content

jmatth11/time-tracker.nvim

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

47 Commits
 
 
 
 
 
 

Repository files navigation

time-tracker.nvim

This is a simple plugin for tracking time inside of neovim. I wanted an offline solution for tracking time so I decided to create this plugin.

Currently it tracks overall total and active time and the current day's total and active time. The active status is flipped after 2 minutes of no key presses.

Install

packer:

-- plenary is a used so is currently a requirement
use("nvim-lua/plenary.nvim")

use("jmatth11/time-tracker.nvim")

Usage:

Inside you main lua file (or an init file) place this piece of code to accept all defaults.

require("time-tracker").setup()

For setting custom active timer delay (delay is in milliseconds):

-- set inactivity to 5 seconds after no key presses
require("time-tracker").setup({timer_delay = 1000 * 5 })

To toggle the display of the time info panel.

require("time-tracker").time_info()

Preview

time-tracker-demo-vid.mp4

TODOs

  • Add ability to track activity per file.

License

MIT

About

simple time tracker plugin for neovim

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages