Skip to content

Search in files: replace-all does nothing when the replacement is empty #3044

Closed

Description

@Palloxin

Check for existing issues

  • Completed

Describe the bug / provide steps to reproduce it

  1. Go to search in files and try to match some text
  2. Try to trigger the mass replacement (the replacement bar is empty to emulate a "replace the matched text with nothing" but the app doesnt allow that)

Environment

Acode latest nightly 1.13.5 (11/12/2026)
Android 8

If applicable, add mockups / screenshots regarding your vision

No response

If applicable, attach your Acode.log file to this issue.

Acode.log

Activity

  1. added theissue type on Nov 12, 2026
  2. changed the title [-][Bug] Impossible to mass-replace in "search in files" if the replace bar is empty[/-] [+]Search in files: replace-all does nothing when the replacement is empty[/+] on Nov 12, 2026
  3. moved this from Backlog to In progress in The Code Board - Acodeon Nov 12, 2026
  4. Deepanjal-s commented on Nov 12, 2026

    @Deepanjal-s

    I’d like to work on this, PR coming.

  5. added a commit that references this issue on Nov 13, 2026
    fcd5ebb
  6. Mittalnew commented on Nov 13, 2026

    @Mittalnew
    Contributor

    Hi! I'd like to work on this. It looks like the replace-all action in Search in Files is skipped when the replace input is empty, probably because of a falsy check on the replacement value. I'll change it so an empty string is a valid replacement (with a confirm prompt, since it deletes all matches) and test it with plain text and regex matches. Could you assign it to me?

  7. added a commit that references this issue on Nov 13, 2026
    f3b31dc
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinggood first issueGood for newcomers

    Type

    Projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions