livebook icon indicating copy to clipboard operation
livebook copied to clipboard

Add branching sections to the menu

Open josevalim opened this issue 3 years ago • 1 comments

We will pick a parent by default:

  1. if there are no previous branching sections, pick the previous section as parent
  2. if there are, pick the same parent as the previous

We will also allow clicking on \ from "Foo Bar" to change the parent.


The big question is what to do with the existing branch sections button:

  1. Keep it as is
  2. Making it so it uses the heuristic above and people can use the \ from "Foo Bar" link to change it

Finally, we will add an explicit x Clear at the top of the branching section menu (instead of having folks click the currently checked one to disable).

josevalim avatar Jul 03 '22 21:07 josevalim

There is also a "bug" when mixing zen mode with branching sections. Zen mode merges all code cells together, making it impossible to know which code belongs to a branching section and which does not.

I think we should provide very thin horizontal lines as session separators, potentially with an icon identifying the section. The goal is to keep it as unobtrusive as possible.

josevalim avatar Aug 21 '22 19:08 josevalim