Skip to content
This repository was archived by the owner on Sep 6, 2021. It is now read-only.
This repository was archived by the owner on Sep 6, 2021. It is now read-only.

Multiline selections should be auto-converted Find/Replace in Files #8211

@redmunds

Description

@redmunds

Multiple line search arguments are allowed for Find/Replace in Files, but they must be in regex format. Since search argument fields are pre-populated from current selection, it would be nice if newlines in selected text were converted to "\n" string instead of just being removed, and also on regex flag is turned on.

Also, we should think of a way to insert newlines via "replace with" text.

For example:

  1. Start with this text in page:

    aaa
    bbb
    ccc
    
  2. Select range starting with "aaa" and ending with "bbb"

  3. Find > Replace in Selected File/Folder

  4. The newline is removed from the selelction and the search argument is pre-populated to "aaabbb". Would be nice if the newline was replaced with "\n" so it was "aaa\nbbb". Also, regex flag should be turned on (if not on already)

  5. I'd also like to put something like "yyy\nzzz" in the "Replace With" field to have 2 lines inserted.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions