mirror of
https://github.com/wakatime/sublime-wakatime.git
synced 2023-08-10 21:13:02 +03:00
Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
651c84325e | |||
89368529cb | |||
f1f408284b | |||
7053932731 | |||
b6c4956521 |
12
HISTORY.rst
12
HISTORY.rst
@ -3,6 +3,18 @@ History
|
||||
-------
|
||||
|
||||
|
||||
4.0.0 (2015-04-12)
|
||||
++++++++++++++++++
|
||||
|
||||
- listen for selection modified instead of buffer activated for better performance
|
||||
|
||||
|
||||
3.0.19 (2015-04-07)
|
||||
+++++++++++++++++++
|
||||
|
||||
- fix bug in project detection when folder not found
|
||||
|
||||
|
||||
3.0.18 (2015-04-04)
|
||||
+++++++++++++++++++
|
||||
|
||||
|
@ -18,7 +18,7 @@ Heads Up! For Sublime Text 2 on Windows & Linux, WakaTime depends on [Python](ht
|
||||
|
||||
c) Type `wakatime`, then press `enter` with the `WakaTime` plugin selected.
|
||||
|
||||
3. Enter your [api key](https://wakatime.com/settings#apikey) from https://wakatime.com/settings#apikey, then press `enter`.
|
||||
3. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`.
|
||||
|
||||
4. Use Sublime and your time will be tracked for you automatically.
|
||||
|
||||
|
@ -7,7 +7,7 @@ Website: https://wakatime.com/
|
||||
==========================================================="""
|
||||
|
||||
|
||||
__version__ = '3.0.18'
|
||||
__version__ = '4.0.0'
|
||||
|
||||
|
||||
import sublime
|
||||
@ -168,7 +168,7 @@ def find_project_from_folders(folders, current_file):
|
||||
"""
|
||||
|
||||
folder = find_folder_containing_file(folders, current_file)
|
||||
return os.path.basename(folder)
|
||||
return os.path.basename(folder) if folder else None
|
||||
|
||||
|
||||
def handle_action(view, is_write=False):
|
||||
@ -285,7 +285,7 @@ class WakatimeListener(sublime_plugin.EventListener):
|
||||
def on_post_save(self, view):
|
||||
handle_action(view, is_write=True)
|
||||
|
||||
def on_activated(self, view):
|
||||
def on_selection_modified(self, view):
|
||||
handle_action(view)
|
||||
|
||||
def on_modified(self, view):
|
||||
|
Reference in New Issue
Block a user