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 }}
This repository has been archived by the owner on Dec 15, 2022. It is now read-only.
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"
2. Find and replace "abcd" with "abcdabcdabcd" (atom shows 2 results found before clicking replace)
3. 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.
Reproduces how often:
100%
Versions
1.46.0
Ubuntu 19.04
The text was updated successfully, but these errors were encountered:
Sign up for freeto subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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"
2. Find and replace "abcd" with "abcdabcdabcd" (atom shows 2 results found before clicking replace)
3. 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.
Reproduces how often:
100%
Versions
1.46.0
Ubuntu 19.04
The text was updated successfully, but these errors were encountered: