obsidian-hover-editor
obsidian-hover-editor copied to clipboard
Preview is too slow when there is too much file content
When you need to preview the content of a file where the subheading is located, if the content of the file is too much (including text, images, formulas, etc.), the preview takes a lot of time to locate the desired position (5~20 seconds, or even more), can you improve the preview speed?
https://github.com/nothingislost/obsidian-hover-editor/assets/95735348/08068249-b5fe-4350-8ca9-ebdeecffe665
How long does it take to get to that point if you click on the link instead? (Assuming the same reading/editing mode.)
If it takes a similar amount of time, it's an Obsidian performance issue that Hover Editor can't work around -- see issue #254 for more details.
More specifically: there is an Obsidian performance issue affecting navigation in Reading View, so if that's what you're using, you can work around it by telling Hover Editor to use Editing View instead, which navigates to headings or blocks much faster.
Directly click on the link to jump to the preview position in less than 1s (reading/editing mode take the same amount of time)
https://github.com/nothingislost/obsidian-hover-editor/assets/95735348/5192f094-c233-4dae-ac5b-dd497e58b345
Using the Hover Editor's Edit View instead does make it faster to locate the link position, but when it does, there is a yellow shadow under the text that interferes with reading the text.
I can't see anything in the videos you're posting: Chrome is showing them as audio only, no video.
Maybe github doesn't support the video format I uploaded, I'll re-upload it again, you can also just download the video and watch it with potplayer.
https://github.com/nothingislost/obsidian-hover-editor/assets/95735348/37f45a13-14ca-4d49-ad59-3a6f48538930
https://github.com/nothingislost/obsidian-hover-editor/assets/95735348/e0473f35-3fc2-4f5b-b4fb-3783d25345a7
Ok, I see why it's not visible to you. Click the link with Ctrl or Cmd so it opens in a new tab. (With “Default view for new tabs” set to “Reading View” in Obsidian's "Editor" options.) You will see the same delay.
Hover Editor is opening a new tab at a subheading, so its performance is the same as Obsidian opening a new tab at a subheading. Direct clicking in the same tab does not have this performance difficulty. As I said, it is a performance issue in Obsidian which Hover Editor cannot fix.
I've filed an issue with Obsidian here: https://forum.obsidian.md/t/opening-new-tab-in-reading-mode-via-heading-or-block-link-takes-multiple-seconds/77208 -- feel free to share more note samples or more details.
Okay, thank you. Hopefully obsidian can fix this.