vipzhicheng / logseq-plugin-mark-map

This is a plugin for https://github.com/logseq/logseq to provide mindmap support based on https://github.com/markmap/markmap.
277 stars 4 forks source link

[feature-request] double click to go to block #52

Closed danilofaria closed 1 year ago

danilofaria commented 1 year ago

The killer feature of this plugin would be to allow editing the block contents directly on the map view. However, I do realize this is not possible due to the limitations of mark-map itself.

However, the next-best feature would be to double-click on a map node and then it takes you back to the block view on that specific block so you can edit it. Sometimes when viewing a large map, one may wish to edit a specific node, so this feature would be awesome.

vipzhicheng commented 1 year ago

For now, I had added an option to add an anchor to each node, then when you click the green icon on the left, you will be taken to that submap, and Logseq do that also. Then you only need to click q, then you can edit it on Logseq.

Speaking of editing block on Markmap, I also have a plan. ut you are right that's not an easy mission.

danilofaria commented 1 year ago

Hey @vipzhicheng thanks for the reply. I looked through the instructions but could not find out how to set up the anchor you mentioned, I also did not see this green icon. Can you give me some pointers?

Speaking of editing block on Markmap, I also have a plan. ut you are right that's not an easy mission

Ooh, that's exciting!

vipzhicheng commented 1 year ago

First, you need to upgrade to the latest version. then go to the settings page.

image
danilofaria commented 1 year ago

awesome, thanks for the pointer. BTW, on a related note: when I do focus on a block in Logseq, the markmap graph mode icon disappears. I can only see that button when I am on a page. Would be nice to enter markmap graph mode from a block page too 🙂

vipzhicheng commented 1 year ago

It depends on Logseq rules. But I added a shortcut: double mod+m to trigger markmap on a block page. You can have a try.