obsidian42-strange-new-worlds icon indicating copy to clipboard operation
obsidian42-strange-new-worlds copied to clipboard

FR: Trigger Popup when hovering link / link under cursor

Open chrisgrieser opened this issue 3 years ago • 3 comments

Nice plugin idea!

I noticed that the popup only shows when you hover the number next to the link. Since those popups are quite small, it's a bit annoying to target them for the popup. I suggest implementing one or both of the following alternative methods for showing the popup:

  1. The popup appears when you hover the link
  2. add a command that shows the popup for the link under the cursor

While solution 2 would only work in Source Mode / LP, it does have the advantage of being a solely -keyboard-driven method for using the plugin, for those of us who detest using the mouse 😉

chrisgrieser avatar Oct 10 '22 13:10 chrisgrieser

do you think hovering over link and getting popop could be annoying though as well, especially if text has multiple links?

Also, the little numbers are easily modifiable with CSS. I went to some length to make sure it would be fairly customizable by overwriting CSS selectors from style.css of plugin.

TfTHacker avatar Oct 12 '22 20:10 TfTHacker

do you think hovering over link and getting popop could be annoying though as well, especially if text has multiple links?

well you could simply add a small delay before the popup appears, so there aren't accidental triggerings. Can be done with a one liner in css with transition-delay. Alternatively, the aforementioned command to trigger the popup for the link under the cursor would also completely prevent accidental triggering.

Also, the little numbers are easily modifiable with CSS. I went to some length to make sure it would be fairly customizable by overwriting CSS selectors from style.css of plugin.

That does not help much imv, since making it easier to hover the numbers essentially means making sufficiently big numbers, which in turn would make the note less readable.

chrisgrieser avatar Oct 12 '22 21:10 chrisgrieser

I'd appreciate a "link hover" solution as well. I'd suggest to use a Hover modifier like "Alt-Hover" so it basically just works like the preview popup but with another modifier.

+1 on the "open snw pop up under for link at cursor position"

Glint-Eye avatar Jun 20 '23 13:06 Glint-Eye