Compare commits

...

563 Commits

Author SHA1 Message Date
Alan Hamlett c100213351 v11.1.0 2022-11-12 12:34:41 -06:00
Alan Hamlett 43237a05c5 update changes 2022-11-12 12:34:07 -06:00
Alan Hamlett c34eccad4a
Merge pull request #117 from wakatime/feature/api-key-vault-cmd
Support for api key vault cmd config
2022-11-12 12:32:59 -06:00
Alan Hamlett 5077c5e290 read api key vault cmd from sublime settings and wakatime config file 2022-11-12 12:32:43 -06:00
Carlos Henrique Guardão Gandarez a387c08b44
changes for v11.1.0 2022-11-11 21:57:09 -03:00
Carlos Henrique Guardão Gandarez 3c2947cf79
Support for api key vault cmd config 2022-11-11 21:55:29 -03:00
Alan Hamlett 0744d7209b Exit code 112 should be ignored same as 102 2022-11-10 10:45:54 -06:00
Alan Hamlett 54e6772a80 v11.0.8 2022-08-23 15:14:53 +02:00
Alan Hamlett b576dfafe6 changes for v11.0.8 2022-08-23 15:14:40 +02:00
Alan Hamlett 5299efd6fa sometimes selection object can have no elements but eval truthy 2022-08-23 15:13:44 +02:00
Alan Hamlett 74583a6845 v11.0.7 2022-06-25 13:46:38 -03:00
Alan Hamlett 31f1f8ecdc changes for v11.0.7 2022-06-25 13:46:25 -03:00
Alan Hamlett c1f58fd05d check wakatime-cli versions in background thread to prevent blocking UI 2022-06-25 13:45:29 -03:00
Alan Hamlett 28063e3ac4 v11.0.6 2022-06-08 07:44:41 -04:00
Alan Hamlett 4d56aca1a1 changes for v11.0.6 2022-06-08 07:44:01 -04:00
Alan Hamlett e15c514ef3 Fix call to log helper 2022-06-08 07:43:01 -04:00
Alan Hamlett fe582c84b9 v11.0.5 2022-04-29 11:19:26 -07:00
Alan Hamlett d7ee8675d8 changes for v11.0.5 2022-04-29 11:19:05 -07:00
Alan Hamlett da17125b97 Prevent installing global url opener 2022-04-29 11:14:55 -07:00
Alan Hamlett 847223cdce Clean up legacy wakatime-cli directory if exists 2022-02-21 20:08:48 -08:00
Alan Hamlett b405f99cff chmod wakatime-cli after copying 2022-01-21 15:12:51 -08:00
Alan Hamlett b5210b77ce v11.0.4 2022-01-06 18:40:32 -08:00
Alan Hamlett fac1192228 changes for v11.0.4 2022-01-06 18:40:18 -08:00
Alan Hamlett 4d6533b2ee fix lineno, cursorpos, and lines-in-file arguments 2022-01-06 18:37:52 -08:00
Alan Hamlett 7d2bd0b7c5 Copy wakatime-cli when symlink fails 2022-01-06 18:16:02 -08:00
Alan Hamlett 66f5f48f33 create symlink to wakatime-cli 2022-01-06 10:23:09 -08:00
Alan Hamlett e337afcc53 Fix Popen override 2022-01-06 07:56:45 -08:00
Alan Hamlett 033c07f070 prevent using empty cached version 2022-01-05 04:15:10 -08:00
Alan Hamlett c09767b58d v11.0.3 2021-12-31 16:55:16 -08:00
Alan Hamlett ac80c4268b changes for v11.0.3 2021-12-31 16:55:05 -08:00
Alan Hamlett e5331d3086 only remove wakatime-cli after finished downloading new one 2021-12-31 16:42:11 -08:00
Alan Hamlett bebb46dda6 v11.0.2 2021-11-17 14:01:24 -08:00
Alan Hamlett 9767790063 changes for v11.0.2 2021-11-17 14:01:08 -08:00
Alan Hamlett 75c219055d encode cursorpos in json as int not str 2021-11-17 13:52:49 -08:00
Alan Hamlett ef77e1f178 v11.0.1 2021-11-16 09:47:29 -08:00
Alan Hamlett 4025decc12 changes for v11.0.1 2021-11-16 09:47:14 -08:00
Alan Hamlett 086c700151 turn off strict config parsing in py3 2021-11-16 09:43:20 -08:00
Alan Hamlett 650bb6fa26 log error response when fail to check wakatime-cli version or download binary 2021-11-01 17:27:12 -07:00
Alan Hamlett 389c84673e retry httperrors in py2 without ssl 2021-11-01 17:18:06 -07:00
Alan Hamlett 6fa1321a95 v11.0.0 2021-10-31 12:59:57 -07:00
Alan Hamlett f1a8fcab44 changes for v11.0.0 2021-10-31 12:59:36 -07:00
Alan Hamlett 3937b083c5 Finish implementation of using new Go wakatime-cli 2021-10-31 12:57:28 -07:00
Alan Hamlett 711aab0d18 Remove unused python packages folder 2021-10-31 11:42:11 -07:00
Alan Hamlett cb8ce3a54e Switch to new Go wakatime-cli 2021-10-31 11:41:21 -07:00
Alan Hamlett 7db5fe0a5d strip newlines from today output before displaying in status bar 2021-10-30 15:18:26 -07:00
Alan Hamlett cebcfaa0e9
Merge pull request #106 from jamesa/master
Fix Python 3.8 warning when getting Unix time zone
2021-10-25 21:32:02 -07:00
James Anderson f8faed6e47
Fix Python 3.8 warning when getting Unix time zone 2021-10-25 17:19:39 -04:00
Alan Hamlett fb303e048f v10.0.1 2020-12-28 18:54:50 -08:00
Alan Hamlett 4f11222c2b changes for v10.0.1 2020-12-28 18:54:37 -08:00
Alan Hamlett 72b72dc9f0 add sublime text to subtitle 2020-12-28 18:54:07 -08:00
Alan Hamlett 1b07d0442b v10.0.0 2020-12-28 18:46:13 -08:00
Alan Hamlett fbd8e84ea1 changes for v10.0.0 2020-12-28 18:44:55 -08:00
Alan Hamlett 01c0e7758e Partially revert "Use wakatime-cli standalone" to support both
standalone and Python source wakatime-cli versions.

This partially reverts commit d588451468.
2020-12-28 18:42:00 -08:00
Alan Hamlett 28556de3b6 add back python binary location setting 2020-12-28 17:57:46 -08:00
Alan Hamlett 809e43cfe5 fix link to api key 2020-12-28 17:49:31 -08:00
Alan Hamlett 22ddbe27b0 link directly to wakatime install instructions 2020-12-28 17:44:00 -08:00
Alan Hamlett ddaf60b8b0 remove ide setting files from revision control 2020-07-30 15:53:04 -07:00
Alan Hamlett 2e6a87c67e prevent executing wakatime-cli before it has been downloaded 2020-03-01 10:01:52 -08:00
Carlos Henrique Guardão Gandarez 01503b1c20
Merge pull request #99 from gandarez/standalone
Use wakatime-cli standalone
2020-03-01 10:57:14 -05:00
Carlos Henrique Guardão Gandarez 5a4ac9c11d check if cli is installed before sending heartbeat 2020-02-29 20:01:34 -05:00
Carlos Henrique Guardão Gandarez fa0a3aacb5 add api_key into sublime-settings 2020-02-29 19:22:32 -05:00
Carlos Henrique Guardão Gandarez d588451468 Use wakatime-cli standalone 2020-02-29 19:15:40 -05:00
Alan Hamlett 483d8f596e v9.1.2 2020-02-13 09:24:11 -08:00
Alan Hamlett 03f2d6d580 changes for v9.1.2 2020-02-13 09:23:58 -08:00
Alan Hamlett e1390d7647 Upgrade wakatime-cli to v13.0.7 2020-02-13 09:22:15 -08:00
Alan Hamlett c87bdd041c Upgrade wakatime-cli to v13.0.5 2020-02-11 21:26:01 -08:00
Alan Hamlett 3a65395636 v9.1.1 2020-02-11 08:12:07 -08:00
Alan Hamlett 0b2f3aa9a4 changes for v9.1.1 2020-02-11 08:11:52 -08:00
Alan Hamlett 58ef2cd794 fix typo 2020-02-11 08:10:39 -08:00
Alan Hamlett 04173d3bcc v9.1.0 2020-02-09 23:37:17 -08:00
Alan Hamlett 3206a07476 changes for v9.1.0 2020-02-09 23:36:29 -08:00
Alan Hamlett 9330236816 upgrade wakatime-cli to v13.0.4 2020-02-09 23:35:43 -08:00
Alan Hamlett 885c11f01a Detect python in Windows LocalAppData install locations 2020-02-09 23:33:39 -08:00
Alan Hamlett 8acda0157a upgrade embedded python to v3.8.1 2020-02-09 23:17:13 -08:00
Alan Hamlett 935ddbd5f6 v9.0.2 2019-12-04 22:04:13 -08:00
Alan Hamlett b57b1eb696 changes for v9.0.2 2019-12-04 22:03:49 -08:00
Alan Hamlett 6ec097b9d1 upgrade wakatime-cli to v13.0.3 2019-12-04 22:02:51 -08:00
Alan Hamlett b3ed36d3b2 fix badge locations 2019-11-27 22:28:20 -08:00
Alan Hamlett 3669e4df6a add wakatime badge 2019-11-25 21:30:54 -08:00
Alan Hamlett 3504096082 v9.0.1 2019-11-24 07:49:27 -08:00
Alan Hamlett 5990947706 changes for v9.0.1 2019-11-24 07:48:58 -08:00
Alan Hamlett 2246e31244 upgrade wakatime-cli to v13.0.2 2019-11-24 07:46:13 -08:00
Alan Hamlett b55fe702d3 v9.0.0 2019-06-23 19:03:26 -07:00
Alan Hamlett e0fbbb50bb changes for v9.0.0 2019-06-23 19:03:08 -07:00
Alan Hamlett 32c0cb5a97 upgrade wakatime-cli to v12.0.0 2019-06-23 18:56:57 -07:00
Alan Hamlett 67d8b0d24f v8.7.0 2019-05-29 06:44:07 -07:00
Alan Hamlett b8b2f4944b changes for v8.7.0 2019-05-29 06:43:54 -07:00
Alan Hamlett a20161164c prevent creating user settings file when api key found from common config 2019-05-29 06:42:38 -07:00
Alan Hamlett 405211bb07 v8.6.1 2019-05-28 20:54:57 -07:00
Alan Hamlett ffc879c4eb changes for v8.6.1 2019-05-28 20:54:43 -07:00
Alan Hamlett 1e23919694 fix import path of parseConfigFile 2019-05-28 20:53:58 -07:00
Alan Hamlett b2086a3cd2 v8.6.0 2019-05-27 12:41:14 -07:00
Alan Hamlett 005b07520c changes for v8.6.0 2019-05-27 12:40:55 -07:00
Alan Hamlett 60608bd322 Skip prompting for api key when found from common config file 2019-05-27 12:39:48 -07:00
Alan Hamlett cde8f8f1de v8.5.0 2019-05-10 09:45:11 -07:00
Alan Hamlett 4adfca154c changes for v8.5.0 2019-05-10 09:44:57 -07:00
Alan Hamlett f7b3924a30 use wakatime-cli to fetch today coding time 2019-05-10 09:43:30 -07:00
Alan Hamlett db00024455 remove clock icon from status bar 2019-05-10 09:18:38 -07:00
Alan Hamlett 9a6be7ca4e v8.4.2 2019-05-07 18:44:24 -07:00
Alan Hamlett 1ea9b2a761 changes for v8.4.2 2019-05-07 18:43:57 -07:00
Alan Hamlett bd5e87e030 upgrade wakatime-cli to v11.0.0 2019-05-07 18:42:31 -07:00
Alan Hamlett 0256ff4a6a v8.4.1 2019-05-01 10:57:50 -07:00
Alan Hamlett 9d170b3276 changes for v8.4.1 2019-05-01 10:57:38 -07:00
Alan Hamlett c54e575210 use api subdomain for fetching summaries 2019-05-01 10:57:11 -07:00
Alan Hamlett 07513d8f10 v8.4.0 2019-05-01 10:49:59 -07:00
Alan Hamlett 30902cc050 changes for v8.4.0 2019-05-01 10:49:40 -07:00
Alan Hamlett aa7962d49a show today coding activity time in status bar 2019-05-01 10:48:28 -07:00
Alan Hamlett d8c662f3db v8.3.6 2019-04-30 16:25:28 -07:00
Alan Hamlett 10d88ebf2d changes for v8.3.6 2019-04-30 16:25:14 -07:00
Alan Hamlett 2f28c561b1 upgrade wakatime-cli to v10.8.4 2019-04-30 16:24:35 -07:00
Alan Hamlett 24968507df v8.3.5 2019-04-30 09:21:47 -07:00
Alan Hamlett 641cd539ed changes for v8.3.5 2019-04-30 09:21:33 -07:00
Alan Hamlett 0c65d7e5b2 Upgrade wakatime-cli to v10.8.3 2019-04-30 09:20:29 -07:00
Alan Hamlett f0532f5b8e v8.3.4 2019-03-30 19:17:06 -07:00
Alan Hamlett 8094db9680 changes for v8.3.4 2019-03-30 19:16:49 -07:00
Alan Hamlett bf20551849 upgrade wakatime-cli to v10.8.2 2019-03-30 18:53:40 -07:00
Alan Hamlett 2b6e32b578 remove redundant line 2019-03-13 09:36:51 +09:00
Alan Hamlett 363c3d38e2 update license file with copyright owner inline 2019-03-13 09:20:50 +09:00
Alan Hamlett 88466d7db2 v8.3.3 2018-12-19 07:43:01 -08:00
Alan Hamlett 122fcbbee5 changes for v8.3.3 2018-12-19 07:42:30 -08:00
Alan Hamlett c41fcec5d8 upgrade wakatime-cli to v10.6.1 2018-12-19 07:38:18 -08:00
Alan Hamlett be09b34d44 v8.3.2 2018-10-06 20:40:57 -07:00
Alan Hamlett e1ee1c1216 changes for v8.3.2 2018-10-06 20:40:37 -07:00
Alan Hamlett a37061924b Send buffered heartbeats to API every 30 seconds. 2018-10-06 20:40:12 -07:00
Alan Hamlett da01fa268b v8.3.1 2018-10-05 00:07:11 -07:00
Alan Hamlett c279418651 changes for v8.3.1 2018-10-05 00:06:46 -07:00
Alan Hamlett 5cf2c8f7ac upgrade wakatime-cli to v10.4.1 2018-10-05 00:06:02 -07:00
Alan Hamlett d1455e77a8 v8.3.0 2018-10-03 00:55:02 -07:00
Alan Hamlett 8499e7bafe changes for v8.3.0 2018-10-03 00:54:40 -07:00
Alan Hamlett abc26a0864 upgrade wakatime-cli to v10.4.0 2018-10-03 00:47:20 -07:00
Alan Hamlett 71ad97ffe9 v8.2.0 2018-09-30 22:03:01 -07:00
Alan Hamlett 3ec5995c99 changes for v8.2.0 2018-09-30 22:02:53 -07:00
Alan Hamlett 195cf4de36 upgrade wakatime-cli to v10.3.0 2018-09-30 21:48:20 -07:00
Alan Hamlett b39eefb4f5 cross-platform Popen with hidden window 2018-09-30 21:29:04 -07:00
Alan Hamlett bbf5761e26 v8.1.2 2018-09-20 22:31:14 -07:00
Alan Hamlett c4df1dc633 changes for v8.1.2 2018-09-20 22:30:57 -07:00
Alan Hamlett 360a491cda upgrade wakatime-cli to v10.2.4 2018-09-20 22:29:34 -07:00
Alan Hamlett f61a34eda7 build subprocess stdin near heartbeats 2018-09-13 19:39:05 -07:00
Alan Hamlett 48123d7409 v8.1.1 2018-04-26 08:42:51 -07:00
Alan Hamlett c8a15d7ac0 changes for v8.1.1 2018-04-26 08:42:00 -07:00
Alan Hamlett 202df81e04 upgrade wakatime-cli to v10.2.1 2018-04-26 08:40:02 -07:00
Alan Hamlett 5e34f3f6a7 v8.1.0 2018-04-03 23:43:43 -07:00
Alan Hamlett d4441e5575 changes for v8.1.0 2018-04-03 23:43:26 -07:00
Alan Hamlett 9eac8e2bd3 prefer python3 when running wakatime-cli 2018-04-03 23:42:02 -07:00
Alan Hamlett 11d8fc3a09 v8.0.8 2018-03-15 01:51:31 -07:00
Alan Hamlett d1f1f51f23 changes for v8.0.8 2018-03-15 01:51:20 -07:00
Alan Hamlett b10bb36c09 Upgrade wakatime-cli to v10.1.3 2018-03-15 01:50:36 -07:00
Alan Hamlett dc9474befa v8.0.7 2018-03-15 01:32:56 -07:00
Alan Hamlett b910807e98 changes for v8.0.7 2018-03-15 01:32:37 -07:00
Alan Hamlett bc770515f0 Upgrade wakatime-cli to v10.1.2 2018-03-15 01:31:17 -07:00
Alan Hamlett 9e102d7c5c v8.0.6 2018-01-04 23:34:40 -08:00
Alan Hamlett 5c1770fb48 changes for v8.0.6 2018-01-04 23:34:13 -08:00
Alan Hamlett 683397534c upgrade wakatime-cli to v10.1.0 2018-01-04 23:33:07 -08:00
Alan Hamlett 1c92017543 v8.0.5 2017-11-24 16:16:47 -08:00
Alan Hamlett fda1307668 changes for v8.0.5 2017-11-24 16:16:34 -08:00
Alan Hamlett 1c84d457c5 upgrade wakatime-cli to v10.0.5 2017-11-24 16:16:04 -08:00
Alan Hamlett 1e680ce739 v8.0.4 2017-11-23 12:49:07 -08:00
Alan Hamlett 376adbb7d7 changes for v8.0.4 2017-11-23 12:48:44 -08:00
Alan Hamlett e0040e185b upgrade wakatime-cli to v10.0.4 2017-11-23 12:41:59 -08:00
Alan Hamlett c4a88541d0 v8.0.3 2017-11-22 13:12:09 -08:00
Alan Hamlett 0cf621d177 changes for v8.0.3 2017-11-22 13:11:48 -08:00
Alan Hamlett db9d6cec97 upgrade wakatime-cli to v10.0.3 2017-11-22 13:09:17 -08:00
Alan Hamlett 2c17f49a6b v8.0.2 2017-11-15 18:36:43 -08:00
Alan Hamlett 95116d6007 changes for v8.0.2 2017-11-15 18:36:28 -08:00
Alan Hamlett 8c52596f8f upgrade wakatime-cli to v10.0.2 2017-11-15 18:35:43 -08:00
Alan Hamlett 3109817dc7 v8.0.1 2017-11-09 09:10:19 -08:00
Alan Hamlett 0c0f965763 changes for v8.0.1 2017-11-09 09:10:06 -08:00
Alan Hamlett 1573e9c825 upgrade wakatime-cli to v10.0.1 2017-11-09 09:09:28 -08:00
Alan Hamlett a0b8f349c2 v8.0.0 2017-11-08 23:14:04 -08:00
Alan Hamlett 2fb60b1589 changes for v8.0.0 2017-11-08 23:13:47 -08:00
Alan Hamlett 02786a744e upgrade wakatime-cli to v10.0.0 2017-11-08 23:12:05 -08:00
Alan Hamlett 729a4360ba v7.0.26 2017-11-07 18:55:25 -08:00
Alan Hamlett 8f45de85ec changes for v7.0.26 2017-11-07 18:55:03 -08:00
Alan Hamlett 4672f70c87 upgrade wakatime-cli to v9.0.1 2017-11-07 18:54:17 -08:00
Alan Hamlett 46a9aae942 v7.0.25 2017-11-05 20:10:51 -08:00
Alan Hamlett 9e77ce2697 changes for v7.0.25 2017-11-05 20:08:25 -08:00
Alan Hamlett 385ba818cc ability to override python binary location 2017-11-05 20:04:48 -08:00
Alan Hamlett 7492c3ce12 upgrade wakatime-cli to v9.0.0 2017-11-05 19:51:43 -08:00
Alan Hamlett 03eed88917 v7.0.24 2017-10-29 11:38:11 -07:00
Alan Hamlett 60a7ad96b5 changes for v7.0.24 2017-10-29 11:37:31 -07:00
Alan Hamlett 2d1d5d336a link to issues from changelog 2017-10-29 11:35:38 -07:00
Alan Hamlett e659759b2d upgrade wakatime-cli to v8.0.5 2017-10-29 11:32:03 -07:00
Alan Hamlett a290e5d86d v7.0.23 2017-09-14 17:54:06 -07:00
Alan Hamlett d5b922bb10 changes for 7.0.23 2017-09-14 17:53:51 -07:00
Alan Hamlett ec7b5e3530 add missing setting description 2017-09-14 17:51:22 -07:00
Alan Hamlett aa3f2e8af6 Merge pull request #76 from krishnaglick/master
Adding "Include" Functionality
2017-09-14 17:46:55 -07:00
Krishna Glick f4e53cd682 Added 'include' functionality 2017-09-14 13:54:50 -04:00
Alan Hamlett aba72b0f1e v7.0.22 2017-06-08 00:21:33 -07:00
Alan Hamlett 5b9d86a57d changes for v7.0.22 2017-06-08 00:21:15 -07:00
Alan Hamlett fa40874635 upgrade wakatime-cli to v8.0.3 2017-06-08 00:20:10 -07:00
Alan Hamlett 6d4a4cf9eb link to FAQ from troubleshooting section 2017-05-26 07:40:14 -07:00
Alan Hamlett f628b8dd11 v7.0.21 2017-05-24 23:55:36 -07:00
Alan Hamlett f932ee9fc6 changes for v7.0.21 2017-05-24 23:55:17 -07:00
Alan Hamlett 2f14009279 Upgrade wakatime-cli to v8.0.2 2017-05-24 23:53:28 -07:00
Alan Hamlett 453d96bf9c use unicode arrow 2017-05-02 19:24:54 -07:00
Alan Hamlett 9de153f156 use unicode arrow 2017-04-15 10:13:42 -07:00
Alan Hamlett dcc782338d v7.0.20 2017-04-10 19:04:00 -07:00
Alan Hamlett 9d0dba988a remove sub-list install instructions 2017-04-10 19:03:05 -07:00
Alan Hamlett e76f2e514e v7.0.19 2017-04-10 18:59:05 -07:00
Alan Hamlett 224f7cd82a Remove /var/www/ from default ignored folders 2017-04-10 18:55:24 -07:00
Alan Hamlett 3cce525a84 update dashboard step for install instructions 2017-03-30 00:23:41 -07:00
Alan Hamlett ce885501ad v7.0.18 2017-03-16 08:40:05 -07:00
Alan Hamlett c9448a9a19 changes for v7.0.18 2017-03-16 08:37:29 -07:00
Alan Hamlett 04f8c61ebc no need to create empty common config file 2017-03-16 08:36:17 -07:00
Alan Hamlett 04a4630024 upgrade wakatime-cli to v8.0.0 2017-03-16 08:26:24 -07:00
Alan Hamlett 02138220fd allow setting a proxy in sublime-settings file 2017-03-10 08:11:40 -08:00
Alan Hamlett d0b162bdd8 Merge pull request #71 from marcus-at-localhorst/master
Use correct argument --exclude instead of --ignore
2017-03-10 08:02:44 -08:00
Marcus Obst 1b8895cd38 add --hidefilenames in config 2017-03-04 17:21:21 +01:00
Marcus Obst 938bbb73d1 Use correct argument --exclude instead of --ignore
https://github.com/wakatime/sublime-wakatime/issues/70
2017-03-04 17:02:04 +01:00
Alan Hamlett 008fdc6b49 v7.0.17 2017-03-01 22:32:08 -08:00
Alan Hamlett a788625dd0 changes for v7.0.17 2017-03-01 22:31:49 -08:00
Alan Hamlett bcbce681c3 upgrade wakatime-cli to v7.0.4 2017-03-01 22:30:57 -08:00
Alan Hamlett 35299db832 don't wrap ctrl in code blocks 2017-02-26 20:23:51 -08:00
Alan Hamlett eb7814624c escape backtick with backslash 2017-02-26 20:23:01 -08:00
Alan Hamlett 1c092b2fd8 escape backslash correctly 2017-02-26 20:21:29 -08:00
Alan Hamlett 507ef95f71 keyboard shortcut for opening console window 2017-02-26 20:08:15 -08:00
Alan Hamlett 9777bc7788 v7.0.16 2017-02-20 16:20:09 -08:00
Alan Hamlett 20b78defa6 changes for v7.0.16 2017-02-20 16:19:55 -08:00
Alan Hamlett 8cb1c557d9 upgrade wakatime-cli to v7.0.2 2017-02-20 16:18:38 -08:00
Alan Hamlett 20a1965f13 v7.0.15 2017-02-13 23:31:26 -08:00
Alan Hamlett 0b802a554e changes for v7.0.15 2017-02-13 23:31:09 -08:00
Alan Hamlett 30186c9b2c upgrade wakatime-cli to v6.2.2 2017-02-13 23:30:21 -08:00
Alan Hamlett 311a0b5309 v7.0.14 2017-02-08 19:25:55 -08:00
Alan Hamlett b7602d89fb changes for v7.0.14 2017-02-08 19:25:42 -08:00
Alan Hamlett 305de46e32 upgrade wakatime-cli to v6.2.1 2017-02-08 19:25:31 -08:00
Alan Hamlett c574234927 prevent crashing when logging object unable to be converted to unicode 2017-02-08 19:24:26 -08:00
Alan Hamlett a69c50f470 use str on objects which are not strings 2017-01-10 10:05:24 -08:00
Alan Hamlett f4b40089f3 v7.0.13 2016-11-11 11:31:43 +01:00
Alan Hamlett 08394357b7 support old Sublime Text with Python 2.6 2016-11-11 11:29:51 +01:00
Alan Hamlett 205d4eb163 fix import namespace 2016-11-11 11:16:17 +01:00
Alan Hamlett c4c27e4e9e v7.0.12 2016-10-24 12:41:46 +02:00
Alan Hamlett 9167eb2558 upgrade wakatime-cli to v6.2.0 2016-10-24 12:39:37 +02:00
Alan Hamlett eaa3bb5180 use python v3.5.2 2016-10-15 16:16:39 +02:00
Alan Hamlett 7755971d11 v7.0.11 2016-09-23 08:37:30 +02:00
Alan Hamlett 7634be5446 handle UnicodeDecodeError exceptions when printing log messages 2016-09-23 08:36:23 +02:00
Alan Hamlett 5e17ad88f6 v7.0.10 2016-09-22 10:28:04 +02:00
Alan Hamlett 24d0f65116 upgrade wakatime-cli to v6.0.9 2016-09-22 10:26:57 +02:00
Alan Hamlett a326046733 handle UnicodeDecodeError when looking for python to fix #68 2016-09-22 10:24:49 +02:00
Alan Hamlett 9bab00fd8b v7.0.9 2016-09-02 10:54:32 +02:00
Alan Hamlett b4a13a48b9 upgrade wakatime-cli to v6.0.8 2016-09-02 10:50:54 +02:00
Alan Hamlett 21601f9688 v7.0.8 2016-07-21 15:17:59 +02:00
Alan Hamlett 4c3ec87341 upgrade wakatime-cli to master 2016-07-21 15:16:03 +02:00
Alan Hamlett b149d7fc87 v7.0.7 2016-07-06 23:26:41 +02:00
Alan Hamlett 52e6107c6e upgrade wakatime-cli to v6.0.7 2016-07-06 23:25:21 +02:00
Alan Hamlett b340637331 upgrade wakatime-cli to v6.0.6 2016-06-17 10:17:29 +02:00
Alan Hamlett 044867449a v7.0.6 2016-06-13 16:50:10 +02:00
Alan Hamlett 9e3f438823 upgrade wakatime-cli to v6.0.5 2016-06-13 16:48:53 +02:00
Alan Hamlett 887d55c3f3 v7.0.5 2016-06-08 20:46:57 +02:00
Alan Hamlett 19d54f3310 upgrade wakatime-cli to master version to fix unhandled retry exception 2016-06-08 20:43:24 +02:00
Alan Hamlett 514a8762eb update settings screenshot 2016-05-21 15:56:16 +02:00
Alan Hamlett 957c74d226 v7.0.4 2016-05-21 14:32:47 +02:00
Alan Hamlett 7b0432d6ff upgrade wakatime-cli to v6.0.3 2016-05-21 14:28:50 +02:00
Alan Hamlett 09754849be v7.0.3 2016-05-16 16:09:32 +02:00
Alan Hamlett 25ad48a97a upgrade wakatime-cli to v6.0.2 2016-05-16 16:08:58 +02:00
Alan Hamlett 3b2520afa9 use common resources folder location 2016-05-12 12:07:24 +02:00
Alan Hamlett 77c2041ad3 rename activity callback 2016-04-30 00:01:25 +02:00
Alan Hamlett 8af3b53937 v7.0.2 2016-04-29 16:57:54 +02:00
Alan Hamlett 5ef2e6954e prevent implicit decoding from string format 2016-04-29 16:56:48 +02:00
Alan Hamlett ca94272de5 v7.0.1 2016-04-29 01:13:50 +02:00
Alan Hamlett f19a448d95 upgrade wakatime-cli to v6.0.1 2016-04-29 01:13:01 +02:00
Alan Hamlett e178765412 update menu screenshot 2016-04-29 00:51:38 +02:00
Alan Hamlett 6a7de84b9c v7.0.0 2016-04-29 00:21:51 +02:00
Alan Hamlett 48810f2977 queue heartbeats and send to wakatime-cli after 4 seconds 2016-04-29 00:18:38 +02:00
Alan Hamlett 260eedb31d upgrade wakatime-cli to v6.0.0 2016-04-29 00:04:46 +02:00
Alan Hamlett 02e2bfcad2 nest settings menu under Package Settings 2016-04-28 19:37:24 +02:00
Alan Hamlett f14ece63f3 v6.0.8 2016-04-19 00:27:52 +02:00
Alan Hamlett cb7f786ec8 upgrade wakatime-cli to v5.0.0 2016-04-19 00:26:28 +02:00
Alan Hamlett ab8711d0b1 update screenshot 2016-03-21 01:46:22 +01:00
Alan Hamlett 2354be358c update product screenshot 2016-03-21 01:23:44 +01:00
Alan Hamlett 443215bd90 v6.0.7 2016-03-11 09:24:27 -08:00
Alan Hamlett c64f125dc4 no need to check debug mode before logging 2016-03-11 09:23:08 -08:00
Alan Hamlett 050b14fb53 v6.0.6 2016-03-06 14:14:40 -08:00
Alan Hamlett c7efc33463 upgrade wakatime-cli to v4.1.13 2016-03-06 14:13:27 -08:00
Alan Hamlett d0ddbed006 v6.0.5 2016-03-06 12:49:49 -08:00
Alan Hamlett 3ce8f388ab upgrade wakatime-cli to v4.1.11 2016-03-06 12:48:42 -08:00
Alan Hamlett 90731146f9 add unresponsive plugin fix 2016-02-09 07:39:50 -08:00
Alan Hamlett e1ab92be6d v6.0.4 2016-01-15 12:27:52 +01:00
Alan Hamlett 8b59e46c64 force as str before decoding as unicode 2016-01-15 12:24:43 +01:00
Alan Hamlett 006341eb72 Merge pull request #61 from real666maverick/bug_UnicodeDecodeError
fix UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in posiion 10: ordinal not in range(128) on plugin_loaded (ST2)
2016-01-15 12:18:45 +01:00
v.muzhilov b54e0e13f6 fix UnicodeDecodeError: 'ascii' codec can't decode byte 0xd0 in position 10: ordinal not in range(128) on plugin_loaded (ST2) 2016-01-15 12:21:18 +03:00
Alan Hamlett 835c7db864 v6.0.3 2016-01-11 11:29:52 -08:00
Alan Hamlett 53e8bb04e9 upgrade wakatime-cli to v4.1.10 2016-01-11 11:27:56 -08:00
Alan Hamlett 4aa06e3829 v6.0.2 2016-01-06 13:59:56 -08:00
Alan Hamlett 297f65733f upgrade wakatime-cli core to v4.1.9 2016-01-06 13:57:03 -08:00
Alan Hamlett 5ba5e6d21b update plugin description 2016-01-03 17:47:56 -08:00
Alan Hamlett 32eadda81f v6.0.1 2016-01-01 23:09:08 -08:00
Alan Hamlett c537044801 log output from wakatime-cli when in debug mode 2016-01-01 23:06:03 -08:00
Alan Hamlett a97792c23c make sure python --version outputs a version number 2016-01-01 22:20:02 -08:00
Alan Hamlett 4223f3575f v6.0.0 2015-12-01 01:06:00 -08:00
Alan Hamlett 284cdf3ce4 update log messages for embedded python 2015-12-01 01:04:41 -08:00
Alan Hamlett 27afc41bf4 remove python zip file after extracting 2015-12-01 01:00:48 -08:00
Alan Hamlett 1fdda0d64a use embeddable python on Windows instead of installing python 2015-12-01 00:51:09 -08:00
Alan Hamlett c90a4863e9 v5.0.1 2015-10-06 04:04:15 -07:00
Alan Hamlett 94343e5b07 look for python in system PATH again 2015-10-06 03:59:04 -07:00
Alan Hamlett 03acea6e25 v5.0.0 2015-10-02 12:11:04 -07:00
Alan Hamlett 77594700bd switch registry warnings to debug log level 2015-10-02 12:09:37 -07:00
Alan Hamlett 6681409e98 v4.0.20 2015-10-01 15:20:34 -07:00
Alan Hamlett 8f7837269a correctly find python binary in non-Windows environments 2015-10-01 15:19:58 -07:00
Alan Hamlett a523b3aa4d v4.0.19 2015-10-01 15:15:15 -07:00
Alan Hamlett 6985ce32bb handle case where Sublime Text does not have winreg builtin module 2015-10-01 15:14:36 -07:00
Alan Hamlett 4be40c7720 v4.0.18 2015-10-01 15:08:35 -07:00
Alan Hamlett eeb7fd8219 find python binary location from windows registry 2015-10-01 15:07:55 -07:00
Alan Hamlett 11fbd2d2a6 v4.0.17 2015-10-01 12:42:04 -07:00
Alan Hamlett 3cecd0de5d improve C# and php dependency detection 2015-10-01 12:41:50 -07:00
Alan Hamlett c50100e675 download and install python in background thread to fix #53 2015-10-01 12:39:28 -07:00
Alan Hamlett c1da94bc18 better looking obfuscated api key 2015-10-01 11:24:13 -07:00
Alan Hamlett 7f9d6ede9d v4.0.16 2015-09-29 03:13:04 -07:00
Alan Hamlett 192a5c7aa7 upgrade wakatime cli to v4.1.8 2015-09-29 03:11:25 -07:00
Alan Hamlett 16bbe21be9 update project description 2015-09-26 11:51:19 -07:00
Alan Hamlett 5ebaf12a99 v4.0.15 2015-08-28 15:06:49 -07:00
Alan Hamlett 1834e8978a upgrade wakatime cli to v4.1.3 2015-08-28 15:05:55 -07:00
Alan Hamlett 22c8ed74bd v4.0.14 2015-08-25 11:20:45 -07:00
Alan Hamlett 12bbb4e561 upgrade wakatime cli to v4.1.2 2015-08-25 11:20:12 -07:00
Alan Hamlett c71cb21cc1 remove extra line 2015-08-25 00:52:40 -07:00
Alan Hamlett eb11b991f0 v4.0.13 2015-08-25 00:43:56 -07:00
Alan Hamlett 7ea51d09ba upgrade wakatime cli to v4.1.1 2015-08-25 00:42:37 -07:00
Alan Hamlett b07b59e0c8 v4.0.12 2015-07-31 15:34:36 -07:00
Alan Hamlett 9d715e95b7 correctly use urllib in python3 2015-07-31 15:34:24 -07:00
Alan Hamlett 3edaed53aa v4.0.11 2015-07-31 15:20:57 -07:00
Alan Hamlett 865b0bcee9 install python on Windows if not already installed 2015-07-31 15:19:56 -07:00
Alan Hamlett d440fe912c v4.0.10 2015-07-31 13:27:58 -07:00
Alan Hamlett 627455167f downgrade requests library to v2.6.0 2015-07-31 13:27:04 -07:00
Alan Hamlett aba89d3948 v4.0.9 2015-07-29 00:04:39 -07:00
Alan Hamlett 18d87118e1 catch exceptions from get_filetype_from_buffer 2015-07-29 00:03:18 -07:00
Alan Hamlett fd91b9e032 link to wakatime/wakatime#troubleshooting 2015-07-15 13:46:26 -07:00
Alan Hamlett 16b15773bf troubleshooting section in readme 2015-07-15 13:44:07 -07:00
Alan Hamlett f0b518862a upgrade wakatime cli to v4.1.0 2015-06-29 19:47:04 -07:00
Alan Hamlett 7ee7de70d5 v4.0.8 2015-06-23 18:17:25 -07:00
Alan Hamlett fb479f8e84 fix offline logging with wakatime cli v4.0.16 2015-06-23 18:15:38 -07:00
Alan Hamlett 7d37193f65 v4.0.7 2015-06-21 10:45:51 -07:00
Alan Hamlett 6bd62b95db allow customizing status bar message in sublime-settings file 2015-06-21 10:42:31 -07:00
Alan Hamlett abf4a94a59 upgrade wakatime cli to v4.0.15 2015-06-21 10:35:14 -07:00
Alan Hamlett 9337e3173b v4.0.6 2015-05-16 14:38:58 -07:00
Alan Hamlett 57fa4d4d84 upgrade wakatime cli to v4.0.13 2015-05-16 14:38:19 -07:00
Alan Hamlett 9b5c59e677 v4.0.5 2015-05-15 15:34:17 -07:00
Alan Hamlett 71ce25a326 upgrade wakatime cli to v4.0.12 2015-05-15 15:33:03 -07:00
Alan Hamlett f2f14207f5 use new --alternate-project argument so auto detected project will take priority 2015-05-15 15:32:03 -07:00
Alan Hamlett ac2ec0e73c v4.0.4 2015-05-12 15:04:39 -07:00
Alan Hamlett 040a76b93c upgrade wakatime cli to v4.0.11 2015-05-12 15:03:23 -07:00
Alan Hamlett dab0621b97 v4.0.3 2015-05-06 16:35:01 -07:00
Alan Hamlett 675f9ecd69 send cursorpos to wakatime cli 2015-05-06 16:34:15 -07:00
Alan Hamlett a6f92b9c74 upgrade wakatime cli to v4.0.10 2015-05-06 16:33:32 -07:00
Alan Hamlett bfcc242d7e upgrade wakatime cli to v4.0.9 2015-05-06 15:45:34 -07:00
Alan Hamlett 762027644f send current cursor line number to wakatime cli 2015-05-06 15:43:41 -07:00
Alan Hamlett 3c4ceb95fa separate active view logic into own function 2015-05-06 14:06:06 -07:00
Alan Hamlett d6d8bceca0 v4.0.2 2015-05-06 14:01:35 -07:00
Alan Hamlett acaad2dc83 only send heartbeats for the currently active buffer, for cases where another process modifies files which are open in sublime text 2015-05-06 14:00:33 -07:00
Alan Hamlett 23c5801080 v4.0.1 2015-05-06 12:30:36 -07:00
Alan Hamlett 05a3bfbb53 include package and lineno in log outout 2015-05-06 12:30:26 -07:00
Alan Hamlett 8faaa3b0e3 send all last_heartbeat data to enough_time_passed function 2015-05-06 12:27:39 -07:00
Alan Hamlett 4bcddf2a98 use heartbeat name instead of action 2015-05-06 12:25:52 -07:00
Alan Hamlett b51ae5c2c4 don't send two write heartbeats within 2 seconds of eachother 2015-05-06 12:22:42 -07:00
Alan Hamlett 5cd0061653 ignore git temporary files 2015-05-06 09:21:12 -07:00
Alan Hamlett 651c84325e v4.0.0 2015-04-12 16:46:30 -07:00
Alan Hamlett 89368529cb listen for selection modified instead of buffer activated 2015-04-12 16:45:16 -07:00
Alan Hamlett f1f408284b improve install instructions 2015-04-09 19:08:29 -07:00
Alan Hamlett 7053932731 v3.0.19 2015-04-07 14:21:25 -07:00
Alan Hamlett b6c4956521 don't call os.path.basename when folder was not found 2015-04-07 14:20:21 -07:00
Alan Hamlett 68a2557884 v3.0.18 2015-04-04 11:05:35 -07:00
Alan Hamlett c7ee7258fb upgrade wakatime cli to v4.0.8 2015-04-04 11:03:55 -07:00
Alan Hamlett aaff2503fb v3.0.17 2015-04-02 16:42:50 -07:00
Alan Hamlett 00a1193bd3 use open folder as current project when not using revision control 2015-04-02 16:41:55 -07:00
Alan Hamlett 2371daac1b v3.0.16 2015-04-02 15:05:06 -07:00
Alan Hamlett 4395db2b2d copy list so we don't obfuscate api key in original list 2015-04-02 15:04:05 -07:00
Alan Hamlett fc8c61fa3f v3.0.15 2015-04-01 13:02:00 -07:00
Alan Hamlett aa30110343 obfuscate api key when logging to ST console 2015-04-01 13:01:10 -07:00
Alan Hamlett b671856341 v3.0.14 2015-03-31 16:21:05 -07:00
Alan Hamlett b801759cdf always use external python binary because sublime text bundled binary does not fully support SSL with requests package 2015-03-31 16:19:30 -07:00
Alan Hamlett 919064200b update wakatime cli to v4.0.6 2015-03-31 15:44:48 -07:00
Alan Hamlett 911b5656d7 prevent exception when view.window() is None 2015-03-25 11:08:27 -07:00
Alan Hamlett 48bbab33b4 v3.0.13 2015-03-24 10:05:23 -07:00
Alan Hamlett 3b2aafe004 check built-in SSL more effectively 2015-03-24 10:00:53 -07:00
Alan Hamlett aa0b2d6d70 v3.0.12 2015-03-23 15:06:27 -07:00
Alan Hamlett 1a6f588d94 always use unicode function from compat module when encoding log messages 2015-03-23 15:05:37 -07:00
Alan Hamlett 373ebf933f v3.0.11 2015-03-23 14:01:40 -07:00
Alan Hamlett 7fb47228f9 update simplejson to v3.6.5 2015-03-23 14:00:40 -07:00
Alan Hamlett 4fca5e1c06 v3.0.10 2015-03-22 17:14:20 -07:00
Alan Hamlett cb2d126c47 ability to disable status bar message 2015-03-22 17:13:32 -07:00
Alan Hamlett 17404bf848 v3.0.9 2015-03-20 01:16:34 -07:00
Alan Hamlett 510eea0a8b status message showing when WakaTime is enabled 2015-03-20 01:14:53 -07:00
Alan Hamlett d16d1ca747 v3.0.8 2015-03-09 15:25:40 -07:00
Alan Hamlett 440e33b8b7 upgrade wakatime cli to v4.0.4 2015-03-09 15:23:29 -07:00
Alan Hamlett 307029c37a detect python binary by executing interpreter 2015-03-09 14:32:27 -07:00
Alan Hamlett 60c8ea4454 camelcase 2015-02-23 22:31:12 -08:00
Alan Hamlett e4fe604a93 move import to top of file. remove unused imports. 2015-02-23 22:20:27 -08:00
Alan Hamlett 308187b2ed Merge pull request #31 from freewizard/master
add "Wakatime: Open Dashboard" into command palette
2015-02-23 22:16:39 -08:00
Du Song 97f4077675 add "Wakatime: Open Dashboard" into command palette 2015-02-23 17:59:10 -05:00
Alan Hamlett 4960289ed1 v3.0.7 2015-02-05 17:42:19 -08:00
Alan Hamlett 82530cef4f handle errors from reading project directory while looking for .sublime-project file 2015-02-05 17:40:45 -08:00
Alan Hamlett 08172098e2 v3.0.6 2015-01-13 14:07:23 -08:00
Alan Hamlett 56f54fb064 upgrade wakatime-cli to v3.0.5 2015-01-13 14:06:19 -08:00
Alan Hamlett 1bea7cde8c update name of Package Control 2015-01-06 14:07:55 -08:00
Alan Hamlett 038847e665 v3.0.5 2015-01-06 11:38:26 -08:00
Alan Hamlett d233494a39 upgrade wakatime-cli to v3.0.4 2015-01-06 11:37:09 -08:00
Alan Hamlett 070ad5a023 use new sublime package control domain 2015-01-04 15:31:42 -08:00
Alan Hamlett 757a4c6905 v3.0.4 2014-12-26 18:21:13 -06:00
Alan Hamlett dd61a4f5f4 fix reading config file in python2 2014-12-26 18:18:52 -06:00
Alan Hamlett 69f9bbdc78 v3.0.3 2014-12-25 13:37:22 -06:00
Alan Hamlett e1dc4039fd update wakatime-cli to v3.0.3 2014-12-25 13:36:47 -06:00
Alan Hamlett 7c07925527 v3.0.2 2014-12-25 01:05:12 -06:00
Alan Hamlett ee8c0dfed8 upgrade wakatime-cli to v3.0.2 2014-12-25 01:04:39 -06:00
Alan Hamlett ad4df93b04 create .wakatime.cfg INI file if it does not already exist 2014-12-24 12:01:56 -06:00
Alan Hamlett 9a600df969 v3.0.1 2014-12-23 12:43:11 -06:00
Alan Hamlett a0abeac3e2 parse use namespaces from php files 2014-12-23 12:42:19 -06:00
Alan Hamlett 12b8c36c5f v3.0.0 2014-12-23 05:41:18 -06:00
Alan Hamlett 7d4d50ee62 upgrade wakatime-cli to v3.0.1 2014-12-23 05:39:07 -06:00
Alan Hamlett 520db283cb v2.1.21 2014-12-22 01:02:08 -06:00
Alan Hamlett f3179b75d9 upgrade wakatime-cli to v2.1.11 2014-12-22 01:01:09 -06:00
Alan Hamlett 1bc8b9b9c7 add authors file and update license 2014-12-21 19:50:32 -06:00
Alan Hamlett 584d109357 v2.0.20 2014-12-05 02:40:54 -08:00
Alan Hamlett 327c0e448b upgrade external wakatime-cli to v2.1.9 2014-12-05 02:40:07 -08:00
Alan Hamlett 3182a45bbd v2.0.19 2014-12-04 11:46:16 -08:00
Alan Hamlett 4cd4a26f91 upgrade waktime-cli to v2.1.8 to fix #17 unicode decode error when building user agent string 2014-12-04 11:45:18 -08:00
Alan Hamlett 85856f2c53 v2.0.18 2014-11-30 22:22:39 -08:00
Alan Hamlett 8a09559364 upgrade wakatime package to v2.1.7 2014-11-30 22:21:46 -08:00
Alan Hamlett 5e2e1be779 v2.0.17 2014-11-18 16:00:59 -08:00
Alan Hamlett b1d344cb46 upgrade wakatime package to v2.1.6 to fix list index error when detecting subversion project. fixes #28. 2014-11-18 16:00:10 -08:00
Alan Hamlett 7245cbeb58 v2.0.16 2014-11-12 20:11:51 -08:00
Alan Hamlett 21395579ea update wakatime-cli to v2.1.4
when Python was not compiled with https support, log an error to the log file
2014-11-12 19:58:54 -08:00
Alan Hamlett 08b64b4ff6 update history 2014-11-10 12:30:26 -08:00
Alan Hamlett 20571ec085 v2.0.15 2014-11-10 12:29:45 -08:00
Alan Hamlett e43dcc1c83 fix #25 by using remote directory as branch for subversion projects 2014-11-10 12:29:14 -08:00
Alan Hamlett 4610ff3e0c update screen shot to new dashboard 2014-11-06 01:48:52 -08:00
Alan Hamlett c86d6254e0 improve install instructions 2014-11-06 01:47:42 -08:00
Alan Hamlett df331db5cc link to api key page with popover 2014-11-06 01:42:53 -08:00
Alan Hamlett baff0f415d Merge pull request #27 from patschi/patch-1
Corrected URL to api key
2014-11-06 01:42:01 -08:00
Patrik Kernstock 499dc167a5 Corrected URL to api key 2014-11-06 10:18:41 +01:00
Alan Hamlett 83f4a29a15 v2.0.14 2014-10-14 11:03:41 -07:00
Alan Hamlett 8f02adacf9 popup error message if Python not found 2014-10-14 11:02:52 -07:00
Alan Hamlett e631d33944 v2.0.13 2014-10-07 04:47:16 -07:00
Alan Hamlett cbd92a69b3 upgrade external wakatime package to v2.1.2 2014-10-07 04:46:19 -07:00
Alan Hamlett b7c047102d v2.0.12 2014-09-30 10:17:52 -07:00
Alan Hamlett d0bfd04602 upgrade external wakatime package to v2.1.1 2014-09-30 10:17:18 -07:00
Alan Hamlett 101ab38c70 v2.0.11 2014-09-30 09:28:34 -07:00
Alan Hamlett 8632c4ff08 upgrade wakatime package to v2.1.0 2014-09-30 09:27:35 -07:00
Alan Hamlett 80556d0cbf update screenshot 2014-09-15 16:30:19 -07:00
Alan Hamlett 253728545c v2.0.10 2014-08-29 12:50:55 -07:00
Alan Hamlett 49d9b1d7dc upgrade external wakatime package to v2.0.8 2014-08-29 12:49:51 -07:00
Alan Hamlett 8574abe012 v2.0.9 2014-08-27 03:32:35 -07:00
Alan Hamlett 6b6f60d8e8 upgrade wakatime-cli to v2.0.7 to fix #25 2014-08-27 03:31:14 -07:00
Alan Hamlett 986e592d1e v2.0.8 2014-08-07 08:30:44 -07:00
Alan Hamlett 6ec3b171e1 v2.0.7 2014-07-25 02:36:42 -07:00
Alan Hamlett bcfb9862af upgrade wakatime package to v2.0.5 2014-07-25 02:32:01 -07:00
Alan Hamlett 85cf9f4eb5 v2.0.6 2014-07-25 01:02:27 -07:00
Alan Hamlett d2a996e845 upgrade wakatime package to v2.0.4 to prevent logging namespace conflicts 2014-07-25 01:01:39 -07:00
Alan Hamlett c863bde54a v2.0.5 2014-06-18 10:35:59 -07:00
Alan Hamlett e19f85f081 use sublime project from sublime-project file when no revision control project found 2014-06-18 10:10:28 -07:00
Alan Hamlett 7b854d4041 update history file 2014-06-11 15:07:59 -05:00
Alan Hamlett e122f73e6b v2.0.4 2014-06-09 15:18:44 -05:00
Alan Hamlett 474942eb6a upgrade wakatime package to v2.0.2 2014-06-09 15:18:30 -05:00
Alan Hamlett a5f031b046 always log error when action not sent to api 2014-05-26 17:17:45 -07:00
Alan Hamlett 66fddc07b9 v2.0.3 2014-05-26 15:03:24 -07:00
Alan Hamlett e56a07e909 update wakatime package to v2.0.1 2014-05-26 15:01:32 -07:00
Alan Hamlett 64ea40b3f5 v2.0.2 2014-05-26 14:07:29 -07:00
Alan Hamlett 17fd6ef8e1 disable queue until bug fixed 2014-05-26 14:06:36 -07:00
Alan Hamlett e5e399dfbe v2.0.1 2014-05-25 17:30:26 -07:00
Alan Hamlett bcf037e8a4 v2.0.0 2014-05-25 17:29:47 -07:00
Alan Hamlett 7e678a38bd bump version of wakatime package to 2.0.0 2014-05-25 17:27:52 -07:00
Alan Hamlett 533aaac313 change www.wakatime.com to wakatime.com 2014-03-14 13:36:20 -07:00
Alan Hamlett 7f4f70cc85 add bsd license 2014-03-12 17:03:14 -07:00
Alan Hamlett 4adb8a8796 v1.6.5 2014-03-05 13:55:08 -08:00
Alan Hamlett 48e1993b24 upgrade external wakatime package to v1.0.1 2014-03-05 13:51:29 -08:00
Alan Hamlett 8a3375bb23 v1.6.4 2014-02-05 01:03:05 -08:00
Alan Hamlett 8bd54a7427 upgrade wakatime package to v1.0.0 for mercurial support 2014-02-05 01:01:47 -08:00
Alan Hamlett fcbbf05933 v1.6.3 2014-01-15 16:46:32 -08:00
Alan Hamlett 9733087094 upgrade wakatime package to v0.5.3 2014-01-15 16:45:07 -08:00
Alan Hamlett da4e02199a v1.6.2 2014-01-14 05:14:25 -08:00
Alan Hamlett 09a16dea1e upgrade wakatime package to v0.5.2 2014-01-14 05:11:00 -08:00
Alan Hamlett 4c7adf0943 v1.6.1 2013-12-13 16:38:52 +01:00
Alan Hamlett 216a8eaa0a upgrade common wakatime package to v0.5.1 2013-12-13 16:37:54 +01:00
Alan Hamlett 81f838489d v1.6.0 2013-12-13 16:11:46 +01:00
Alan Hamlett d6228b8dce use [WakaTime] namespace for all console messages 2013-12-13 16:08:34 +01:00
Alan Hamlett 7a2c2b9750 fix variable definition bug 2013-12-13 15:41:45 +01:00
Alan Hamlett d9cc911595 upgrade common wakatime package to v0.5.0 2013-12-13 15:35:49 +01:00
Alan Hamlett 805e2fe222 v1.5.2 2013-12-03 02:41:54 +01:00
Alan Hamlett bbcb39b2cf fix #18 by using a non-localized datetime in log 2013-12-03 02:38:30 +01:00
Alan Hamlett 9f9b97c69f v1.5.1 2013-12-02 09:17:35 +01:00
Alan Hamlett 908ff98613 decode file names with filesystem encoding, then encode as utf-8 before encoding with simplejson 2013-12-02 09:16:21 +01:00
Alan Hamlett 37f74b4b56 v1.5.0 2013-11-28 12:18:44 +01:00
Alan Hamlett a1c0d7e489 prevent sending timestamp when saving same file multiple times. increase send frequency from 5 minutes to 2 minutes. 2013-11-28 12:16:43 +01:00
Alan Hamlett 3127f264b4 v1.4.12 2013-11-21 01:11:40 -08:00
Alan Hamlett 049bc57019 fix #17 by removing non-utf8 characters 2013-11-21 01:09:37 -08:00
Alan Hamlett 03ec38bb67 v1.4.11 2013-11-13 18:07:41 -08:00
Alan Hamlett 4fc1a55ff7 set project name with .wakatime-project file. upgrade wakatime package to 0.4.10. 2013-11-13 18:06:55 -08:00
Alan Hamlett f60815b813 upgrade wakatime package to recognize .markdown file extension 2013-11-03 11:36:43 -08:00
Alan Hamlett ca47c2308d v1.4.10 2013-10-31 17:20:12 -07:00
Alan Hamlett 146a959747 recognize jinja2 file extensions as HTML 2013-10-31 17:19:17 -07:00
Alan Hamlett 906184cd88 v1.4.9 2013-10-28 18:12:12 -07:00
Alan Hamlett a13e11d24d handle case where ignore patterns not defined 2013-10-28 18:09:51 -07:00
Alan Hamlett d34432217f v1.4.8 2013-10-27 21:31:34 -07:00
Alan Hamlett f2e8f85198 fix syntax in default sublime-settings file 2013-10-27 21:31:15 -07:00
Alan Hamlett 05b08b6ab2 new sublime-setting ingore for ignoring files by regular expressions 2013-10-27 21:30:10 -07:00
Alan Hamlett 685d242c60 upgrade wakatime package to v0.4.9. adds new ignore config to .wakatime.conf to ignore files based on regex patterns. 2013-10-27 21:07:42 -07:00
Alan Hamlett 023c1dfbe3 v1.4.7 2013-10-26 19:12:29 -07:00
Alan Hamlett 9255fd2c34 update language lexer translations 2013-10-26 17:59:41 -07:00
Alan Hamlett 784ad38c38 update readme 2013-10-26 17:52:39 -07:00
Alan Hamlett 36def5c8b8 update screen shot in readme 2013-10-26 17:50:38 -07:00
Alan Hamlett 2c8dd6c9e7 v1.4.6 2013-10-25 21:35:00 -07:00
Alan Hamlett e8151535c1 update history file 2013-10-25 21:34:47 -07:00
Alan Hamlett 744116079a upgrade wakatime package 2013-10-25 21:33:31 -07:00
Alan Hamlett 791a969a10 Update screen shots in readme 2013-10-14 22:04:12 -07:00
Alan Hamlett 46c5171d6a v1.4.5 2013-10-14 21:52:53 -07:00
Alan Hamlett fe641d01d4 remove support for subversion on Windows to prevent cmd windows from opening 2013-10-14 21:51:35 -07:00
Alan Hamlett 4f03423333 v1.4.4 2013-10-13 16:38:08 -07:00
Alan Hamlett e812e9fe15 upgrade wakatime package to v0.4.8 2013-10-13 16:33:53 -07:00
Alan Hamlett a92ebad2f2 display error message when python binary not found 2013-10-13 08:26:31 -07:00
Alan Hamlett 78a7e5cbcb only use pythonw.exe on Windows platform and display error in Sublime Console instead of using python.exe 2013-10-12 21:52:40 -07:00
Alan Hamlett 5616206b48 added history file 2013-10-01 08:39:21 -07:00
Alan Hamlett 165543d867 removed print 2013-09-30 22:03:18 -07:00
Alan Hamlett e933f71bcd v1.4.3 2013-09-30 21:58:11 -07:00
Alan Hamlett 8c6cb8dc9c upgraded wakatime package to v0.4.7 2013-09-30 21:57:30 -07:00
Alan Hamlett 3e74625963 v1.4.2 2013-09-30 07:04:35 -07:00
Alan Hamlett a19e635ba3 print response code in Sublime Console if api request failed 2013-09-30 07:04:24 -07:00
Alan Hamlett 6436cf6b62 v1.4.1 2013-09-30 06:58:33 -07:00
Alan Hamlett e1e8861a6e better check for SSL support using socket.ssl 2013-09-30 06:58:12 -07:00
Alan Hamlett 097027a3d4 v1.4.0 2013-09-22 16:31:39 -07:00
Alan Hamlett 37192c6333 upgraded wakatime package 2013-09-22 16:31:12 -07:00
Alan Hamlett 57f4ca069b upgraded wakatime package 2013-09-22 16:19:07 -07:00
Alan Hamlett bf6a6f7310 import wakatime package outside try block 2013-09-22 16:15:43 -07:00
Alan Hamlett fce10cea07 upgraded wakatime package 2013-09-22 16:11:31 -07:00
Alan Hamlett b836f26226 upgraded wakatime package 2013-09-22 15:24:50 -07:00
Alan Hamlett c3e08623c1 upgraded wakatime package 2013-09-22 15:04:24 -07:00
Alan Hamlett af0dce46aa fixed pygments package to work with python3 using 2to3 2013-09-22 14:50:04 -07:00
Alan Hamlett be54a19207 fixed print statements in pygments for python3 2013-09-22 14:30:23 -07:00
Alan Hamlett ce8d9af149 correctly fixed pygments to work with Python3 2013-09-22 14:12:25 -07:00
Alan Hamlett 840d4e17f1 fixed pygments to work with Python3 2013-09-22 14:07:24 -07:00
Alan Hamlett 73ede90e69 upgraded wakatime package to v0.4.6 2013-09-22 13:51:23 -07:00
Alan Hamlett 65094ecf74 printing python binary in command to Sublime Console when in debug mode, unless has SSL support 2013-09-21 10:34:40 -07:00
Alan Hamlett 0b9fcbd96c v1.3.7 2013-09-07 19:09:05 -07:00
Alan Hamlett fa99486e7f upgraded wakatime package to v0.4.5 2013-09-07 19:08:48 -07:00
Alan Hamlett 37c76541df updated readme 2013-09-06 23:02:34 -07:00
Alan Hamlett 8c44c070d5 v1.3.6 2013-09-06 23:01:55 -07:00
Alan Hamlett adc3fec6d3 added simplejson from wakatime package 2013-09-06 23:01:02 -07:00
Alan Hamlett 23806c08be upgraded wakatime package to v0.4.4 correctly 2013-09-06 22:59:03 -07:00
Alan Hamlett 88c7f8d5c1 upgraded wakatime package to v0.4.4 2013-09-06 22:50:12 -07:00
Alan Hamlett 7b821179a6 v1.3.5 2013-09-05 07:39:51 -07:00
Alan Hamlett 3703a6374f sending sublime text version in user agent 2013-09-05 07:39:33 -07:00
Alan Hamlett b8e2b73620 v1.3.4 2013-09-04 23:25:03 -07:00
Alan Hamlett b0ddd7a6d4 using wakatime package v0.4.3 2013-09-04 23:24:44 -07:00
Alan Hamlett 0720f31c71 v1.3.3 2013-09-04 22:24:56 -07:00
Alan Hamlett f4b6f4c4ea using wakatime package v0.4.2 2013-09-04 22:24:28 -07:00
Alan Hamlett 5969830ef6 updated wakatime package 2013-08-25 16:56:13 -07:00
Alan Hamlett 7a2161b7dd v1.3.2 fix bug where LAST_FILE not correct value 2013-08-25 16:54:48 -07:00
Alan Hamlett 9b817bc11a upgraded wakatime package to 0.4.1 2013-08-25 16:19:48 -07:00
Alan Hamlett e417771dec v1.3.0 2013-08-15 00:14:50 -07:00
Alan Hamlett 969e5ba1bd upgraded wakatime package to v0.4.0 2013-08-15 00:14:26 -07:00
Alan Hamlett dda5da361c v1.2.1 fixed #14 2013-08-14 02:36:17 -07:00
Alan Hamlett 09c9252b9b fixed threading bug by not using set_timeout, which is blocking. 2013-08-14 01:49:08 -07:00
Alan Hamlett 601a9b9674 v1.2.0 2013-08-12 20:30:29 -07:00
Alan Hamlett 6e0b332885 using Popen as backup when ST2 doesn't have SSL support 2013-08-12 20:30:06 -07:00
Alan Hamlett 8d39fccabb v1.1.0 2013-08-12 10:55:15 -07:00
Alan Hamlett 11a5b58c9d never use subprocess, even if no SSL support 2013-08-12 10:54:35 -07:00
Alan Hamlett 45662cc96a v1.0.2. testing sublime package control versioning. 2013-08-09 21:16:01 -07:00
Alan Hamlett e13fe724c2 v1.0.1. Using tags instead of packages.json for Sublime Package Control revisions. 2013-08-09 14:17:53 -07:00
Alan Hamlett 5804002fe3 v0.4.2 2013-08-08 19:21:57 -07:00
Alan Hamlett 7860db12ae update wakatime package 2013-08-08 19:11:55 -07:00
Alan Hamlett ff8fe836ec New debug setting for verbose logging.
Upgraded wakatime package to v0.3.1.
Fixed bug on windows where wakatime package not correctly imported.
2013-08-08 18:52:45 -07:00
Alan Hamlett c9da7888ec updated heads up message about python requirement in readme 2013-08-08 03:13:19 -07:00
Alan Hamlett e371b6a739 removed prompt_after_away setting 2013-08-08 02:49:08 -07:00
Alan Hamlett 66ee4a81aa v0.4.1 2013-08-08 02:45:05 -07:00
Alan Hamlett fc865aa747 v0.4.0 2013-08-08 02:43:37 -07:00
Alan Hamlett 8a9b9d0c91 using subprocess when Sublime Text embedded python does not support SSL. 2013-08-08 02:41:29 -07:00
Alan Hamlett b89356b3e7 Upgraded wakatime package to v0.3.0.
Importing wakatime package directly without need for subprocess.
Using threading to prevent blocking Sublime Text.
2013-08-08 02:17:47 -07:00
26 changed files with 2483 additions and 3452 deletions

17
AUTHORS Normal file
View File

@ -0,0 +1,17 @@
WakaTime is written and maintained by Alan Hamlett and
various contributors:
Development Lead
----------------
- Alan Hamlett <alan.hamlett@gmail.com>
Patches and Suggestions
-----------------------
- Jimmy Selgen Nielsen <jimmy.selgen@gmail.com>
- Patrik Kernstock <info@pkern.at>
- Krishna Glick <krishnaglick@gmail.com>
- Carlos Henrique Gandarez <gandarez@gmail.com>

6
Default.sublime-commands Normal file
View File

@ -0,0 +1,6 @@
[
{
"caption": "WakaTime: Open Dashboard",
"command": "wakatime_dashboard"
}
]

1396
HISTORY.rst Normal file

File diff suppressed because it is too large Load Diff

View File

@ -1,5 +1,6 @@
Copyright (c) 2013 Alan Hamlett https://wakati.me
All rights reserved.
BSD 3-Clause License
Copyright (c) 2014 Alan Hamlett.
Redistribution and use in source and binary forms, with or without
modification, are permitted provided that the following conditions are met:
@ -12,7 +13,7 @@ modification, are permitted provided that the following conditions are met:
in the documentation and/or other materials provided
with the distribution.
* Neither the names of Wakatime or Wakati.Me, nor the names of its
* Neither the names of WakaTime, nor the names of its
contributors may be used to endorse or promote products derived
from this software without specific prior written permission.

View File

@ -6,24 +6,37 @@
"children":
[
{
"caption": "WakaTime",
"mnemonic": "W",
"id": "wakatime-settings",
"caption": "Package Settings",
"mnemonic": "P",
"id": "package-settings",
"children":
[
{
"command": "open_file", "args":
{
"file": "${packages}/WakaTime/WakaTime.sublime-settings"
},
"caption": "Settings Default"
},
{
"command": "open_file", "args":
{
"file": "${packages}/User/WakaTime.sublime-settings"
},
"caption": "Settings User"
"caption": "WakaTime",
"mnemonic": "W",
"id": "wakatime-settings",
"children":
[
{
"command": "open_file", "args":
{
"file": "${packages}/WakaTime/WakaTime.sublime-settings"
},
"caption": "Settings Default"
},
{
"command": "open_file", "args":
{
"file": "${packages}/User/WakaTime.sublime-settings"
},
"caption": "Settings User"
},
{
"command": "wakatime_dashboard",
"args": {},
"caption": "WakaTime Dashboard"
}
]
}
]
}

View File

@ -1,37 +1,52 @@
sublime-wakatime
================
# sublime-wakatime
automatic time tracking for Sublime Text 2 & 3
[![Coding time tracker](https://wakatime.com/badge/github/wakatime/sublime-wakatime.svg)](https://wakatime.com/badge/github/wakatime/sublime-wakatime)
Installation
------------
[WakaTime][wakatime] is an open source Sublime Text plugin for metrics, insights, and time tracking automatically generated from your programming activity.
Heads Up! WakaTime depends on [Python](http://www.python.org/getit/) being installed to work correctly.
## Installation
1. Get an api key from: https://wakati.me
1. Install [Package Control](https://packagecontrol.io/installation).
2. Using [Sublime Package Control](http://wbond.net/sublime_packages/package_control):
2. In Sublime, press `ctrl+shift+p`(Windows, Linux) or `cmd+shift+p`(OS X).
a) Press `ctrl+shift+p`(Windows, Linux) or `cmd+shift+p`(OS X).
3. Type `install`, then press `enter` with `Package Control: Install Package` selected.
b) Type `install`, then press `enter` with `Package Control: Install Package` selected.
4. Type `wakatime`, then press `enter` with the `WakaTime` plugin selected.
c) Type `wakatime`, then press `enter` with the `WakaTime` plugin selected.
5. Enter your [api key](https://wakatime.com/settings#apikey), then press `enter`.
3. You will see a prompt at the bottom asking for your [api key](https://www.wakati.me/#apikey). Enter your api key, then press `enter`.
6. Use Sublime and your coding activity will be displayed on your [WakaTime dashboard](https://wakatime.com).
4. Use Sublime and your time will automatically be tracked for you.
## Screen Shots
5. Visit https://wakati.me to see your logged time.
![Project Overview](https://wakatime.com/static/img/ScreenShots/Screen-Shot-2016-03-21.png)
6. Consider installing [BIND9](https://help.ubuntu.com/community/BIND9ServerHowto#Caching_Server_configuration) to cache your repeated DNS requests: `sudo apt-get install bind9`
## Unresponsive Plugin Warning
Screen Shots
------------
In Sublime Text 2, if you get a warning message:
![Project Overview](https://www.wakati.me/static/img/ScreenShots/Screenshot%20from%202013-06-26%2001:12:59.png)
A plugin (WakaTime) may be making Sublime Text unresponsive by taking too long (0.017332s) in its on_modified callback.
![Files in a Project](https://www.wakati.me/static/img/ScreenShots/Screenshot%20from%202013-06-26%2001:13:13.png)
To fix this, go to `Preferences → Settings - User` then add the following setting:
![Changing Date Range](https://www.wakati.me/static/img/ScreenShots/Screenshot%20from%202013-06-26%2001:13:53.png)
`"detect_slow_plugins": false`
## Troubleshooting
First, turn on debug mode in your `WakaTime.sublime-settings` file.
![sublime user settings](https://wakatime.com/static/img/ScreenShots/sublime-wakatime-settings-menu.png?v=3)
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.
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].
For more general troubleshooting info, see the [wakatime-cli Troubleshooting Section][wakatime-cli-help].
[wakatime]: https://wakatime.com/sublime-text
[wakatime-cli-help]: https://github.com/wakatime/wakatime#troubleshooting
[how to debug]: https://wakatime.com/faq#debug-plugins
[user agents api]: https://wakatime.com/developers#user_agents

File diff suppressed because it is too large Load Diff

View File

@ -1,11 +1,40 @@
{
// Prompt after being away.
// If true, will prompt user after 10 minutes of inactivity.
// If false, only logs actual activity inside Sublime.
// Defaults to false.
"prompt_after_away": false,
// WakaTime Default Settings
// Use this as a reference when editing your local User settings.
// This settings file will be overwritten when upgrading.
// Your api key from https://www.wakati.me/#apikey
{
// Your api key from https://wakatime.com/api-key
// Set this in your User specific WakaTime.sublime-settings file.
"api_key": ""
"api_key": "",
// Debug mode. Set to true for verbose logging. Defaults to false.
"debug": false,
// Proxy with format https://user:pass@host:port or socks5://user:pass@host:port or domain\\user:pass.
"proxy": "",
// Ignore files; Files (including absolute paths) that match one of these
// POSIX regular expressions will not be logged.
"ignore": ["^/tmp/", "^/etc/", "^/var/(?!www/).*", "COMMIT_EDITMSG$", "PULLREQ_EDITMSG$", "MERGE_MSG$", "TAG_EDITMSG$"],
// Include files; Files (including absolute paths) that match one of these
// POSIX regular expressions will bypass your ignore setting.
"include": [".*"],
// Status bar for surfacing errors and displaying today's coding time. Set
// to false to hide. Defaults to true.
"status_bar_enabled": true,
// Show today's coding activity in WakaTime status bar item.
// Defaults to true.
"status_bar_coding_activity": true,
// Obfuscate file paths when sending to API. Your dashboard will no longer display coding activity per file.
"hidefilenames": false,
// Python binary location. Uses python from your PATH by default.
"python_binary": "",
// Use standalone compiled Python wakatime-cli (Will not work on ARM Macs)
"standalone": false
}

View File

@ -1,20 +0,0 @@
{
"schema_version": "1.2",
"packages": [
{
"name": "WakaTime",
"description": "Automatic time tracking for Sublime Text 2 & 3",
"author": "wakati.me",
"homepage": "https://github.com/wakatime/sublime-wakatime",
"last_modified": "2013-08-06 23:02",
"platforms": {
"*": [
{
"version": "0.3.3",
"url": "https://codeload.github.com/wakatime/sublime-wakatime/zip/0.3.3"
}
]
}
}
]
}

View File

@ -1,35 +0,0 @@
*.py[cod]
# C extensions
*.so
# Packages
*.egg
*.egg-info
dist
build
eggs
parts
bin
var
sdist
develop-eggs
.installed.cfg
lib
lib64
# Installer logs
pip-log.txt
# Unit test / coverage reports
.coverage
.tox
nosetests.xml
# Translations
*.mo
# Mr Developer
.mr.developer.cfg
.project
.pydevproject

View File

@ -1,17 +0,0 @@
History
-------
0.1.1 (2013-07-07)
++++++++++++++++++
- Refactored
- Simplified action events schema
0.0.1 (2013-07-05)
++++++++++++++++++
- Birth

View File

@ -1,2 +0,0 @@
include README.rst LICENSE HISTORY.rst
recursive-include wakatime *.py

View File

@ -1,12 +0,0 @@
Wakati.Me
=========
Wakati.Me is a time tracking api for text editors. This is the command line
action event appender for the Wakati.Me api. You shouldn't need to directly
use this outside of a text editor plugin.
Installation
------------
https://www.wakati.me/help/plugins/installing-plugins

View File

@ -1,39 +0,0 @@
from setuptools import setup
from wakatime.__init__ import __version__ as VERSION
packages = [
'wakatime',
]
setup(
name='wakatime',
version=VERSION,
license='BSD 3 Clause',
description=' '.join([
'Action event appender for Wakati.Me, a time',
'tracking api for text editors.',
]),
long_description=open('README.rst').read(),
author='Alan Hamlett',
author_email='alan.hamlett@gmail.com',
url='https://github.com/wakatime/wakatime',
packages=packages,
package_dir={'wakatime': 'wakatime'},
include_package_data=True,
zip_safe=False,
platforms='any',
entry_points={
'console_scripts': ['wakatime = wakatime.__init__:main'],
},
classifiers=(
'Development Status :: 3 - Alpha',
'Environment :: Console',
'Intended Audience :: Developers',
'License :: OSI Approved :: BSD License',
'Natural Language :: English',
'Programming Language :: Python',
'Topic :: Text Editors',
),
)

View File

@ -1,21 +0,0 @@
#!/usr/bin/env python
# -*- coding: utf-8 -*-
"""
wakatime-cli
~~~~~~~~~~~~
Action event appender for Wakati.Me, auto time tracking for text editors.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
import os
import sys
sys.path.insert(0, os.path.abspath(__file__))
import wakatime
if __name__ == '__main__':
sys.exit(wakatime.main(sys.argv))

View File

@ -1,196 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime
~~~~~~~~
Action event appender for Wakati.Me, auto time tracking for text editors.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
from __future__ import print_function
__title__ = 'wakatime'
__version__ = '0.2.0'
__author__ = 'Alan Hamlett'
__license__ = 'BSD'
__copyright__ = 'Copyright 2013 Alan Hamlett'
import base64
import json
import logging
import os
import platform
import re
import sys
import time
import traceback
try:
from urllib2 import HTTPError, Request, urlopen
except ImportError:
from urllib.error import HTTPError
from urllib.request import Request, urlopen
from .log import setup_logging
from .project import find_project
try:
import argparse
except ImportError:
from .packages import argparse
log = logging.getLogger(__name__)
class FileAction(argparse.Action):
def __call__(self, parser, namespace, values, option_string=None):
values = os.path.realpath(values)
setattr(namespace, self.dest, values)
def parseArguments(argv):
parser = argparse.ArgumentParser(
description='Wakati.Me event api appender')
parser.add_argument('--file', dest='targetFile', metavar='file',
action=FileAction, required=True,
help='absolute path to file for current action')
parser.add_argument('--time', dest='timestamp', metavar='time',
type=float,
help='optional floating-point unix epoch timestamp; '+
'uses current time by default')
parser.add_argument('--endtime', dest='endtime',
help='optional end timestamp turning this action into '+
'a duration; if a non-duration action occurs within a '+
'duration, the duration is ignored')
parser.add_argument('--write', dest='isWrite',
action='store_true',
help='note action was triggered from writing to a file')
parser.add_argument('--plugin', dest='plugin',
help='optional text editor plugin name and version '+
'for User-Agent header')
parser.add_argument('--key', dest='key',
help='your wakati.me api key; uses api_key from '+
'~/.wakatime.conf by default')
parser.add_argument('--logfile', dest='logfile',
help='defaults to ~/.wakatime.log')
parser.add_argument('--config', dest='config',
help='defaults to ~/.wakatime.conf')
parser.add_argument('--verbose', dest='verbose', action='store_true',
help='turns on debug messages in log file')
parser.add_argument('--version', action='version', version=__version__)
args = parser.parse_args(args=argv[1:])
if not args.timestamp:
args.timestamp = time.time()
if not args.key:
default_key = get_api_key(args.config)
if default_key:
args.key = default_key
else:
parser.error('Missing api key')
return args
def get_api_key(configFile):
if not configFile:
configFile = os.path.join(os.path.expanduser('~'), '.wakatime.conf')
api_key = None
try:
cf = open(configFile)
for line in cf:
line = line.split('=', 1)
if line[0] == 'api_key':
api_key = line[1].strip()
cf.close()
except IOError:
print('Error: Could not read from config file.')
return api_key
def get_user_agent(plugin):
ver = sys.version_info
python_version = '%d.%d.%d.%s.%d' % (ver[0], ver[1], ver[2], ver[3], ver[4])
user_agent = 'wakatime/%s (%s) Python%s' % (__version__,
platform.platform(), python_version)
if plugin:
user_agent = user_agent+' '+plugin
return user_agent
def send_action(project=None, tags=None, key=None, targetFile=None,
timestamp=None, endtime=None, isWrite=None, plugin=None, **kwargs):
url = 'https://www.wakati.me/api/v1/actions'
log.debug('Sending action to api at %s' % url)
data = {
'time': timestamp,
'file': targetFile,
}
if endtime:
data['endtime'] = endtime
if isWrite:
data['is_write'] = isWrite
if project:
data['project'] = project
if tags:
data['tags'] = list(set(tags))
log.debug(data)
request = Request(url=url, data=str.encode(json.dumps(data)))
user_agent = get_user_agent(plugin)
request.add_header('User-Agent', user_agent)
request.add_header('Content-Type', 'application/json')
auth = 'Basic %s' % bytes.decode(base64.b64encode(str.encode(key)))
request.add_header('Authorization', auth)
response = None
try:
response = urlopen(request)
except HTTPError as exc:
data = {
'response_code': exc.getcode(),
'response_content': exc.read(),
sys.exc_info()[0].__name__: str(sys.exc_info()[1]),
}
if log.isEnabledFor(logging.DEBUG):
data['traceback'] = traceback.format_exc()
log.error(data)
except:
data = {
sys.exc_info()[0].__name__: str(sys.exc_info()[1]),
}
if log.isEnabledFor(logging.DEBUG):
data['traceback'] = traceback.format_exc()
log.error(data)
else:
if response.getcode() >= 200 and response.getcode() < 300:
log.debug({
'response_code': response.getcode(),
'response_content': response.read(),
})
return True
log.error({
'response_code': response.getcode(),
'response_content': response.read(),
})
return False
def main(argv=None):
if not argv:
argv = sys.argv
args = parseArguments(argv)
setup_logging(args, __version__)
if os.path.isfile(args.targetFile):
tags = []
name = None
project = find_project(args.targetFile)
if project:
tags = project.tags()
name = project.name()
if send_action(project=name, tags=tags, **vars(args)):
return 0
return 102
else:
log.debug('File does not exist; ignoring this action.')
return 101

View File

@ -1,86 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.log
~~~~~~~~~~~~
Provides the configured logger for writing JSON to the log file.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import json
import logging
import os
try:
from collections import OrderedDict
except ImportError:
from .packages.ordereddict import OrderedDict
class CustomEncoder(json.JSONEncoder):
def default(self, obj):
if isinstance(obj, bytes):
obj = bytes.decode(obj)
return json.dumps(obj)
return super(CustomEncoder, self).default(obj)
class JsonFormatter(logging.Formatter):
def setup(self, timestamp, endtime, isWrite, targetFile, version, plugin):
self.timestamp = timestamp
self.endtime = endtime
self.isWrite = isWrite
self.targetFile = targetFile
self.version = version
self.plugin = plugin
def format(self, record):
data = OrderedDict([
('now', self.formatTime(record, self.datefmt)),
('version', self.version),
('plugin', self.plugin),
('time', self.timestamp),
('endtime', self.endtime),
('isWrite', self.isWrite),
('file', self.targetFile),
('level', record.levelname),
('message', record.msg),
])
if not self.endtime:
del data['endtime']
if not self.plugin:
del data['plugin']
if not self.isWrite:
del data['isWrite']
return CustomEncoder().encode(data)
def formatException(self, exc_info):
return exec_info[2].format_exc()
def setup_logging(args, version):
logfile = args.logfile
if not logfile:
logfile = '~/.wakatime.log'
handler = logging.FileHandler(os.path.expanduser(logfile))
formatter = JsonFormatter(datefmt='%a %b %d %H:%M:%S %Z %Y')
formatter.setup(
timestamp=args.timestamp,
endtime=args.endtime,
isWrite=args.isWrite,
targetFile=args.targetFile,
version=version,
plugin=args.plugin,
)
handler.setFormatter(formatter)
logger = logging.getLogger()
logger.addHandler(handler)
level = logging.INFO
if args.verbose:
level = logging.DEBUG
logger.setLevel(level)
return logger

File diff suppressed because it is too large Load Diff

View File

@ -1,127 +0,0 @@
# Copyright (c) 2009 Raymond Hettinger
#
# Permission is hereby granted, free of charge, to any person
# obtaining a copy of this software and associated documentation files
# (the "Software"), to deal in the Software without restriction,
# including without limitation the rights to use, copy, modify, merge,
# publish, distribute, sublicense, and/or sell copies of the Software,
# and to permit persons to whom the Software is furnished to do so,
# subject to the following conditions:
#
# The above copyright notice and this permission notice shall be
# included in all copies or substantial portions of the Software.
#
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
# EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
# OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
# NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
# HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
# WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
# FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
# OTHER DEALINGS IN THE SOFTWARE.
from UserDict import DictMixin
class OrderedDict(dict, DictMixin):
def __init__(self, *args, **kwds):
if len(args) > 1:
raise TypeError('expected at most 1 arguments, got %d' % len(args))
try:
self.__end
except AttributeError:
self.clear()
self.update(*args, **kwds)
def clear(self):
self.__end = end = []
end += [None, end, end] # sentinel node for doubly linked list
self.__map = {} # key --> [key, prev, next]
dict.clear(self)
def __setitem__(self, key, value):
if key not in self:
end = self.__end
curr = end[1]
curr[2] = end[1] = self.__map[key] = [key, curr, end]
dict.__setitem__(self, key, value)
def __delitem__(self, key):
dict.__delitem__(self, key)
key, prev, next = self.__map.pop(key)
prev[2] = next
next[1] = prev
def __iter__(self):
end = self.__end
curr = end[2]
while curr is not end:
yield curr[0]
curr = curr[2]
def __reversed__(self):
end = self.__end
curr = end[1]
while curr is not end:
yield curr[0]
curr = curr[1]
def popitem(self, last=True):
if not self:
raise KeyError('dictionary is empty')
if last:
key = reversed(self).next()
else:
key = iter(self).next()
value = self.pop(key)
return key, value
def __reduce__(self):
items = [[k, self[k]] for k in self]
tmp = self.__map, self.__end
del self.__map, self.__end
inst_dict = vars(self).copy()
self.__map, self.__end = tmp
if inst_dict:
return (self.__class__, (items,), inst_dict)
return self.__class__, (items,)
def keys(self):
return list(self)
setdefault = DictMixin.setdefault
update = DictMixin.update
pop = DictMixin.pop
values = DictMixin.values
items = DictMixin.items
iterkeys = DictMixin.iterkeys
itervalues = DictMixin.itervalues
iteritems = DictMixin.iteritems
def __repr__(self):
if not self:
return '%s()' % (self.__class__.__name__,)
return '%s(%r)' % (self.__class__.__name__, self.items())
def copy(self):
return self.__class__(self)
@classmethod
def fromkeys(cls, iterable, value=None):
d = cls()
for key in iterable:
d[key] = value
return d
def __eq__(self, other):
if isinstance(other, OrderedDict):
if len(self) != len(other):
return False
for p, q in zip(self.items(), other.items()):
if p != q:
return False
return True
return dict.__eq__(self, other)
def __ne__(self, other):
return not self == other

View File

@ -1,34 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.project
~~~~~~~~~~~~~~~~
Returns a project for the given file.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
from .projects.git import Git
from .projects.mercurial import Mercurial
from .projects.subversion import Subversion
log = logging.getLogger(__name__)
PLUGINS = [
Git,
Mercurial,
Subversion,
]
def find_project(path):
for plugin in PLUGINS:
project = plugin(path)
if project.process():
return project
return None

View File

@ -1,54 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.projects.base
~~~~~~~~~~~~~~~~~~~~~~
Base project for use when no other project can be found.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
log = logging.getLogger(__name__)
class BaseProject(object):
""" Parent project class only
used when no valid project can
be found for the current path.
"""
def __init__(self, path):
self.path = path
def type(self):
""" Returns None if this is the base class.
Returns the type of project if this is a
valid project.
"""
type = self.__class__.__name__.lower()
if type == 'baseproject':
type = None
return type
def process(self):
""" Processes self.path into a project and
returns True if project is valid, otherwise
returns False.
"""
return False
def name(self):
""" Returns the project's name.
"""
return None
def tags(self):
""" Returns an array of tag strings for the
path and/or project.
"""
return []

View File

@ -1,119 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.projects.git
~~~~~~~~~~~~~~~~~~~~~
Information about the git project for a given file.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
from subprocess import Popen, PIPE
from .base import BaseProject
try:
from collections import OrderedDict
except ImportError:
from ..packages.ordereddict import OrderedDict
log = logging.getLogger(__name__)
class Git(BaseProject):
def process(self):
self.config = self._find_config(self.path)
if self.config:
return True
return False
def name(self):
base = self._project_base()
if base:
return os.path.basename(base)
return None
def tags(self):
tags = []
if self.config:
proj_name = self.name()
if proj_name:
tags.append(proj_name)
sections = self._parse_config()
for section in sections:
if section.split(' ', 1)[0] == 'remote' and 'url' in sections[section]:
remote = sections[section]['url'].rsplit(':', 1)[-1].rsplit('/', 1)[-1].split('.git', 1)[0]
if remote:
tags.append(remote)
branch = self._current_branch()
if branch is not None:
tags.append(branch)
return tags
def _project_base(self):
if self.config:
return os.path.dirname(os.path.dirname(self.config))
return None
def _current_branch(self):
stdout = None
try:
stdout, stderr = Popen([
'git', 'branch', '--no-color'
], stdout=PIPE, stderr=PIPE, cwd=self._project_base()
).communicate()
except OSError:
pass
if stdout:
for line in stdout.splitlines():
if isinstance(line, bytes):
line = bytes.decode(line)
line = line.split(' ', 1)
if line[0] == '*':
return line[1]
return None
def _find_config(self, path):
path = os.path.realpath(path)
if os.path.isfile(path):
path = os.path.split(path)[0]
if os.path.isfile(os.path.join(path, '.git', 'config')):
return os.path.join(path, '.git', 'config')
split_path = os.path.split(path)
if split_path[1] == '':
return None
return self._find_config(split_path[0])
def _parse_config(self):
sections = {}
try:
f = open(self.config, 'r')
except IOError as e:
log.exception("Exception:")
else:
with f:
section = None
for line in f.readlines():
line = line.lstrip()
if len(line) > 0 and line[0] == '[':
section = line[1:].split(']', 1)[0]
temp = section.split(' ', 1)
section = temp[0].lower()
if len(temp) > 1:
section = ' '.join([section, temp[1]])
sections[section] = {}
else:
try:
(setting, value) = line.split('=', 1)
except ValueError:
setting = line.split('#', 1)[0].split(';', 1)[0]
value = 'true'
setting = setting.strip().lower()
value = value.split('#', 1)[0].split(';', 1)[0].strip()
sections[section][setting] = value
f.close()
return sections

View File

@ -1,30 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.projects.mercurial
~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information about the mercurial project for a given file.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
from .base import BaseProject
log = logging.getLogger(__name__)
class Mercurial(BaseProject):
def process(self):
return False
def name(self):
return None
def tags(self):
return []

View File

@ -1,79 +0,0 @@
# -*- coding: utf-8 -*-
"""
wakatime.projects.subversion
~~~~~~~~~~~~~~~~~~~~~~~~~~~~
Information about the svn project for a given file.
:copyright: (c) 2013 Alan Hamlett.
:license: BSD, see LICENSE for more details.
"""
import logging
import os
from subprocess import Popen, PIPE
from .base import BaseProject
try:
from collections import OrderedDict
except ImportError:
from ..packages.ordereddict import OrderedDict
log = logging.getLogger(__name__)
class Subversion(BaseProject):
def process(self):
return self._find_project_base(self.path)
def name(self):
return self.info['Repository Root'].split('/')[-1]
def tags(self):
tags = []
if self.base:
tags.append(os.path.basename(self.base))
return tags
def _get_info(self, path):
info = OrderedDict()
stdout = None
try:
stdout, stderr = Popen([
'svn', 'info', os.path.realpath(path)
], stdout=PIPE, stderr=PIPE).communicate()
except OSError:
pass
else:
if stdout:
interesting = [
'Repository Root',
'Repository UUID',
'URL',
]
for line in stdout.splitlines():
if isinstance(line, bytes):
line = bytes.decode(line)
line = line.split(': ', 1)
if line[0] in interesting:
info[line[0]] = line[1]
return info
def _find_project_base(self, path, found=False):
path = os.path.realpath(path)
if os.path.isfile(path):
path = os.path.split(path)[0]
info = self._get_info(path)
if len(info) > 0:
found = True
self.base = path
self.info = info
elif found:
return True
split_path = os.path.split(path)
if split_path[1] == '':
return found
return self._find_project_base(split_path[0], found)