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] Presentation mode: choosing next node for transition #106

Open amitnovick opened 3 weeks ago

amitnovick commented 3 weeks ago

Hi again @Developer-Mike,

Another thing that I would really like to have!:

Problem

I have a presentation that is not linear. When I reach some slide, there are multiple out edges to nodes. Pressing PgUp/PgDn to go to next slide will pick one edge (always the same) with no choice from the user

Solution

When multiple next slide options exist, present some mechanism for choice between them


FYI I use Presentation mode not just for presentations, but also for just navigating through the canvas... so this may not exactly be what you were trying to achieve with this feature.

Thanks Amit

Developer-Mike commented 3 days ago

This is already partially possible using numbers as labels for the edges. I'm not sure if this feature will be implemented anytime soon.

amitnovick commented 3 days ago

This is already partially possible using numbers as labels for the edges. I'm not sure if this feature will be implemented anytime soon.

Hey Mike! thanks for the reply.

Could you please elaborate on "using numbers as labels for the edges"?

Suppose I have the following graph configuration:

image

In Presentation mode, is it possible to move both to node Bar and node Baz using a hotkey?

Thanks in advance, Best wishes

Developer-Mike commented 3 days ago

If you now make an edge from the Bar node to the Foo node, you'll get the following order: Foo, Bar, Foo, Baz

But like I said, it's just a partial solution (maybe not even a solution at all 😅). You can't actively choose the next node.

amitnovick commented 2 days ago

If you now make an edge from the Bar node to the Foo node, you'll get the following order: Foo, Bar, Foo, Baz

But like I said, it's just a partial solution (maybe not even a solution at all 😅). You can't actively choose the next node.

Oh yea I see now! (after playing with it for a bit)

It appears that the "parent" node will follow nodes according to alphanumeric comparison of edge labels

For instance this works as expected:

image

Foo -> Baz -> Foo -> Bar -> Foo -> Dar

It really is a partial solution actually! thanks for sharing.