Checked that there is not already an Atom package that provides the described functionality: https://atom.io/packages
Description
After using the find and replace all option, the number of results found is reset to 0. This is sometimes appropriate but not always.
Steps to Reproduce
1.In any file, type a string like "abcdabcd"
Find and replace "abcd" with "abcdabcdabcd" (atom shows 2 results found before clicking replace)
Watch the number of results found right after clicking the find and replace button
Expected behavior:
Text in the file is now: abcdabcdabcdabcdabcdabcd
Number of results found is: 6
Actual behavior:
Text in the file is now: abcdabcdabcdabcdabcdabcd
Number of results found is: 0
Number of results found after a second or two: 6
Proposed solution:
Instead of setting the number of results found to 0, multiply the previous number of results found by the number of times the string to find appears in the string to replace.
Prerequisites
Description
After using the find and replace all option, the number of results found is reset to 0. This is sometimes appropriate but not always.
Steps to Reproduce
1.In any file, type a string like "abcdabcd"
Expected behavior:
Text in the file is now: abcdabcdabcdabcdabcdabcd Number of results found is: 6
Actual behavior:
Text in the file is now: abcdabcdabcdabcdabcdabcd Number of results found is: 0 Number of results found after a second or two: 6
Proposed solution:
Instead of setting the number of results found to 0, multiply the previous number of results found by the number of times the string to find appears in the string to replace.
Reproduces how often:
100%
Versions
1.46.0 Ubuntu 19.04