This is for Kate 5 (KTextEditor from KF 5). If you need a version for Kate 4, use the v0.4 release.
-
Get an account at WakaTime.
-
Get your API key.
-
Create a file
~/.wakatime.cfg
and make sure it looks similar to this:[settings] api_key = myapikey-0000-0000-0000-000000000000
-
Clone this project and compile:
git clone [email protected]: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
-
You can choose to install with
sudo make install
or you can set theKDEDIRS
environment variable. You may need to runkbuildsycoca5
as 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.
Short answer is no.
See the WakaTimeView::sendAction()
method if you want to be certain.