{"id":35387444,"url":"https://github.com/shelltime/coding-extension-vim","last_synced_at":"2026-01-13T19:35:50.669Z","repository":{"id":330843984,"uuid":"1124055004","full_name":"shelltime/coding-extension-vim","owner":"shelltime","description":"it's a coding extension for vim. track the coding activity","archived":false,"fork":false,"pushed_at":"2026-01-07T18:31:14.000Z","size":79,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2026-01-07T23:24:19.162Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Lua","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/shelltime.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2025-12-28T08:18:11.000Z","updated_at":"2026-01-03T03:58:44.000Z","dependencies_parsed_at":null,"dependency_job_id":null,"html_url":"https://github.com/shelltime/coding-extension-vim","commit_stats":null,"previous_names":["shelltime/coding-extension-vim"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/shelltime/coding-extension-vim","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelltime%2Fcoding-extension-vim","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelltime%2Fcoding-extension-vim/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelltime%2Fcoding-extension-vim/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelltime%2Fcoding-extension-vim/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/shelltime","download_url":"https://codeload.github.com/shelltime/coding-extension-vim/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/shelltime%2Fcoding-extension-vim/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28397826,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-13T14:36:09.778Z","status":"ssl_error","status_checked_at":"2026-01-13T14:35:19.697Z","response_time":56,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2026-01-02T07:28:50.910Z","updated_at":"2026-01-13T19:35:50.664Z","avatar_url":"https://github.com/shelltime.png","language":"Lua","funding_links":[],"categories":[],"sub_categories":[],"readme":"# shelltime.nvim\n\n[![CI](https://github.com/shelltime/coding-extension-vim/actions/workflows/ci.yml/badge.svg)](https://github.com/shelltime/coding-extension-vim/actions/workflows/ci.yml)\n[![codecov](https://codecov.io/gh/shelltime/coding-extension-vim/branch/main/graph/badge.svg)](https://codecov.io/gh/shelltime/coding-extension-vim)\n\nA Neovim plugin for automatic coding activity tracking. Works with the ShellTime daemon to monitor your development time across projects.\n\n## Features\n\n- **Automatic Time Tracking** - Passively monitors coding activity\n- **Language Detection** - Auto-detects programming language from filetype\n- **Project Analytics** - Tracks time per project/workspace\n- **Git Integration** - Records activity by git branch\n- **Event Debouncing** - Efficient heartbeat batching (30s cooldown per file)\n- **Offline Support** - Queues heartbeats when daemon unavailable\n\n## Prerequisites\n\n### 1. Install ShellTime CLI\n\n```bash\ncurl -sSL https://shelltime.xyz/i | bash\n```\n\nAfter installation, reload your shell configuration:\n- **zsh**: `source ~/.zshrc`\n- **fish**: `source ~/.config/fish/config.fish`\n- **bash**: `source ~/.bashrc`\n\n### 2. Initialize and Authenticate\n\n```bash\nshelltime init\n```\n\nThis will:\n- Open your browser to authenticate with your ShellTime account\n- Install shell hooks for your shell (zsh/fish/bash)\n- Start the ShellTime daemon\n\n### 3. Enable Code Tracking\n\nAdd the following to your ShellTime config (`~/.shelltime/config.yaml`):\n\n```yaml\ncodeTracking:\n  enabled: true\n```\n\nOr in TOML format (`~/.shelltime/config.toml`):\n\n```toml\n[codeTracking]\nenabled = true\n```\n\n## Requirements\n\n- Neovim \u003e= 0.10.0\n- Git (optional, for branch tracking)\n\n## Installation\n\n### lazy.nvim\n\n```lua\n{\n  \"shelltime/coding-extension-vim\",\n  event = \"VeryLazy\",\n  opts = {},\n}\n```\n\n### packer.nvim\n\n```lua\nuse {\n  \"shelltime/coding-extension-vim\",\n  config = function()\n    require(\"shelltime\").setup()\n  end\n}\n```\n\n### vim-plug\n\n```vim\nPlug 'shelltime/coding-extension-vim'\n```\n\nThen add to your `init.lua`:\n\n```lua\nrequire(\"shelltime\").setup()\n```\n\n## Quick Start\n\n1. **Complete the [Prerequisites](#prerequisites)** - Install CLI, authenticate, and enable code tracking\n\n2. **Install the plugin** using your preferred plugin manager (see above)\n\n3. **Start coding** - The plugin automatically tracks your activity!\n\n## Configuration\n\nThe plugin reads settings from `~/.shelltime/config.yaml` by default:\n\n```lua\n-- Default setup (uses ~/.shelltime/config.yaml)\nrequire(\"shelltime\").setup()\n\n-- Custom config path\nrequire(\"shelltime\").setup({\n  config = \"/path/to/your/config.yaml\",\n})\n```\n\n### Config File Options\n\n| Option | Type | Default | Description |\n|--------|------|---------|-------------|\n| `socketPath` | string | `/tmp/shelltime.sock` | Unix socket path for daemon |\n| `codeTracking.enabled` | boolean | `true` | Enable/disable tracking |\n| `debug` | boolean | `false` | Enable debug logging |\n\n## Commands\n\n| Command | Description |\n|---------|-------------|\n| `:ShellTimeStatus` | Show daemon connection status and pending heartbeats |\n| `:ShellTimeFlush` | Manually flush pending heartbeats to daemon |\n| `:ShellTimeEnable` | Enable tracking |\n| `:ShellTimeDisable` | Disable tracking |\n\n## How It Works\n\nThe plugin monitors these Neovim events:\n\n| Event | Trigger |\n|-------|---------|\n| `BufEnter` | Opening a file |\n| `TextChanged` / `TextChangedI` | Editing text |\n| `BufWritePost` | Saving a file |\n| `CursorMoved` / `CursorMovedI` | Moving cursor |\n\nHeartbeats are:\n- **Debounced**: Max 1 heartbeat per file per 30 seconds (except saves)\n- **Batched**: Sent to daemon every 2 minutes\n- **Queued**: Stored locally if daemon is unavailable\n\n### Data Tracked\n\nEach heartbeat includes:\n\n- **File info**: Path, language, line count, cursor position\n- **Project info**: Name, root path, git branch\n- **Editor info**: Neovim version, plugin version\n- **System info**: Hostname, OS, OS version\n- **Activity**: Timestamp, whether it was a save event\n\n## Troubleshooting\n\n### Plugin not tracking\n\n1. Check if daemon is running:\n   ```bash\n   ls -la /tmp/shelltime.sock\n   # If not present, run: shelltime init\n   ```\n\n2. Verify config file exists:\n   ```bash\n   cat ~/.shelltime/config.yaml\n   ```\n\n3. Enable debug mode in config:\n   ```yaml\n   debug: true\n   ```\n\n4. Check status in Neovim:\n   ```vim\n   :ShellTimeStatus\n   ```\n\n### Heartbeats not sending\n\nRun `:ShellTimeStatus` to check:\n- If \"Disconnected\", ensure daemon is running\n- If pending heartbeats \u003e 0, try `:ShellTimeFlush`\n\n## License\n\n[GPL-3.0](LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelltime%2Fcoding-extension-vim","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fshelltime%2Fcoding-extension-vim","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fshelltime%2Fcoding-extension-vim/lists"}