Developer-Mike / obsidian-advanced-canvas

⚡ Supercharge your Obsidian.md canvas experience! Create presentations, flowcharts and more!
GNU General Public License v3.0
286 stars 12 forks source link

[FR] Using cursor postion of click when canvas file node enters edit mode #36

Closed longguzzz closed 6 months ago

longguzzz commented 6 months ago

Currently, when a focused file node in canvas is clicked, it only switches into edit mode with the cursor setting to first character of file. Therefore, when editing a file in canvas, user needs to click once to foucs on the node , then click a second time to enter edit mode, and a third time is required to set the cursor position. Reducing the number of operations to one would greatly streamline the process for users who edit multiple files on the canvas heavily.

KuiyueRO commented 6 months ago

Do You know this is just a css problem...?

I tried doing it this way, but it didn’t working great because the css style between ob editor and reading mode is too big.

Developer-Mike commented 6 months ago

Sorry for not replying. You can achieve a similar behavior using this CSS snippet.

.canvas-node-content-blocker {
  display: none; /* Or pointer-events: none; */
}

But it's not planned to get added to the plugin anytime soon.

longguzzz commented 5 months ago

Do You know this is just a css problem...?

I tried doing it this way, but it didn’t working great because the css style between ob editor and reading mode is too big.

The CSS snippets in Options > Appearance may help