Skip to content

Zed un-indents YAML dictionary inside a list when editing it #39570

@injust

Description

@injust

Summary

Zed un-indents YAML dictionary inside a list when editing it

Description

foo:
  - bar: one
    baz: two

Steps to reproduce:

  1. Select baz: two
  2. Type something else

Expected Behavior: No indentation change
Actual Behavior: Zed unindents the text that replaces baz: two to the same level as the -

Zed Version and System Specs

Zed: v0.206.6 (Zed)
OS: macOS 15.7.1
Memory: 16 GiB
Architecture: x86_64

Metadata

Metadata

Assignees

No one assigned

    Labels

    editorFeedback for code editing, formatting, editor iterations, etcreproducibleVerified steps to reproduce includedyamlYAML data format support

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions