[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[nongnu] elpa/why-this b8e612d4cb 20/59: Show tooltip on hover
From: |
ELPA Syncer |
Subject: |
[nongnu] elpa/why-this b8e612d4cb 20/59: Show tooltip on hover |
Date: |
Sun, 27 Nov 2022 16:02:50 -0500 (EST) |
branch: elpa/why-this
commit b8e612d4cbaa3034fcbd2c34d729a2bf13729096
Author: Akib Azmain Turja <akib@disroot.org>
Commit: Akib Azmain Turja <akib@disroot.org>
Show tooltip on hover
---
why-this.el | 17 +++++++++++++++--
1 file changed, 15 insertions(+), 2 deletions(-)
diff --git a/why-this.el b/why-this.el
index 3b175fe00f..e08415f38d 100644
--- a/why-this.el
+++ b/why-this.el
@@ -73,6 +73,12 @@ See `why-this-message-format'."
:package-version '(why-this "1.0")
:group 'why-this)
+(defcustom why-this-enable-tooltip t
+ "Non-nil means show tooltip."
+ :type 'boolean
+ :package-version '(why-this "1.0")
+ :group 'why-this)
+
(defcustom why-this-nick-name-alist nil
"Alist of nick name of authors.
@@ -239,7 +245,13 @@ When EXACT is non-nil, be as exact as possible."
why-this-message-format
(append `(:backend ,backend)
(nth i data)))
- 'cursor t 'face 'why-this-face))
+ 'cursor t 'face 'why-this-face
+ 'help-echo
+ (when why-this-enable-tooltip
+ (why-this-format-data
+ why-this-echo-format
+ (append `(:backend ,backend)
+ (nth i data))))))
(overlay-put ov 'why-this-line (+ begin i))
(push (cons ov (current-buffer)) why-this--overlays)))))))
@@ -465,7 +477,8 @@ Actually the supported backend is returned."
;;;###autoload
(define-globalized-minor-mode global-why-this-mode why-this-mode
- why-this-mode)
+ why-this-mode
+ :group 'why-this)
(define-derived-mode why-this-annotate-mode
special-mode "Why-This-Annotate"
- [nongnu] elpa/why-this 0c1686d8d3 12/59: Fix misspelled word "annonate", (continued)
- [nongnu] elpa/why-this 0c1686d8d3 12/59: Fix misspelled word "annonate", ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 73398fb7cb 04/59: Don't interfere with writing, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 2093cadb03 06/59: Add relative time support and fix Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this c2a21ca13d 01/59: Core implementation without any backends, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b26fca274d 21/59: Add COPYING, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 88ee5f9746 27/59: Add Mercurial backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 624e98bc78 23/59: Fix relative time calculation, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 45dc65ccb1 26/59: Fix timezone problem in Git backend, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 236f8fd225 09/59: Fix problem when enabled on multiple buffers, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this dc5fc19b75 30/59: Allow changing time format, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this b8e612d4cb 20/59: Show tooltip on hover,
ELPA Syncer <=
- [nongnu] elpa/why-this aa15ec4fcd 29/59: Add support for minimum column of message, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 3e3f852835 38/59: Fix README, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 357cfa7e1e 34/59: Ensure that temporary file created by Git backend is deleted, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this f3d1e47b80 37/59: Fix indentation, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 1c8a4fbfd5 31/59: Update screenshots, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 37f3842f5e 32/59: Improve why-this-relative-time, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this bc063e0b9a 16/59: Change heat map colors for matching with light theme, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 6631186733 18/59: Remove screenshot captions, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this d8db9e63e0 14/59: Fix overlay moving code and a typo in global-why-this-mode, ELPA Syncer, 2022/11/27
- [nongnu] elpa/why-this 9f8c0d4e09 11/59: Fix annonating last part when heat map disabled, ELPA Syncer, 2022/11/27