You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Search in files: replace-all does nothing when the replacement is empty #3044
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
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?
Activity
[-][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[/+]Deepanjal-s commentedon Nov 12, 2026
I’d like to work on this, PR coming.
searchInFiles: allow empty replacement in replace-all
Mittalnew commentedon Nov 13, 2026
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?
fix: allow replace all with an empty replacement (Acode-Foundation#3048)