sethyuan / logseq-plugin-tocgen

Generate a TOC of any page anywhere to quickly access the page's content.
MIT License
144 stars 10 forks source link

Feature request - open in right side panel on Shift+Click #10

Closed myownstandard closed 2 years ago

myownstandard commented 2 years ago

It would be great! Thank you!

sethyuan commented 2 years ago

You can shift click on the bullet right now to have it opened in the right sidebar. I'll look if I can make this behavior for the TOC itself later.

sethyuan commented 2 years ago

@myownstandard It's implemented, please give new version a try.

nhan000 commented 2 years ago

If I click on the first line of the TOC, it opens the TOC block on the right sidebar. If I click on the content of the TOC, it is opened in the main window. I'd expect (and would like) this behavior where the clicked content is opened in the ride sidebar instead of above since I can just shift click the bullet to open the TOC block on the right sidebar?

sethyuan commented 2 years ago

Good point. So the desired behavior would be this:

sethyuan commented 2 years ago

Done. Can you give it a try?

nhan000 commented 2 years ago

works great! Thanks a lot!