toggl.vim


Ⅰ. 插件描述

Toggl client in vim script

Ⅱ. 基本信息

创建日期:  2015-05-14
使用用户:  3
Github星:  6
插件作者:  Toshiki Teramura

Ⅲ. 安装方法

使用Vundle管理器安装

在你的.vimrc下添加:
Plugin 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:PluginInstall

对于Vundle版本 < 0.10.2,请用上面的Bundle替换Plugin。

使用NeoBundle管理器安装

在你的.vimrc下添加:
NeoBundle 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:NeoBundleInstall

使用VimPlug管理器安装

在你的.vimrc下添加:
Plug 'termoshtt/toggl-vim'
… 然后在Vim中运行以下命令:
:source %
:PlugInstall

使用Pathogen管理器安装

在终端中运行以下命令:
cd ~/.vim/bundle
git clone https://github.com/termoshtt/toggl.vim

Ⅳ. 文档说明

toggl.vim

Toggl client for vimscript and vim.

Dependences

  • vital.vim
  • unite.vim (optional)

Usage

Set your API token

let g:toggl_api_token = "b51ff78xxxxxxxxxxxxxxxxxxxxxxxxx"

Set your workspace ID (optional)
Note: If you don't set this, toggl.vim will default to your first workspace

let g:toggl_workspace_id = 987654321

Start task

:TogglStart task name +project @tag1 @tag2

Stop current task

:TogglStop

unite.vim interface

There are two sources:

:Unite toggl/task

which helps you to restart past time entries.

:Unite toggl/project

which helps you to change the project of current task.

License

MIT (see LICENSE file)

添加新评论