Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion wakatime-mode.el
Original file line number Diff line number Diff line change
Expand Up @@ -145,12 +145,14 @@ the wakatime subprocess occurs."
(defun wakatime-client-command (savep &optional file)
"Return client command executable and arguments.
Set SAVEP to non-nil for write action."
(format "%s--entity %s --plugin \"%s/%s\" --time %.2f%s%s"
(format "%s--entity %s --plugin \"%s/%s\" --time %.2f --lineno %d --lines-in-file %d%s%s"
(if (s-blank wakatime-cli-path) "wakatime-cli " (format "%s " wakatime-cli-path))
(shell-quote-argument (or file (buffer-file-name (current-buffer))))
wakatime-user-agent
wakatime-version
(float-time)
(line-number-at-pos)
(count-lines (point-min) (point-max))
(if savep " --write" "")
(if (s-blank wakatime-api-key) "" (format " --key %s" wakatime-api-key))))

Expand Down