Skip to content

Replace empty lines with regex #45776

@akylkb

Description

@akylkb

Reproduction steps

Replacing empty lines with this regular expression does not work: ^$\n

sample file:

line 1


line 2
line 3


line 4

Current vs. Expected behavior

line 1
line 2
line 3
line 4

Zed version and system specs

Zed 0.217.3
80433cb

0.217.3+stable.105.80433cb239e868271457ac376673a5f75bc4adb1

macOS: 15.5 (24F74)

Attach Zed log file

Zed.log

Relevant Zed settings

settings.json

Relevant Keymap

keymap.json

(for AI issues) Model provider details

No response

If you are using WSL on Windows, what flavor of Linux are you using?

None

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:searchbuffer search, project search, etcfrequency:commonBugs that happen for at least a third of the users across all platforms and kinds of usagemeta:easy repro stepsSteps to reproduce are easypriority:P2Average run-of-the-mill bugsstate:reproducibleVerified steps to reproduce included and someone on the team managed to reproduce

    Type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions