Skip to content

Commit

Permalink
feature: current cursor position, wakatime-ui support
Browse files Browse the repository at this point in the history
  • Loading branch information
Artawower committed Mar 30, 2023
1 parent 0c77177 commit 0c9eb80
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions file-info.el
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
;; Author: Artur Yaroshenko <[email protected]>
;; URL: https://github.com/artawower/file-info.el
;; Package-Requires: ((emacs "28.1") (hydra "0.15.0") (browse-at-remote "0.15.0"))
;; Version: 0.5.3
;; Version: 0.6.0

;; This program is free software; you can redistribute it and/or modify
;; it under the terms of the GNU General Public License as published by
Expand Down Expand Up @@ -189,7 +189,7 @@
:face font-lock-comment-face)
(:name
"Line count"
:handler (number-to-string (count-lines (point-min) (point-max)))
:handler (format "%s/%s" (line-number-at-pos) (count-lines (point-min) (point-max)))
:face font-lock-number-face
:bind "l")
(:name
Expand All @@ -200,7 +200,11 @@
(:name
"Errors/info count"
:handler (file-info--get-errors-count)
:bind "e"))
:bind "e")
(:name "Coding time"
:handler (when (boundp wakatime-ui-mode) wakatime-ui-current-session-text)
:face font-lock-escape-face
:bind "T"))
"List of handlers for file info."
:group 'file-info
:type 'list)
Expand Down

0 comments on commit 0c9eb80

Please sign in to comment.