DeabLabs / cannoli

Cannoli allows you to build and run no-code LLM scripts using the Obsidian Canvas editor.
MIT License
314 stars 23 forks source link

Canvas with no Canolli #44

Open talia-tokugawa opened 2 months ago

talia-tokugawa commented 2 months ago

Hey, I have several canvas from prior to installing cannoli that use the colours for other things.. Is there a way to disable cannoli for specific canvas? I really dont want to run the risk of accidently pressign "run" on a canvas that was never intended for use with cannoli and uses colours in a different way..

cephalization commented 2 months ago

That is a great question. @blindmansion we should consider some ways to prevent accidentally triggering on non-cannoli canvases

blindmansion commented 1 month ago

Here's a possible implementation I've been pondering:

There's currently a feature where if there's a group labeled "cannoli", only nodes inside that group will be run as a cannoli. Maybe there could be a setting you could toggle which would signify that if there isn't a "cannoli" group on a canvas it won't be run.

The other option would be to make it so that only canvases with ".cno" in their name will be run.

Still thinking about the best way to implement here.

talia-tokugawa commented 1 month ago

Would it be realistic to just clone the regular nodes and have an additional option to have to add canoli node? Or even something as simple as requiring a hashtag like #cannoli ?

On Sat, 17 Aug 2024, 23:07 blindmansion, @.***> wrote:

Here's a possible implementation I've been pondering:

There's currently a feature where if there's a group labeled "cannoli", only nodes inside that group will be run as a cannoli. Maybe there could be a setting you could toggle which would signify that if there isn't a "cannoli" group on a canvas it won't be run.

The other option would be to make it so that only canvases with ".cno" in their name will be run.

Still thinking about the best way to implement here.

— Reply to this email directly, view it on GitHub https://github.com/DeabLabs/cannoli/issues/44#issuecomment-2294998770, or unsubscribe https://github.com/notifications/unsubscribe-auth/AZ3JGEKD2LS6JQBJVWHBKSDZR7CSRAVCNFSM6AAAAABL2ZPU4WVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMZDEOJUHE4TQNZXGA . You are receiving this because you authored the thread.Message ID: @.***>

airtonix commented 2 weeks ago

I think a better way to handle this is to create a specific node that triggers Canolli activation on the canvas it's in.

then contents of said blessed node can contain content that configures Canolli for that specific canvas (instead of all canvases)

Further more, it could be that Canolli only starts execution from this blessed node. So you don't need to group things, only link them.