main icon indicating copy to clipboard operation
main copied to clipboard

Fold/collapse blocks

Open 5183nischal opened this issue 1 year ago • 3 comments

Hey! I use custom instruction to emulate the thinking process (COT) in models I talk with (for example: https://github.com/richards199999/Thinking-Claude). It would be great if there would be a way to fold special blocks automatically. For example, I instruct the model to think in "```thinking" block and would be great if there was a way to automatically (or manually) fold such blocks. It might be useful for most other blocks too when the conversation gets long and you want to refer back to it.

5183nischal avatar Nov 16 '24 13:11 5183nischal

Make sense, we'll look into it.

erusev avatar Nov 16 '24 18:11 erusev

Is the ```thinking code block a common block type for this kind of prompt?

erusev avatar Nov 18 '24 07:11 erusev

Is the ```thinking code block a common block type for this kind of prompt?

Hmm, I'm not sure. They generally depend on the custom prompt. So even if it's not, one can modify it to make it so. Alternatively, it would be nice to have a config where certain blocks, specified by the user, are automatically folded, with all blocks having options to fold.

5183nischal avatar Nov 18 '24 13:11 5183nischal