An open API service indexing awesome lists of open source software.

https://github.com/termoshtt/toggl.vim

Toggl client in vim script
https://github.com/termoshtt/toggl.vim

Last synced: 21 days ago
JSON representation

Toggl client in vim script

Awesome Lists containing this project

README

          

toggl.vim
=========

Toggl client for vimscript and vim.

Dependences
-----------

- vital.vim
- unite.vim (optional)

Usage
-----
Set your [API token](https://github.com/toggl/toggl_api_docs#api-token)

```vim
let g:toggl_api_token = "b51ff78xxxxxxxxxxxxxxxxxxxxxxxxx"
```

Set your [workspace ID](https://github.com/toggl/toggl_api_docs/blob/master/chapters/workspaces.md) (optional)
*Note: If you don't set this, toggl.vim will default to your first workspace*

```vim
let g:toggl_workspace_id = 987654321
```

Start task

```vim
:TogglStart task name +project @tag1 @tag2
```

Stop current task

```vim
:TogglStop
```

unite.vim interface
--------------------

There are two sources:

```vim
:Unite toggl/task
```

which helps you to restart past time entries.

```vim
:Unite toggl/project
```

which helps you to change the project of current task.

License
-------
MIT (see LICENSE file)