Closed luckman212 closed 5 months ago
Anyone who wants to test without setting up the nodeJS dev environment can grab the compiled main.js
here and replace the one in .obsidian/plugins
@Vinzent03 I squashed the multiple commits, and pushed an updated version. Can you please take a look when you have a moment? 🙏
N.B. still working after Electron 30 / Obsidian 1.6.5 update
LGTM thanks for your contribution!
Abstract
I noticed today that I was getting JS errors in the console when trying to use the Copy URI for current block command under certain conditions:
A section with no text in it e.g.
Cursor at very end of file
File empty / contains no sections
Here's a PR I came up with that resolves these cases. I did some testing and seems fine, but please comment with any more changes needed.
Screenshots from this fork
empty section
end of file
empty file