Hover Editor

by NothingIsLost
5
4
3
2
1
Score: 78/100

Description

The Hover Editor plugin turns the standard page preview popover into a usable editor window, so hovering a link can become part of normal note editing instead of a quick peek. It supports reading and editing modes, gives the popover focus, restores focus when closed, and adds a nav bar with title and editor controls. You can drag, resize, pin, and minimize popovers, keep several open at once, and let the active one stay on top. Header links and block references open at the right location, which makes jumping into specific parts of a note much easier.

Reviews

No reviews yet.

Stats

775
stars
521,881
downloads
37
forks
1,591
days
7
days
7
days
25
total PRs
0
open PRs
2
closed PRs
23
merged PRs
298
total issues
124
open issues
174
closed issues
6
commits

Latest Version

7 days ago

Changelog

Fix margin issues w/stacked tab conversion (#335)

(Also, some minor lint fixes for the plugin store.)

README file from

Github

Obsidian Hover Editor

This plugin enhances the core "Page Preview" plugin by turning the hover popover into a full featured editor instance.

Disclaimer

This plugin leverages Obsidian functionality that is not currently exposed in the official API. As a result, future Obsidian updates may introduce breaking changes.

I will attempt to keep this plugin working across Obsidian updates but my goal is to either have this functionality implemented directly into Obsidian core or switch over to using the official API for popovers, once it is made available.

Features

  • The page preview popover is now an actual editor instance
    • Most editor functionality is supported including switching between modes
  • The popover is now draggable and resizable
  • The popover can now be pinned to prevent it from auto closing
    • Popovers will auto pin when dragged or resized
    • With pinning, multiple popovers can be open at the same time
  • When opening a popover, it will become the active pane and receive focus
    • This means you can use keyboard shortcuts like ctrl+e to switch modes after triggering a popover
    • When the popover closes, focus will revert back to the previous document
  • The popover now has a nav bar which includes the document title and editor controls
  • The top drag handle can be double clicked to minimize the popover
  • There is a plugin setting that allows for setting the default editor mode
    • Options are: "Open in Reading mode", "Open in Editing mode", or "Match the mode of the current document"
  • When hovering a link containing header or block ref, the editor will open and auto scroll to the ref location
  • When multiple popovers are active and on top of each other, the currently active popover will remain on top

Demo

https://user-images.githubusercontent.com/89109712/160023366-7a1ca044-5725-4d30-a0a7-f7e0664281da.mp4

Installing

Hover Editor can be found and installed via the Obsidian Community Plugins browser

Installing via BRAT

If you want to participate in early testing you can install the plugin using BRAT.

Install the BRAT plugin via the Obsidian Plugin Browser and then add the beta repository "nothingislost/obsidian-hover-editor"

Manually installing the plugin

  • Copy over main.js, manifest.json to your vault VaultFolder/.obsidian/plugins/obsidian-hover-editor/.

Acknowledgments

Thanks to pjeby for contributing a ton of core functionality related to making Hover Editors interop properly with native Obsidian components

Thanks to boninall for contributing the "open in new popover" functionality

Thanks to murf, liam, obadiahcruz, and javalent for the early testing and feedback

Similar Plugins

info
• Similar plugins are suggested based on the common tags between the plugins.
Auto Math
4 months ago by Vladislav Sorokin
Auto-expands LaTeX snippets. External rules with live reload, Custom Rules Editor, and default math pack.
Auto Reading Mode
3 years ago by Kelvin Cao
Daily Notes Tweaks
9 months ago by René Coignard
Open a random daily note and automatically switch past daily notes to reading mode.
Dynamic Text Concealer
2 years ago by Matt Cole Anderson
Obsidian.md Plugin to conceal or replace user configured text patterns in Live Preview and Read Mode.
Emoji Picker
a year ago by Ali Faraji
An up-to-date Emoji Picker for obisian.md, using emoji-mart.
Fix Tab Size
3 months ago by mnaoumov
This plugin has not been manually reviewed by Obsidian staff. Fixes tab size according to the settings.
Floating Highlights
3 years ago by Karthik S Raju
This is a plugin for obsidian which highlights a block of text or a word as you scroll down while reading.
Format Automatically with Prettier
a year ago by Dylan Armstrong
Format with Prettier using built-in settings for Obsidian
Hover External Link
5 years ago by Jamie Brynes
Small plugin to add tooltips on hovering external links
Hover Reveal
a year ago by Shawn Yang
Link Opening Restore
a year ago by SmallZombie
Restore the link opening behavior in Obsidian.
Link Preview
2 years ago by Felipe Tappata
Obsidian plugin that previews external links on hover.
Mode manager
a year ago by dk949
Better management of reading/editing modes in obsidian
Scrolling
a year ago by omeyenburg
Obsidian plugin to keep your cursor centered, disable code wrapping, remember position in a file, and more.
Sidebar Expand on Hover
5 years ago by Tousif Iqbal Anik (toiq)
This Obsidian plugin expands or collapses the sidebar based on mouse hovering on the ribbons.
Simple Tab Indent
a year ago by Thiago Frias
Vimrc Support
6 years ago by esm
A plugin for the Obsidian.md note-taking software