prompting user for api key if does not exist. updated readme with install instructions using Sublime Package Control.

This commit is contained in:
Alan Hamlett 2013-07-10 19:01:06 -07:00
parent d4ed92d6de
commit fd56978d77
2 changed files with 13 additions and 7 deletions

View File

@ -1,7 +1,7 @@
sublime-wakatime sublime-wakatime
================ ================
automatic time tracking for Sublime Text 2 & 3 using https://wakati.me automatic time tracking for Sublime Text 2 & 3
Installation Installation
------------ ------------
@ -10,15 +10,21 @@ Installation
https://wakati.me https://wakati.me
2) Run this shell command replacing KEY with your api key: 2) Install the sublime-wakatime plugin.
echo "api_key=KEY" >> ~/.wakatime.conf ### Using [Sublime Package Control](http://wbond.net/sublime_packages/package_control):
3) Install the plugin in Sublime's Packages directory. * Press `ctrl+shift+p` or `cmd+shift+p`.
* Type `Install` then press `enter` on `Package Control: Install Package`.
* Type `sublime-wakatime` and press `enter` to download and install the sublime-wakatime plugin.
3) Open Sublime Text.
You will see a prompt at the bottom asking for your [WakaTi.me](https://www.wakati.me/#apikey) api key.
Enter your api key, then press `enter`.
4) Use Sublime and your time will automatically be tracked for you. 4) Use Sublime and your time will automatically be tracked for you.
Visit https://wakati.me to view your time spent in each file. 5) Visit https://wakati.me see your logged time.
Screen Shots Screen Shots
------------ ------------

View File

@ -1,11 +1,11 @@
""" ========================================================== """ ==========================================================
File: sublime-wakatime.py File: sublime-wakatime.py
Description: Automatic time tracking for Sublime Text 2 and 3. Description: Automatic time tracking for Sublime Text 2 and 3.
Maintainer: Wakati.Me <support@wakatime.com> Maintainer: WakaTi.me <support@wakatime.com>
Website: https://www.wakati.me/ Website: https://www.wakati.me/
===========================================================""" ==========================================================="""
__version__ = '0.2.1' __version__ = '0.2.2'
import time import time
import uuid import uuid