Selection doesn't update when only in selection is enabled and Find is clicked again #677
Comments
Is anyone is working on this issue? It affects my workflow heavily. |
Find in selection is badly broken, and has been for years, going back to pre-1.0 versions of Atom. #298 was opened for multiple serious issues with find in selection, and it was closed after one small part was fixed, but the feature remains unreliable to the point of being nearly unusable. Various issues are open for find in selection, and there are comments stating that it's "not a high priority for the core team". It's not clear what their priorities are, though. |
I find "find in selection" one of main features of a text editor. I don't know what other issues can be more important than being able to edit a text file. |
Since I'm the one who both opened and closed #298, here's my take on this: @halicki Issues where Atom crashes on opening large text files (just a random example) are arguably more important than this one. That being said, PRs are always welcome. |
I too ran into this problem using Atom version 1.12.7. Steps:
Please fix this bug as "Find and Replace" is a very common function, especially in selection mode. Thank you for a great product! |
Should also work if you change the selected text in buffer without changing search string or changing search options. |
The selection does get updated then, but gets updated to a single line, rather than the original selection. Infuriating. (v 1.17.2) |
This is still an issue with 1.23.1 |
Please fix this 🙏 Also, could the selected code not be unselected when enabling "Only In Selection"? Or at least keep the line numbers highlighted? Personally it always makes me second guess if the search is actually being conducted in my selection and I have to double check before clicking "Replace All". |
@chbk please file a new issue for that. |
I've had similar issues with find and replace in selection, atom would only replace one of the found instances of a word. This was fixed for me, on atom version 1.25.1 by installing this package: https://atom.io/packages/find-and-replace-fix |
Repro Steps
Launch Atom
Open a new file using Cmd+N
Enter the text:
Select the first instance of
apple
with the mouseOpen the find-and-replace panel with Cmd+F
Ensure "Only in Selection" is enabled
Click the "Find" button
Ensure that
1 result found for 'apple'
is shown above the find text boxSelect all text using the mouse
Click the "Find" button
Expected: New search is executed with the updated selection
Actual: Continues to display
1 result found for 'apple'
Reproduced using Atom v1.7.0-dev-b08e293 on Mac OS X 10.11.3.
The text was updated successfully, but these errors were encountered: