Permalink
Switch branches/tags
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
64 lines (42 sloc) 1.81 KB

Note

This is for Kate 5 (KTextEditor from KF 5). If you need a version for Kate 4, use the v0.4 release.

How to use

  1. Get an account at WakaTime.

  2. Get your API key.

  3. Create a file ~/.wakatime.cfg and make sure it looks similar to this:

    [settings]
    api_key = myapikey-0000-0000-0000-000000000000
  4. Clone this project and compile:

    git clone git@github.com:Tatsh/kate-wakatime.git
    cd kate-wakatime
    mkdir build
    cd build

    If on 64-bit:

    cmake .. -DCMAKE_INSTALL_PREFIX=/usr

    If on 32-bit:

    cmake .. -DCMAKE_INSTALL_PREFIX=/usr -DLIB_SUFFIX=""

    MacPorts (tested on Mid-2012 MacBook Pro running Yosemite):

    cmake .. -DCMAKE_INSTALL_PREFIX=/opt/local/ -DLIB_SUFFIX=""

    Finish the task:

    make
  5. You can choose to install with sudo make install or you can set the KDEDIRS environment variable. You may need to run kbuildsycoca5 as yourself once before launching Kate again (this is true on MacPorts).

  6. Once this plugin is installed, open Kate (or any other katepart editor (KWrite, etc)) and go to Settings, Configure ..., then in the dialog choose Extensions.

  7. Use the checkbox to enable WakaTime and click OK:

    screenie

  8. Restart Kate to be sure the plugin initialises properly.

Make sure you absolutely have your ~/.wakatime.cfg file properly set.

Is this a keylogger?

Short answer is no.

See the WakaTimeView::sendAction() method if you want to be certain.