An Emacs package that provides hover preview functionality for org links.
- Link Preview: Preview content of file links in org-mode
- Denote Link Support: Preview content of Denote links
[[denote:IDENTIFIER][DESCRIPTION]] - Block Preview: Preview specific files using native org-mode
#+INCLUDEsyntax within#+begin_quoteblocks - Smart Positioning: Intelligently position popup windows based on screen boundaries
- Adaptive Sizing: Automatically adjust preview window size based on content
- Auto-hide: Close popup by clicking outside or configure auto-hide after delay
git clone https://github.com/VandeeFeng/org-hover.gitThen add to your init.el:
(add-to-list 'load-path "/path/to/org-hover")
(require 'org-hover)Basic Usage:
- In an org file, place cursor on an org file link
- Press
C-c h lto preview the link - Press
C-c h fto preview any specified file - Press
C-c h bto preview the#+begin_quote:block at point - Press
C-c h Bto preview the#+begin_quote:block at point ,and insert the content
All INCLUDE syntax follows the native org-mode #+INCLUDE syntax
Get a hover preview of lines 1-30 of the file:
#+begin_quote
#+INCLUDE: "file.org" :lines "1-30"
#+end_quoteget a hover preview of the section with its header included:
#+begin_quote
#+INCLUDE: "file.org::*Header"
#+end_quoteget a hover preview of the entire file content (limited to first 1000 characters):
#+begin_quote
#+INCLUDE: "file.org"
#+end_quoteorg-hover-auto-hide :
Whether to automatically hide the popup window. Disabled by default.
(setq org-hover-auto-hide t) ; Default: nil (disabled)org-hover-auto-hide-delay :
Delay in seconds before auto-hiding the popup window. Only effective when org-hover-auto-hide is enabled.
(setq org-hover-auto-hide-delay 5) ; Default: 5 secondsorg-block-hover-auto-insert :
Whether to automatically insert the content to the quote block
(setq org-block-hover-auto-insert t) ; Default: nil