Skip to content

new snippet placement when snippet is collapsed (children hidden) is surprising #4597

Open
@cminter

Description

@cminter

In a hierarchical snippet that is collapsed, when I press Ctrl-Enter (or use snippet + button), where should the new snippets be created?

  1. inside the nested collapsed snippet? and if so...
    a. before the first child snippet? current behavior
    b. after the last child snippet?
  2. after the snippet, outside the hierarchy, at the same level?

Problem with current behavior

  • New snippet is hidden. Before I realized what was happening I thought nothing was happening and this is a bug in GT. Then a day later I found pages littered with empty text snippets in my pages :)
  • Cannot directly add a new snippet after a collapsed nested snippet. Workaround:
    1. un-collapse snippet to see children (potentially many levels)
    2. go to last snippet
    3. add a snippet
    4. un-nest up to intended level
    5. re-collapse as originally intended (for original reasons, takes up screen space, more rendering time, etc)

IMHO, 2 is least surprising behavior for collapsed snippet

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions