rpggio / obsidian-chat-stream

Obsidian canvas plugin for using AI completion with threads of canvas nodes
MIT License
108 stars 21 forks source link

Feature request: Support 'Zoom Out to Title' #9

Closed 541864509proton closed 10 months ago

541864509proton commented 1 year ago

When I add a note containing multiple"h1”titles in "canvas", select "Zoom Out to Title" from the right-click menu option, choose to display only one"h1”title, and use "Alt+Shift+G" to start running. As a result, the chat stream plugin still sent the entire note content to chatgp. According to the "Zoom Out to Title" display, users should see information with only one"h1”title, and the information sent to chatgp should only contain the content of this"h1”title, rather than the entire note content. This makes users very troubled. I hope to improve this bug. But we still need to appreciate it 👍 The 'chat stream' you developed unleashed my natural thinking ability 😊

rpggio commented 12 months ago

OK, we can add a setting to only send the visible title from notes if the note is collapsed.

541864509proton commented 12 months ago

I am glad that you have taken this issue seriously. 😊 The 'chat stream' has stimulated my potential for thinking. 🚀 By quickly switching between the types of titles that need to be displayed through 'Zoom Out to Title', such as H1/H2/H3/H4/H5/H6, it can significantly improve the efficiency of note utilization. 📚 There is no need to create a new note for a thought process. Just a note containing complete information, quickly assemble prompt words through "Zoom Out to Title", and send it to chatgp to help me think completely. 💭

rpggio commented 10 months ago

@541864509proton I do not see option 'Zoom Out to Title'. Maybe this is from another plugin?

I am, however, adding support for Narrow to Heading and Narrow to Block. Chat Stream will use the narrowed content shown on the canvas, not the entire fie. Will this work for your use case? image

If this is not adequate for your use case, please locate the plugin or the Obsidian docs which will show me where to find 'Zoom Out to Title'.

rpggio commented 10 months ago

'Narrow to heading' and 'Narrow to block' are supported in the latest release.

linxizhiri commented 10 months ago

I am a user of "541864509proton".😊 I am very glad that you have found the entrance of "Narrow to heading, Narrow to Block" and implemented this function.This is a great initiative that has further enhanced the power of this plugin.👍 Recently, a plugin called "cannoli" has been discovered, which also uses "canvas" to structure thinking, create and run LLM scripts.It is similar to your plugin.When the two are combined, they will create a more brilliant spark.🚀

rpggio commented 10 months ago

Thanks @linxizhiri, will def. check out cannoli.