Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[CLOSED] Multiline selections should be auto-converted Find/Replace in Files #7341

Open
core-ai-bot opened this issue Aug 30, 2021 · 0 comments

Comments

@core-ai-bot
Copy link
Member

Issue by redmunds
Friday Jun 20, 2014 at 23:14 GMT
Originally opened as adobe/brackets#8211


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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant