From 1b8895cd38cda946c9524145035752a64119b325 Mon Sep 17 00:00:00 2001 From: Marcus Obst Date: Sat, 4 Mar 2017 17:21:21 +0100 Subject: [PATCH] add --hidefilenames in config --- WakaTime.py | 3 +++ WakaTime.sublime-settings | 5 ++++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/WakaTime.py b/WakaTime.py index 9de7095..b9d4ec1 100644 --- a/WakaTime.py +++ b/WakaTime.py @@ -482,6 +482,7 @@ class SendHeartbeatsThread(threading.Thread): self.debug = SETTINGS.get('debug') self.api_key = SETTINGS.get('api_key', '') self.ignore = SETTINGS.get('ignore', []) + self.hidefilenames = SETTINGS.get('hidefilenames') self.heartbeat = heartbeat self.has_extra_heartbeats = False @@ -540,6 +541,8 @@ class SendHeartbeatsThread(threading.Thread): cmd.extend(['--exclude', pattern]) if self.debug: cmd.append('--verbose') + if self.hidefilenames: + cmd.append('--hidefilenames') if self.has_extra_heartbeats: cmd.append('--extra-heartbeats') stdin = PIPE diff --git a/WakaTime.sublime-settings b/WakaTime.sublime-settings index a8b3509..7987f6a 100644 --- a/WakaTime.sublime-settings +++ b/WakaTime.sublime-settings @@ -19,5 +19,8 @@ "status_bar_message": true, // Status bar message format. - "status_bar_message_fmt": "WakaTime {status} %I:%M %p" + "status_bar_message_fmt": "WakaTime {status} %I:%M %p", + + // Hide filenames + "hidefilenames": false }