From cc1f7dcfb5d2742f83f9fca8b90295ac0b5fda6f Mon Sep 17 00:00:00 2001 From: Ave Ozkal Date: Tue, 4 Jun 2019 19:48:22 +0300 Subject: [PATCH] Move to rana branding --- README.md | 38 +++++--------------------------------- packages/wakatime/api.py | 4 ++-- 2 files changed, 7 insertions(+), 35 deletions(-) diff --git a/README.md b/README.md index c7c1e91..6ab0718 100644 --- a/README.md +++ b/README.md @@ -1,42 +1,14 @@ -sublime-wakatime -================ +sublime-rana +============ Metrics, insights, and time tracking automatically generated from your programming activity. -This is a fork, modified to make it easier to use with rana or any other wakatime-compatible time tracking tools. +This is a fork of sublime-wakatime, unaffiliated with wakatime, modified to make it easier to use with rana or any other wakatime-compatible time tracking tools. Installation ------------ -1. Install [Package Control](https://packagecontrol.io/installation). - -2. In Sublime, press `ctrl+shift+p`(Windows, Linux) or `cmd+shift+p`(OS X). - -3. Type `install`, then press `enter` with `Package Control: Install Package` selected. - -4. Type `wakatime`, then press `enter` with the `WakaTime` plugin selected. - -5. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`. - -6. Use Sublime and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com). - - -Screen Shots ------------- - -![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png) - - -Unresponsive Plugin Warning ---------------------------- - -In Sublime Text 2, if you get a warning message: - - A plugin (WakaTime) may be making Sublime Text unresponsive by taking too long (0.017332s) in its on_modified callback. - -To fix this, go to `Preferences → Settings - User` then add the following setting: - -`"detect_slow_plugins": false` +1. Clone this repo to `~/.config/sublime-text-3/Packages`. Troubleshooting @@ -48,7 +20,7 @@ First, turn on debug mode in your `WakaTime.sublime-settings` file. Add the line: `"debug": true` -Then, open your Sublime Console with `View → Show Console` ( CTRL + \` ) to see the plugin executing the wakatime cli process when sending a heartbeat. +Then, open your Sublime Console with `View → Show Console` ( CTRL + \` ) to see the plugin executing the cli process when sending a heartbeat. Also, tail your `$HOME/.wakatime.log` file to debug wakatime cli problems. The [How to Debug Plugins][how to debug] guide shows how to check when coding activity was last received from your editor using the [User Agents API][user agents api]. diff --git a/packages/wakatime/api.py b/packages/wakatime/api.py index 522d98f..76013f3 100644 --- a/packages/wakatime/api.py +++ b/packages/wakatime/api.py @@ -27,8 +27,8 @@ from .packages import tzlocal log = logging.getLogger('WakaTime') -api_domain = "https://api.wakatime.com" -# api_domain = https://rana.lavatech.top/ +# api_domain = "https://api.wakatime.com" +api_domain = "https://rana.lavatech.top" try: