Merge pull request #71 from marcus-at-localhorst/master
Use correct argument --exclude instead of --ignore
This commit is contained in:
commit
d0b162bdd8
2 changed files with 8 additions and 2 deletions
|
@ -482,6 +482,7 @@ class SendHeartbeatsThread(threading.Thread):
|
||||||
self.debug = SETTINGS.get('debug')
|
self.debug = SETTINGS.get('debug')
|
||||||
self.api_key = SETTINGS.get('api_key', '')
|
self.api_key = SETTINGS.get('api_key', '')
|
||||||
self.ignore = SETTINGS.get('ignore', [])
|
self.ignore = SETTINGS.get('ignore', [])
|
||||||
|
self.hidefilenames = SETTINGS.get('hidefilenames')
|
||||||
|
|
||||||
self.heartbeat = heartbeat
|
self.heartbeat = heartbeat
|
||||||
self.has_extra_heartbeats = False
|
self.has_extra_heartbeats = False
|
||||||
|
@ -537,9 +538,11 @@ class SendHeartbeatsThread(threading.Thread):
|
||||||
if heartbeat.get('cursorpos') is not None:
|
if heartbeat.get('cursorpos') is not None:
|
||||||
cmd.extend(['--cursorpos', heartbeat['cursorpos']])
|
cmd.extend(['--cursorpos', heartbeat['cursorpos']])
|
||||||
for pattern in self.ignore:
|
for pattern in self.ignore:
|
||||||
cmd.extend(['--ignore', pattern])
|
cmd.extend(['--exclude', pattern])
|
||||||
if self.debug:
|
if self.debug:
|
||||||
cmd.append('--verbose')
|
cmd.append('--verbose')
|
||||||
|
if self.hidefilenames:
|
||||||
|
cmd.append('--hidefilenames')
|
||||||
if self.has_extra_heartbeats:
|
if self.has_extra_heartbeats:
|
||||||
cmd.append('--extra-heartbeats')
|
cmd.append('--extra-heartbeats')
|
||||||
stdin = PIPE
|
stdin = PIPE
|
||||||
|
|
|
@ -19,5 +19,8 @@
|
||||||
"status_bar_message": true,
|
"status_bar_message": true,
|
||||||
|
|
||||||
// Status bar message format.
|
// 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
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue