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
Get an account at WakaTime.
Get your API key.
Create a file
~/.wakatime.cfgand make sure it looks similar to this:
[settings] api_key = myapikey-0000-0000-0000-000000000000
Clone this project and compile:
git clone firstname.lastname@example.org: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:
You can choose to install with
sudo make installor you can set the
KDEDIRSenvironment variable. You may need to run
kbuildsycoca5as yourself once before launching Kate again (this is true on MacPorts).
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.
Use the checkbox to enable WakaTime and click OK:
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.
WakaTimeView::sendAction() method if you want to be certain.